Spaces:
Runtime error
Runtime error
use fp32 for cpu
Browse files
app.py
CHANGED
@@ -19,11 +19,11 @@ conditioning_image_transforms = T.Compose(
|
|
19 |
]
|
20 |
)
|
21 |
|
22 |
-
cnet = ControlNetModel.from_pretrained("./models/catcon-controlnet-wd", torch_dtype=torch.
|
23 |
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
24 |
"./models/wd-1-5-b2",
|
25 |
controlnet=cnet,
|
26 |
-
torch_dtype=torch.
|
27 |
)
|
28 |
|
29 |
generator = torch.manual_seed(0)
|
|
|
19 |
]
|
20 |
)
|
21 |
|
22 |
+
cnet = ControlNetModel.from_pretrained("./models/catcon-controlnet-wd", torch_dtype=torch.float32, from_flax=True)
|
23 |
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
24 |
"./models/wd-1-5-b2",
|
25 |
controlnet=cnet,
|
26 |
+
torch_dtype=torch.float32,
|
27 |
)
|
28 |
|
29 |
generator = torch.manual_seed(0)
|