-
Notifications
You must be signed in to change notification settings - Fork 86
Add export network trainable variables (PRETRAIN_VARS) to experiment dir #1179
Conversation
This PR needs Approvals as follows.
Please choose reviewers and requet reviews! Click to see how to approve each reviewsYou can approve this PR by triggered comments as follows.
See all trigger commentsPlease replace [Target] to review target
|
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.
OA
pretrain_vars_file.writelines("[\n") | ||
pretrain_vars_file.writelines(" '%s',\n" % var.name for var in train_vars) | ||
pretrain_vars_file.writelines("]\n") |
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.
It would be better to use json.dumps
if you want to format the file as JSON.
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.
Ah, it's a part of python (config.py). Please ignore this comment.
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.
RA
/ready |
⏳Merge job is queued... |
What this patch does to fix the issue.
Add export network trainable variables (
PRETRAIN_VARS
) to the experiment directory.Example:
Network: LmnetV1Quantize (https://docs.blue-oil.org/tutorial/image_cls.html)
path/to/experiment/pretrain_vars.txt
Link to any relevant issues or pull requests.
Closes #1178