-
Notifications
You must be signed in to change notification settings - Fork 264
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
about the pre-train weight #6
Comments
Oh yes, I forgot to erase a line in custom_layers.py which resulted in an error. It should work now! |
Hi |
@fahim7 , I think the *.h5 weights file is backward compatible. Which model did you try to run? What was the corresponding error message? |
I tested it with all three models in a tensorflow backend and I got a dimension error. model.load_weights('/weights/densenet121_weights_tf.h5',by_name = True) I get the following error: while if I change the backend as theano and load a model in the theano backend, every things done well. |
I am using Keras 2.0.5 and Tensorflow 1.2.1 and all models work fine with Tensorflow backend. What version of Keras and Tensorflow are you using? |
My keras 2.0.5 and tensorflow 1.2.0 |
Same error with DenseNet169 TF weights. Here is my system info:
|
same problems with tensorflow 1.2.1 and keras 2.0.6 |
set reduction=0.5 to fix the ValueError issue when loading weights |
It's also not working with reduction=0.5. Before it was giving error in 'Assign_97' and now by changing reduction=0.5 it is giving error in 'Assign_1126' |
@Rabia-Metis which densenet did you run. I am doing fine with densenet121 on tensorflow 1.3 and keras 2.0.9 |
@taoddiao Thanks for quick reply |
@Rabia-Metis It is seems that you have changed the output shape |
@taoddiao Oh I forgot it. Thanks for pointing it out |
@Rabia-Metis your observation is correct, but how do we do that? |
Hi,
Did you test the pre-train model on tensorflow backend?
I got an error when use it while the theano backend works.
I need a tensorflow pre-train model.
Thanks
The text was updated successfully, but these errors were encountered: