Skip to content

Commit fb6bc29

Browse files
authored
Merge pull request tensorflow#5021 from sumsuddin/constant_ext_len_fix
fix for constant extension length
2 parents 5fd32ef + f1d3764 commit fb6bc29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

research/deeplab/datasets/remove_gt_colormap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def main(unused_argv):
7272
'*.' + FLAGS.segmentation_format))
7373
for annotation in annotations:
7474
raw_annotation = _remove_colormap(annotation)
75-
filename = os.path.basename(annotation)[:-4]
75+
filename = os.path.splitext(os.path.basename(annotation))[0]
7676
_save_annotation(raw_annotation,
7777
os.path.join(
7878
FLAGS.output_dir,

0 commit comments

Comments
 (0)