Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
fix a typo for shapes instead of shape in the argparse
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Garaud committed Mar 27, 2018
1 parent e4a7aab commit 05caabf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sources/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
help=("Number of images that must be contained "
"into a single batch"))
parser.add_argument('-d', '--dataset', required=True, nargs='?',
help="Dataset type (either mapillary or shape")
help="Dataset type (either mapillary or shapes")
parser.add_argument('-dp', '--datapath', required=False,
default="../data", nargs='?',
help="Relative path towards data directory")
Expand Down Expand Up @@ -80,7 +80,7 @@
elif args.dataset == "shapes":
testing_dataset = ShapeDataset(image_size, 3)
else:
utils.logger.error("Unsupported dataset type. Please choose 'mapillary' or 'shape'")
utils.logger.error("Unsupported dataset type. Please choose 'mapillary' or 'shapes'")
sys.exit(1)

# Dataset populating/loading (depends on the existence of a specification file)
Expand Down
4 changes: 2 additions & 2 deletions sources/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
help=("Measure the training phase execution time "
"and store it in a json file"))
parser.add_argument('-d', '--dataset', required=True, nargs='?',
help="Dataset type (either mapillary or shape")
help="Dataset type (either mapillary or shapes")
parser.add_argument('-dp', '--datapath', required=False,
default="../data", nargs='?',
help="Relative path towards data directory")
Expand Down Expand Up @@ -159,7 +159,7 @@
train_dataset = ShapeDataset(args.image_size, 3)
validation_dataset = ShapeDataset(args.image_size, 3)
else:
utils.logger.error("Unsupported dataset type. Please choose 'mapillary' or 'shape'")
utils.logger.error("Unsupported dataset type. Please choose 'mapillary' or 'shapes'")
sys.exit(1)

# Dataset populating/loading (depends on the existence of a specification file)
Expand Down

0 comments on commit 05caabf

Please sign in to comment.