JackAILab commited on
Commit
2ce0115
1 Parent(s): 9669aec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 = "/data6/huangjiehui_m22/pretrained_model/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,13 +45,13 @@ def Enhance_prompt(prompt,select_images):
45
 
46
  # print(gr.__version__)
47
  # 4.16.0
48
- os.environ['GRADIO_TEMP_DIR'] = "/data6/huangjiehui_m22/z_benke/liaost/ConsistentID/images/gradio_tmp" #TODO
49
 
50
  script_directory = os.path.dirname(os.path.realpath(__file__))
51
  device = "cuda"
52
  # TODO
53
- base_model_path = "/data6/huangjiehui_m22/pretrained_model/Realistic_Vision_V6.0_B1_noVAE" # TODO
54
- consistentID_path = "/data6/huangjiehui_m22/z_benke/liaost/ConsistentID/models/ConsistentID_model_facemask_pretrain_50w.bin" # TODO
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(