Skip to content

Commit

Permalink
Fix args.out_file
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jan 7, 2018
1 parent 08af1cc commit a7454ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/pytorch2chainer/infer_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,5 @@ def get_z(mu, logvar):
viz.append(fake_B)
viz = fcn.utils.get_tile_image(viz)

out_file = osp.join(here, 'logs/infer_pytorch.png')
cv2.imwrite(out_file, viz[:, :, ::-1])
print('Saved file: %s' % out_file)
cv2.imwrite(args.out_file, viz[:, :, ::-1])
print('Saved file: %s' % args.out_file)

0 comments on commit a7454ce

Please sign in to comment.