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

cannot import name transfer_weights #109

Closed
fizaict opened this issue Sep 17, 2019 · 6 comments
Closed

cannot import name transfer_weights #109

fizaict opened this issue Sep 17, 2019 · 6 comments

Comments

@fizaict
Copy link

fizaict commented Sep 17, 2019

When i tried to fine tune a model with 10 classes I am getting this error

from keras_segmentation.models.model_utils import transfer_weights

ImportError: cannot import name transfer_weights

Please help me fix this issue asap.

@divamgupta
Copy link
Owner

divamgupta commented Sep 17, 2019 via email

@fizaict
Copy link
Author

fizaict commented Sep 17, 2019

Sorry I did not get your point. I simply installed the keras_segmentation module through CLI and started following your tutorial. It is working fine but in the end during fine tune it showed me the error

from keras_segmentation.models.model_utils import transfer_weights

ImportError: cannot import name transfer_weights

@divamgupta
Copy link
Owner

If you installed keras_segmentation via pip then transfer_weights is not available yet. You can use setup.py to install the latest version of the module.

@fizaict
Copy link
Author

fizaict commented Sep 17, 2019

@divamgupta thank u so much for such timely response

@fizaict
Copy link
Author

fizaict commented Sep 17, 2019

@divamgupta Can you please further explain that what will happen when you try to fine tune the model? Is it important to fine tune the model? Your help will be really appreciated.

@divamgupta
Copy link
Owner

You might get better results if you have lesser data. You can read more here

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

2 participants