wizzseen commited on
Commit
f939c18
·
verified ·
1 Parent(s): 02de75f

Update TryYours-Virtual-Try-On/get_seg_grayscale.py

Browse files
TryYours-Virtual-Try-On/get_seg_grayscale.py CHANGED
@@ -4,7 +4,7 @@ import pickle
4
  import json
5
  import numpy as np
6
 
7
- img = Image.open('./resized_segmentation_img.png')
8
  img_w ,img_h = img.size
9
 
10
  img = np.array(img)
@@ -44,4 +44,4 @@ for y_idx in range(img.shape[0]):
44
 
45
  img=cv2.resize(gray_img,(768,1024),interpolation=cv2.INTER_NEAREST)
46
  bg_img = Image.fromarray(np.uint8(img),"L")
47
- bg_img.save("./HR-VITON-main/test/test/image-parse-v3/00001_00.png")
 
4
  import json
5
  import numpy as np
6
 
7
+ img = Image.open('TryYours-Virtual-Try-On/resized_segmentation_img.png')
8
  img_w ,img_h = img.size
9
 
10
  img = np.array(img)
 
44
 
45
  img=cv2.resize(gray_img,(768,1024),interpolation=cv2.INTER_NEAREST)
46
  bg_img = Image.fromarray(np.uint8(img),"L")
47
+ bg_img.save("TryYours-Virtual-Try-On/HR-VITON-main/test/test/image-parse-v3/00001_00.png")