gaur3009 commited on
Commit
c8cf89e
·
verified ·
1 Parent(s): 960b661

Update warp_design_on_dress.py

Browse files
Files changed (1) hide show
  1. warp_design_on_dress.py +4 -4
warp_design_on_dress.py CHANGED
@@ -26,10 +26,10 @@ def run_design_warp_on_dress(dress_path, design_path, gmm_ckpt, tom_ckpt, output
26
  # Fake agnostic: use the dress image itself
27
  agnostic = dress_tensor.clone()
28
 
29
- # ----- GMM -----
30
- gmm = GMM(opt=None)
31
- load_checkpoint(gmm, gmm_ckpt)
32
- gmm.cuda().eval()
33
 
34
  with torch.no_grad():
35
  grid, _ = gmm(agnostic, design_mask)
 
26
  # Fake agnostic: use the dress image itself
27
  agnostic = dress_tensor.clone()
28
 
29
+ opt = Options()
30
+ gmm = GMM(opt)
31
+ load_checkpoint(gmm, gmm_ckpt, strict = False)
32
+ gmm.cpu().eval()
33
 
34
  with torch.no_grad():
35
  grid, _ = gmm(agnostic, design_mask)