Spaces:
Sleeping
Sleeping
Update warp_design_on_dress.py
Browse files- warp_design_on_dress.py +2 -2
warp_design_on_dress.py
CHANGED
@@ -19,8 +19,8 @@ def run_design_warp_on_dress(dress_path, design_path, gmm_ckpt, tom_ckpt, output
|
|
19 |
dress_img = Image.open(dress_path).convert("RGB")
|
20 |
design_img = Image.open(design_path).convert("RGB")
|
21 |
|
22 |
-
dress_tensor = tf(dress_img).unsqueeze(0).
|
23 |
-
design_tensor = tf(design_img).unsqueeze(0).
|
24 |
design_mask = torch.ones_like(design_tensor[:, :1, :, :]) # full white mask
|
25 |
|
26 |
# Fake agnostic: use the dress image itself
|
|
|
19 |
dress_img = Image.open(dress_path).convert("RGB")
|
20 |
design_img = Image.open(design_path).convert("RGB")
|
21 |
|
22 |
+
dress_tensor = tf(dress_img).unsqueeze(0).cpu()
|
23 |
+
design_tensor = tf(design_img).unsqueeze(0).cpu()
|
24 |
design_mask = torch.ones_like(design_tensor[:, :1, :, :]) # full white mask
|
25 |
|
26 |
# Fake agnostic: use the dress image itself
|