-
Notifications
You must be signed in to change notification settings - Fork 4.3k
[feature] Add --initialize-from option #3710
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
Conversation
…gents into develop-cliflags
…gents into develop-cliflags
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.
Mostly looks good, had a few small discussion points / suggestions
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.
LGTM
Hi @teelrc, this is indeed a bug and will be fixed soon. If you want to fix it yourself in the meantime, adding |
Proposed change(s)
Often-asked for feature. This PR adds a new CLI option,
--initialize-from=<run-id>
, that allows a user to specify an old run ID. This will load the weights of the old run ID, but start training from step 0 to the newly specified--run-id=<run-id>
. This can be used, e.g. for fine-tuning an existing model on a new environment/reward function.Note that combining with
--resume
will load the old model, save to the new run-id, but resume training from the step count of the old model.Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
See: https://forum.unity.com/threads/ml-agents-train-an-already-trained-model.840892/
Types of change(s)
Checklist