This repository has been archived by the owner on Dec 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Move lmnet/executor/train.py to blueoil/cmd #837
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
77d102a
Remove blueoil/cmd/train.py
d0dbd45
Move lmnet/executor/train.py to blueoil/cmd
749daf9
Update blueoil/cmd/train.py
5b886ab
Remove options "network" and "dataset" from train command
92904e4
Merge branch 'master' into move-train
bo-mergebot[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,10 +68,27 @@ def init(output): | |
'--experiment_id', | ||
help='ID of this training.', | ||
default=None, | ||
required=False, | ||
) | ||
def train(config, experiment_id=None): | ||
experiment_id, checkpoint_name = run_train(config, experiment_id) | ||
@click.option( | ||
'--recreate', | ||
is_flag=True, | ||
help='Delete and recreate experiment id dir', | ||
default=False, | ||
) | ||
@click.option( | ||
'-n', | ||
'--network', | ||
help='Network name which you want to use for this training. override config.DATASET_CLASS', | ||
default=None, | ||
) | ||
@click.option( | ||
'-d', | ||
'--dataset', | ||
help='Dataset name which is the source of this training. override config.NETWORK_CLASS', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question. |
||
default=None, | ||
) | ||
def train(config, experiment_id, recreate, network, dataset): | ||
experiment_id, checkpoint_name = run_train(config, experiment_id, recreate, network, dataset) | ||
click.echo('Next step: blueoil convert -e {} -p {}'.format( | ||
experiment_id, | ||
checkpoint_name | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why we need this option.
Specify in config file is not enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also don't know why but I think we can remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the options
network
anddataset
.