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

Using pre-trained model #4

Open
biubug6 opened this issue May 4, 2018 · 3 comments
Open

Using pre-trained model #4

biubug6 opened this issue May 4, 2018 · 3 comments

Comments

@biubug6
Copy link

biubug6 commented May 4, 2018

Hello, firstly, thanks your demo. When using pre-trained model, we need modify the variable name of official model in order to keep in line with our variable name in our model. My method is that I read official model ,modify variable name and save it in python file. But the operation is a little tedious! Could you tell me what you have done?

@akonstantinou
Copy link

Where did you find the pre-trained model?

@biubug6
Copy link
Author

biubug6 commented May 7, 2018

In this paper

@YingZhangDUT
Copy link
Owner

YingZhangDUT commented May 14, 2018

  1. You may build two nets, one uses the official model names, like "MobileNetV1" as variable scope, and the other use "net1" as variable scope.
  2. Restore the pretrained checkpoint to "MobileNetV1".
  3. Assign all the variables under "MobileNetV1" to "net1";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants