Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/adapt argument name for pretrained model #44

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ def train(model, train_generator, val_generator, id2code, batch_size,
args = parser.parse_args()

# check required arguments by individual operations
if args.operation == 'fine-tune' and args.model_path is None:
if args.operation == 'fine-tune' and args.weights_path is None:
raise parser.error(
'Argument model_path required for operation == fine-tune')
'Argument weights_path required for operation == fine-tune')
if args.operation == 'train' and args.initial_epoch != 0:
raise parser.error(
'Argument initial_epoch must be 0 for operation == train')
Expand Down