We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d9d794 commit e45df83Copy full SHA for e45df83
research/object_detection/dataset_tools/oid_hierarchical_labels_expansion.py
@@ -23,6 +23,8 @@
23
--annotation_type=<1 (for boxes) or 2 (for image-level labels)>
24
"""
25
26
+from __future__ import print_function
27
+
28
import argparse
29
import json
30
@@ -154,7 +156,7 @@ def main(parsed_args):
154
156
if parsed_args.annotation_type == 2:
155
157
labels_file = True
158
elif parsed_args.annotation_type != 1:
- print '--annotation_type expected value is 1 or 2.'
159
+ print('--annotation_type expected value is 1 or 2.')
160
return -1
161
with open(parsed_args.input_annotations, 'r') as source:
162
with open(parsed_args.output_annotations, 'w') as target:
0 commit comments