Skip to content

Commit 9f1a6c2

Browse files
authored
Removing whitespaces
1 parent a2ecd75 commit 9f1a6c2

File tree

1 file changed

+2
-3
lines changed
  • modules/ximgproc/src/alphagan_matting

1 file changed

+2
-3
lines changed

modules/ximgproc/src/alphagan_matting/test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@
2121
break
2222
model.forward(data)
2323
w = data['w']
24-
h = data['h']
24+
h = data['h']
2525
visuals = model.get_current_visuals()
2626
img_path = model.get_image_paths()
2727
print('%04d: process image... %s' % (i, img_path))
2828
aspect_ratio = opt.aspect_ratio
2929
for label, im in visuals.items():
3030
image_name = '%s.png' % (name)
3131
save_path = os.path.join(image_dir, image_name)
32-
if aspect_ratio >= 1.0:
32+
if aspect_ratio >= 1.0:
3333
im = np.array(Image.fromarray(im).resize((h, int(w * aspect_ratio))))
3434
if aspect_ratio < 1.0:
3535
im = np.array(Image.fromarray(im).resize((int(h/aspect_ratio),w)))
3636
utils.save_image(im, save_path)
37-

0 commit comments

Comments
 (0)