Spaces:
Runtime error
Runtime error
Commit Β·
0e1a8b1
1
Parent(s): c6647f4
Update gradio_canny2image.py
Browse files- gradio_canny2image.py +2 -2
gradio_canny2image.py
CHANGED
|
@@ -17,8 +17,8 @@ from cldm.ddim_hacked import DDIMSampler
|
|
| 17 |
|
| 18 |
apply_canny = CannyDetector()
|
| 19 |
|
| 20 |
-
model = create_model('
|
| 21 |
-
model.load_state_dict(load_state_dict('
|
| 22 |
model = model.cuda()
|
| 23 |
ddim_sampler = DDIMSampler(model)
|
| 24 |
|
|
|
|
| 17 |
|
| 18 |
apply_canny = CannyDetector()
|
| 19 |
|
| 20 |
+
model = create_model('models/cldm_v15.yaml').cpu()
|
| 21 |
+
model.load_state_dict(load_state_dict('models/control_sd15_canny.pth', location='cuda'))
|
| 22 |
model = model.cuda()
|
| 23 |
ddim_sampler = DDIMSampler(model)
|
| 24 |
|