-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Model equivalent to nn4.small2.v1.t7 #108
Comments
Hi @mhaghighat,
|
Thank you for your reply, David. The size of the model being more than 20 times larger was making me curious if there is any redundant data stored. So, I checked the content of the model file, following:
Below is a screenshot of a part of the printed list. You can see there are several repetitions of the blocks and branches stored with extra Thanks again for your time and support. |
Ok, what you are seeing is just the structure of the model. A residual network (resnet) consists of a bunch of blocks which in tensorflow are created using slim.repeat. Check out models.inception_resnet_v1 to see how the model is created. |
Unfortunately, I don't have the FaceScrub and the CASIA-WebFace databases to train the nn4.small2.v1. I wonder if anyone has done it and can share the meta and ckpt files. |
To check the size of the checkpoint you don't need to run any training. Just initialize the model and store the parameters. |
How many parameters is the resnet model? The nn4.small2.v1 is approx 3.7 million parameters. |
Following your advice, I tried to train with the
Can you please advise? |
This sepecific problem has been fixed when the input pipeline was refactored so you need to update your repo. But there is still a problem
when global variables are initialized. I'm not sure why this problem happens but it has to do with batch normalization. It can be fixed by changing
to
And then it seems to work fine. |
I think i have an error related to that above, but cant resolve it with the solution. I freezed the 20170216-091149 model with the freeze_graph.py script, and used it like in compare.py only with a different loading routine for the freezed graph (resnet is the name with which its loaded).
results in the error
using freezed graph with
results in
then again using the unfreezed graph works normal |
Thanks but i am already using the latest revision, which should include the bug fix, loading routine is also the same as discussed in #161. (Only difference is name='resnet', can try without this) For reference older freezed models (20170117-215115) are running fine. |
@lodemo , |
@ugtony Added Bottleneck to the condition like this
|
Good to know that it helped. |
I wonder why the size of the model files (meta and ckpt) is so big compared to the Torch model (nn4.small2.v1.t7) provided in the OpenFace library?
compared to:
And is there any model equivalent to the nn4.small2.v1.t7 that is small and can be used in the TensorFlow implementation?
Thanks.
The text was updated successfully, but these errors were encountered: