Spaces:
Runtime error
Runtime error
Update app.py
#1
by
5steps
- opened
app.py
CHANGED
@@ -34,8 +34,8 @@ dtype = torch.float16 if str(device).__contains__("cuda") or str(device).__conta
|
|
34 |
|
35 |
# initialization
|
36 |
base_model_path = "stabilityai/stable-diffusion-xl-base-1.0"
|
37 |
-
image_encoder_path = "sdxl_models/image_encoder"
|
38 |
-
ip_ckpt = "sdxl_models/ip-adapter_sdxl.bin"
|
39 |
|
40 |
controlnet_path = "diffusers/controlnet-canny-sdxl-1.0"
|
41 |
controlnet = ControlNetModel.from_pretrained(controlnet_path, use_safetensors=False, torch_dtype=dtype).to(device)
|
|
|
34 |
|
35 |
# initialization
|
36 |
base_model_path = "stabilityai/stable-diffusion-xl-base-1.0"
|
37 |
+
image_encoder_path = "IP-Adapter/sdxl_models/image_encoder"
|
38 |
+
ip_ckpt = "IP-Adapter/sdxl_models/ip-adapter_sdxl.bin"
|
39 |
|
40 |
controlnet_path = "diffusers/controlnet-canny-sdxl-1.0"
|
41 |
controlnet = ControlNetModel.from_pretrained(controlnet_path, use_safetensors=False, torch_dtype=dtype).to(device)
|