We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 308179f commit f1d3764Copy full SHA for f1d3764
research/deeplab/datasets/remove_gt_colormap.py
@@ -72,7 +72,7 @@ def main(unused_argv):
72
'*.' + FLAGS.segmentation_format))
73
for annotation in annotations:
74
raw_annotation = _remove_colormap(annotation)
75
- filename = os.path.basename(annotation)[:-4]
+ filename = os.path.splitext(os.path.basename(annotation))[0]
76
_save_annotation(raw_annotation,
77
os.path.join(
78
FLAGS.output_dir,
0 commit comments