Spaces:
Sleeping
Sleeping
Update warp_design_on_dress.py
Browse files- warp_design_on_dress.py +2 -3
warp_design_on_dress.py
CHANGED
@@ -26,9 +26,8 @@ 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 |
-
opt =
|
30 |
-
gmm
|
31 |
-
load_checkpoint(gmm, gmm_ckpt, strict = False)
|
32 |
gmm.cpu().eval()
|
33 |
|
34 |
with torch.no_grad():
|
|
|
26 |
# Fake agnostic: use the dress image itself
|
27 |
agnostic = dress_tensor.clone()
|
28 |
|
29 |
+
gmm = GMM(opt = None)
|
30 |
+
load_checkpoint(gmm, gmm_ckpt)
|
|
|
31 |
gmm.cpu().eval()
|
32 |
|
33 |
with torch.no_grad():
|