Skip to content

Commit f1d3764

Browse files
committed
fix for constant extension length
1 parent 308179f commit f1d3764

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)