Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from llava.mm_utils import get_model_name_from_path
|
|
15 |
from llava.eval.run_llava import eval_model
|
16 |
|
17 |
# Load Lava for prompt enhancement
|
18 |
-
llva_model_path = "
|
19 |
llva_tokenizer, llva_model, llva_image_processor, llva_context_len = load_pretrained_model(
|
20 |
model_path=llva_model_path,
|
21 |
model_base=None,
|
@@ -45,13 +45,13 @@ def Enhance_prompt(prompt,select_images):
|
|
45 |
|
46 |
# print(gr.__version__)
|
47 |
# 4.16.0
|
48 |
-
|
49 |
|
50 |
script_directory = os.path.dirname(os.path.realpath(__file__))
|
51 |
device = "cuda"
|
52 |
# TODO
|
53 |
-
base_model_path = "
|
54 |
-
consistentID_path = "
|
55 |
|
56 |
### Load base model
|
57 |
pipe = ConsistentIDStableDiffusionPipeline.from_pretrained(
|
|
|
15 |
from llava.eval.run_llava import eval_model
|
16 |
|
17 |
# Load Lava for prompt enhancement
|
18 |
+
llva_model_path = "llava-v1.5-7b" #TODO
|
19 |
llva_tokenizer, llva_model, llva_image_processor, llva_context_len = load_pretrained_model(
|
20 |
model_path=llva_model_path,
|
21 |
model_base=None,
|
|
|
45 |
|
46 |
# print(gr.__version__)
|
47 |
# 4.16.0
|
48 |
+
|
49 |
|
50 |
script_directory = os.path.dirname(os.path.realpath(__file__))
|
51 |
device = "cuda"
|
52 |
# TODO
|
53 |
+
base_model_path = "Realistic_Vision_V6.0_B1_noVAE" # TODO
|
54 |
+
consistentID_path = "ConsistentID" # TODO
|
55 |
|
56 |
### Load base model
|
57 |
pipe = ConsistentIDStableDiffusionPipeline.from_pretrained(
|