Upload app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ controlnet = None
|
|
41 |
last_model = models[0]
|
42 |
last_cn_on = False
|
43 |
controlnet_union = FluxControlNetModel.from_pretrained(controlnet_model_union_repo, torch_dtype=dtype).to(device)
|
44 |
-
controlnet = FluxMultiControlNetModel([controlnet_union])
|
45 |
|
46 |
|
47 |
MAX_SEED = 2**32-1
|
@@ -102,7 +102,7 @@ def preload_base_model(repo_id: str, cn_on: bool, progress=gr.Progress(track_tqd
|
|
102 |
clear_cache()
|
103 |
#controlnet_union = FluxControlNetModel.from_pretrained(controlnet_model_union_repo, torch_dtype=dtype)
|
104 |
#controlnet = FluxMultiControlNetModel([controlnet_union])
|
105 |
-
pipe = FluxControlNetPipeline.from_pretrained(repo_id, controlnet=
|
106 |
print(f"Model Chached: {repo_id} / ControlNet Cahced: {controlnet_model_union_repo}")
|
107 |
else:
|
108 |
print(f"Caching Model: {repo_id}")
|
|
|
41 |
last_model = models[0]
|
42 |
last_cn_on = False
|
43 |
controlnet_union = FluxControlNetModel.from_pretrained(controlnet_model_union_repo, torch_dtype=dtype).to(device)
|
44 |
+
controlnet = FluxMultiControlNetModel([controlnet_union]).to(device)
|
45 |
|
46 |
|
47 |
MAX_SEED = 2**32-1
|
|
|
102 |
clear_cache()
|
103 |
#controlnet_union = FluxControlNetModel.from_pretrained(controlnet_model_union_repo, torch_dtype=dtype)
|
104 |
#controlnet = FluxMultiControlNetModel([controlnet_union])
|
105 |
+
pipe = FluxControlNetPipeline.from_pretrained(repo_id, controlnet=None, torch_dtype=dtype)
|
106 |
print(f"Model Chached: {repo_id} / ControlNet Cahced: {controlnet_model_union_repo}")
|
107 |
else:
|
108 |
print(f"Caching Model: {repo_id}")
|