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 'get_submodules_from_kwargs' from 'classification_models_3D' (unknown location) #24

Open
MammadTavakoli opened this issue May 4, 2024 · 3 comments

Comments

@MammadTavakoli
Copy link

I want to change in some models then I use directly your codes.
when I want import it with below code:
from classification_models_3D.classification_models_3D.kkeras import Classifiers

this error is happend:
cannot import name 'get_submodules_from_kwargs' from 'classification_models_3D' (unknown location)

some where like resnext.py you have 'from classification_models_3D import get_submodules_from_kwargs' that I changed them too from .. import get_submodules_from_kwargs and the problem is solved.
thanks

@nicolas-combaret
Copy link
Contributor

Hello,

First, I wonder why you have to use the following line:
from classification_models_3D.classification_models_3D.kkeras import Classifiers
and not:
from classification_models_3D.kkeras import Classifiers

How did you install classification_models_3D?

Regards,
Nicolas

@MammadTavakoli
Copy link
Author

I download the source and run from that with out installing with pip.

@ZFTurbo
Copy link
Owner

ZFTurbo commented May 7, 2024

You should put internal folder classification_models_3D which is located inside classification_models_3D into root of your code. In this case you won't need any changes.

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