Skip to content

Commit

Permalink
fixed help
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrizzo committed Apr 21, 2019
1 parent dae0c95 commit c4f720d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions generate_tfrecord.py
Expand Up @@ -96,7 +96,8 @@ def class_dict_from_pbtxt(pbtxt_path):
# open file, strip \n, trim lines and keep only
# lines beginning with id or display_name
data = [
l.rstrip('\n').strip() for l in open(pbtxt_path, 'r', encoding='utf-8-sig')
l.rstrip('\n').strip()
for l in open(pbtxt_path, 'r', encoding='utf-8-sig')
if 'id:' in l or 'display_name:'
]
ids = [int(l.replace('id:', '')) for l in data if l.startswith('id')]
Expand Down Expand Up @@ -124,12 +125,12 @@ def class_dict_from_pbtxt(pbtxt_path):
'csv_input',
metavar='csv_input',
type=str,
help='Path to a pbtxt file containing class ids and display names')
help='Path to the CSV input')
parser.add_argument(
'pbtxt_input',
metavar='pbtxt_input',
type=str,
help='Path to the CSV input')
help='Path to a pbtxt file containing class ids and display names')
parser.add_argument(
'image_dir',
metavar='image_dir',
Expand Down

0 comments on commit c4f720d

Please sign in to comment.