Saad0KH commited on
Commit
8c1f365
1 Parent(s): e139ea7

Update ootd/inference_ootd.py

Browse files
Files changed (1) hide show
  1. 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
- category = 0 # 0:upperbody; 1:lowerbody; 2:dress
 
 
 
 
 
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')