RamAnanth1 commited on
Commit
2e755f1
·
1 Parent(s): a0c01b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -22,7 +22,8 @@ pose_checkpoint = "models/control_sd15_openpose.pth"
22
  canny_model = create_model('./models/cldm_v15.yaml')
23
  canny_model.load_state_dict(load_state_dict(cached_download(
24
  hf_hub_url(REPO_ID, canny_checkpoint)
25
- ), location='cuda'))
 
26
  ddim_sampler = DDIMSampler(canny_model)
27
 
28
 
 
22
  canny_model = create_model('./models/cldm_v15.yaml')
23
  canny_model.load_state_dict(load_state_dict(cached_download(
24
  hf_hub_url(REPO_ID, canny_checkpoint)
25
+ ), location='cpu'))
26
+ canny_model = canny_model.cuda()
27
  ddim_sampler = DDIMSampler(canny_model)
28
 
29