Upload app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,12 @@ canny_path = "diffusers/controlnet-canny-sdxl-1.0"
|
|
| 43 |
|
| 44 |
print("Caricamento ControlNet InstantID e Canny (per il Logo)...")
|
| 45 |
# Usiamo MultiControlNet per unire il riconoscimento facciale (InstantID) e la forma del logo (Canny)
|
| 46 |
-
controlnet_identity = ControlNetModel.from_pretrained(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
controlnet_logo = ControlNetModel.from_pretrained(canny_path, torch_dtype=dtype, use_safetensors=True)
|
| 48 |
controlnet = MultiControlNetModel([controlnet_identity, controlnet_logo])
|
| 49 |
|
|
|
|
| 43 |
|
| 44 |
print("Caricamento ControlNet InstantID e Canny (per il Logo)...")
|
| 45 |
# Usiamo MultiControlNet per unire il riconoscimento facciale (InstantID) e la forma del logo (Canny)
|
| 46 |
+
controlnet_identity = ControlNetModel.from_pretrained(
|
| 47 |
+
instantid_path,
|
| 48 |
+
subfolder="ControlNetModel",
|
| 49 |
+
torch_dtype=dtype,
|
| 50 |
+
use_safetensors=True
|
| 51 |
+
)
|
| 52 |
controlnet_logo = ControlNetModel.from_pretrained(canny_path, torch_dtype=dtype, use_safetensors=True)
|
| 53 |
controlnet = MultiControlNetModel([controlnet_identity, controlnet_logo])
|
| 54 |
|