Skip to content

Commit

Permalink
Allow greyscale images in prediction.
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTayler authored and vierja committed Dec 4, 2017
1 parent 666e613 commit cf51a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luminoth/utils/predicting.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_predictions(image_paths, config_files):
for image_path in image_paths:
with tf.gfile.Open(image_path, 'rb') as im_file:
try:
image = Image.open(im_file)
image = Image.open(im_file).convert('RGB')
except tf.errors.OutOfRangeError as e:
yield {
'error': '{}'.format(e),
Expand Down

0 comments on commit cf51a68

Please sign in to comment.