Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46377f8

Browse files
authored
Merge pull request tensorflow#3766 from walkerlala/myrepo/master
vis.py: use basename of image when saving raw annotations to prevent file-not-found error
2 parents 365ea20 + 5281c9a commit 46377f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

research/deeplab/vis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _process_batch(sess, original_images, semantic_predictions, image_names,
173173
colormap_type=FLAGS.colormap_type)
174174

175175
if FLAGS.also_save_raw_predictions:
176-
image_filename = image_names[i]
176+
image_filename = os.path.basename(image_names[i])
177177

178178
if train_id_to_eval_id is not None:
179179
crop_semantic_prediction = _convert_train_id_to_eval_id(

0 commit comments

Comments
 (0)