Spaces:
Sleeping
Sleeping
Update warp_design_on_dress.py
Browse files- 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 |
-
|
30 |
-
gmm = GMM(opt
|
31 |
-
load_checkpoint(gmm, gmm_ckpt)
|
32 |
-
gmm.
|
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)
|