Spaces:
Runtime error
Runtime error
Update generate_img.py
Browse files- generate_img.py +2 -2
generate_img.py
CHANGED
@@ -7,8 +7,8 @@ from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_controlnet i
|
|
7 |
import random
|
8 |
|
9 |
# model2
|
10 |
-
controlnet = ControlNetModel.from_pretrained("
|
11 |
-
pipe = StableDiffusionControlNetInpaintPipeline.from_pretrained("
|
12 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
13 |
|
14 |
|
|
|
7 |
import random
|
8 |
|
9 |
# model2
|
10 |
+
controlnet = ControlNetModel.from_pretrained("hirol/control_any5_openpose", torch_dtype=torch.float16)
|
11 |
+
pipe = StableDiffusionControlNetInpaintPipeline.from_pretrained("hirol/Any-inpainting", controlnet=controlnet, torch_dtype=torch.float16)
|
12 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
13 |
|
14 |
|