Skip to content

Commit

Permalink
default class mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran_G committed May 19, 2019
1 parent abe5d00 commit 5c94f84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion object_detector_retinanet/keras_retinanet/bin/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def parse_args(args):
csv_parser.add_argument('--annotations', help='Path to CSV file containing annotations for evaluation.',
default=args_annotations)
csv_parser.add_argument('--classes', help='Path to a CSV file containing class label mapping.',
default=os.path.join(os.getcwd(), 'class_mappings.csv'))
default=os.path.join(os.path.dirname(os.path.abspath(__file__)), 'class_mappings.csv'))
parser.add_argument('--hard_score_rate', help='', default=1.)

parser.add_argument('model', help='Path to RetinaNet model.')
Expand Down
2 changes: 1 addition & 1 deletion object_detector_retinanet/keras_retinanet/bin/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def csv_list(string):
csv_parser.add_argument('--annotations', help='Path to CSV file containing annotations for training.',
default=args_annotations)
csv_parser.add_argument('--classes', help='Path to a CSV file containing class label mapping.',
default=os.path.join(os.getcwd(), 'class_mappings.csv'))
default=os.path.join(os.path.dirname(os.path.abspath(__file__)), 'class_mappings.csv'))
csv_parser.add_argument('--val-annotations',
help='Path to CSV file containing annotations for validation (optional).',
default=args_val_annotations)
Expand Down
2 changes: 1 addition & 1 deletion object_detector_retinanet/keras_retinanet/bin/train_iou.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def csv_list(string):
csv_parser.add_argument('--annotations', help='Path to CSV file containing annotations for training.',
default=args_annotations)
csv_parser.add_argument('--classes', help='Path to a CSV file containing class label mapping.',
default=os.path.join(os.getcwd(), 'class_mappings.csv'))
default=os.path.join(os.path.dirname(os.path.abspath(__file__)), 'class_mappings.csv'))
csv_parser.add_argument('--val-annotations',
help='Path to CSV file containing annotations for validation (optional).',
default=args_val_annotations)
Expand Down

0 comments on commit 5c94f84

Please sign in to comment.