Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,9 @@ model_file = hf_hub_download(
|
|
24 |
filename="diffusion_pytorch_model_promax.safetensors",
|
25 |
)
|
26 |
state_dict = load_state_dict(model_file)
|
|
|
27 |
model, _, _, _, _ = ControlNetModel_Union._load_pretrained_model(
|
28 |
-
controlnet_model, state_dict, model_file, "xinsir/controlnet-union-sdxl-1.0"
|
29 |
)
|
30 |
model.to(device="cuda", dtype=torch.float16)
|
31 |
|
|
|
24 |
filename="diffusion_pytorch_model_promax.safetensors",
|
25 |
)
|
26 |
state_dict = load_state_dict(model_file)
|
27 |
+
loaded_keys = list(state_dict.keys())
|
28 |
model, _, _, _, _ = ControlNetModel_Union._load_pretrained_model(
|
29 |
+
controlnet_model, state_dict, loaded_keys, model_file, "xinsir/controlnet-union-sdxl-1.0"
|
30 |
)
|
31 |
model.to(device="cuda", dtype=torch.float16)
|
32 |
|