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

Commit

Permalink
Update docstrings regarding chosen network architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
delhomer committed Mar 28, 2018
1 parent 00043ad commit 91e2213
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions sources/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@
help=("Model name that will be used for results, "
"checkout and graph storage on file system"))
parser.add_argument('-N', '--network', default='small',
help=("Neural network size, either 'small' or 'medium'"
help=("Neural network size, either 'small', 'medium',"
" 'vgg' or 'inception' "
"('small' refers to 3 conv/pool blocks and 1 "
"fully-connected layer, and 'medium' refers to 6"
"conv/pool blocks and 2 fully-connected layers)")) # TO UPDATE
"fully-connected layer; 'medium' refers to 6"
"conv/pool blocks and 2 fully-connected layers;"
" 'vgg' and 'inception' refer to "
"state-of-the-art networks)"))
parser.add_argument('-r', '--learning-rate', required=False, nargs="+",
default=[0.01, 1000, 0.95], type=float,
help=("List of learning rate components (starting LR, "
Expand Down Expand Up @@ -127,10 +130,10 @@
"each batch (convex weights with min at 50%)..."))
sys.exit(1)

if not args.network in ["small", "medium", "vgg", "inception", "inception-v2", "inception-v3"]:
if not args.network in ["small", "medium", "vgg", "inception"]:
utils.logger.error(("Unsupported network size description"
"Please use this parameter with 'small' or "
"'medium' values"))
"Please use this parameter with 'small', "
"'medium', 'vgg' or 'inception' values"))
sys.exit(1)

if not args.model in ["feature_detection", "semantic_segmentation"]:
Expand Down

0 comments on commit 91e2213

Please sign in to comment.