ZFTurbo / classification_models_3D

Set of models for classifcation of 3D volumes
MIT License
155 stars 29 forks source link

cannot import name 'get_submodules_from_kwargs' from 'classification_models_3D' (unknown location) #24

Open MammadTavakoli opened 6 months ago

MammadTavakoli commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

ZFTurbo commented 6 months ago

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.