We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17e2a2d commit 7dc43e0Copy full SHA for 7dc43e0
resize_images.py
@@ -36,15 +36,15 @@ def resize_data_ade(record, verbose):
36
h_new, w_new = round(h / float(w) * max_size), max_size
37
else:
38
return 0
39
- cv2.imwrite(img_path, cv2.resize(img, (h_new, w_new),
+ cv2.imwrite(img_path, cv2.resize(img, (w_new, h_new),
40
interpolation=cv2.INTER_LINEAR))
41
seg_obj_path = md["seg_filename"]
42
seg = cv2.imread(seg_obj_path)
43
- cv2.imwrite(seg_obj_path, cv2.resize(seg, (h_new, w_new),
+ cv2.imwrite(seg_obj_path, cv2.resize(seg, (w_new, h_new),
44
interpolation=cv2.INTER_NEAREST))
45
for i, seg_part_path in enumerate(md["part_filenames"]):
46
seg = cv2.imread(seg_part_path)
47
- cv2.imwrite(seg_part_path, cv2.resize(seg, (h_new, w_new),
+ cv2.imwrite(seg_part_path, cv2.resize(seg, (w_new, h_new),
48
49
50
0 commit comments