Spaces:
Build error
Build error
Update ootd/inference_ootd.py
Browse files- ootd/inference_ootd.py +6 -1
ootd/inference_ootd.py
CHANGED
@@ -41,7 +41,12 @@ import spaces
|
|
41 |
@spaces.GPU
|
42 |
def process_hd(vton_img, garm_img, n_samples, n_steps, image_scale, seed):
|
43 |
model_type = 'hd'
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
with torch.no_grad():
|
47 |
openpose_model_hd.preprocessor.body_estimation.model.to('cuda')
|
|
|
41 |
@spaces.GPU
|
42 |
def process_hd(vton_img, garm_img, n_samples, n_steps, image_scale, seed):
|
43 |
model_type = 'hd'
|
44 |
+
if category == 'Upper-body':
|
45 |
+
category = 0
|
46 |
+
elif category == 'Lower-body':
|
47 |
+
category = 1
|
48 |
+
else:
|
49 |
+
category =2
|
50 |
|
51 |
with torch.no_grad():
|
52 |
openpose_model_hd.preprocessor.body_estimation.model.to('cuda')
|