Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,10 @@ device = "cuda"
|
|
41 |
script_directory = os.path.dirname(os.path.realpath(__file__))
|
42 |
|
43 |
# download ConsistentID checkpoint to cache
|
44 |
-
base_model_path = "SG161222/RealVisXL_V3.0"
|
|
|
|
|
|
|
45 |
consistentID_path = hf_hub_download(repo_id="JackAILab/ConsistentID", filename="ConsistentID_SDXL-v1.bin", repo_type="model")
|
46 |
|
47 |
### Load base model
|
@@ -49,7 +52,7 @@ pipe = ConsistentIDStableDiffusionXLPipeline.from_pretrained(
|
|
49 |
base_model_path,
|
50 |
torch_dtype=torch.float16,
|
51 |
safety_checker=None, # use_safetensors=True,
|
52 |
-
variant="fp16"
|
53 |
).to(device)
|
54 |
|
55 |
### Load other pretrained models
|
|
|
41 |
script_directory = os.path.dirname(os.path.realpath(__file__))
|
42 |
|
43 |
# download ConsistentID checkpoint to cache
|
44 |
+
#base_model_path = "SG161222/RealVisXL_V3.0"
|
45 |
+
#base_model_path = "SG161222/RealVisXL_V4.0"
|
46 |
+
base_model_path = "SG161222/RealVisXL_V5.0"
|
47 |
+
|
48 |
consistentID_path = hf_hub_download(repo_id="JackAILab/ConsistentID", filename="ConsistentID_SDXL-v1.bin", repo_type="model")
|
49 |
|
50 |
### Load base model
|
|
|
52 |
base_model_path,
|
53 |
torch_dtype=torch.float16,
|
54 |
safety_checker=None, # use_safetensors=True,
|
55 |
+
#variant="fp16"
|
56 |
).to(device)
|
57 |
|
58 |
### Load other pretrained models
|