Skip to content

Commit

Permalink
the last bug
Browse files Browse the repository at this point in the history
  • Loading branch information
meocong committed Sep 13, 2018
1 parent c009c3b commit 8f05d7d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions onmt/inputters/image_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ def make_image_examples_nfeats_tpl(img_iter, img_path, img_dir,
"""
if img_iter is None:
if img_path is not None:
img_iter = \
ImageDataset \
.make_img_iterator_from_file(img_path,
img_dir,
image_channel_size)
img_iter = ImageDataset. \
make_img_iterator_from_file(img_path,
img_dir,
image_channel_size)
else:
raise ValueError("""One of 'img_iter' and 'img_path'
must be not None""")
Expand Down

0 comments on commit 8f05d7d

Please sign in to comment.