You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I must use tensorflow 2.14.0 for my work. But when I run it show the folowing error :
from .models import create_model, create_model_2_model_padding, create_model_2_model, create_model_2_model_patch_size
File "F:\_brain\_code\_code_one_by_one\modules\models.py", line 23, in <module>
from classification_models_3D.kkeras import Classifiers
File "C:\ProgramData\anaconda3\Lib\site-packages\classification_models_3D\kkeras.py", line 2, in <module>
from .models_factory import ModelsFactory
File "C:\ProgramData\anaconda3\Lib\site-packages\classification_models_3D\models_factory.py", line 3, in <module>
from .models import resnet as rn
File "C:\ProgramData\anaconda3\Lib\site-packages\classification_models_3D\models\resnet.py", line 5, in <module>
from ._common_blocks import ChannelSE
File "C:\ProgramData\anaconda3\Lib\site-packages\classification_models_3D\models\_common_blocks.py", line 2, in <module>
from keras.src.legacy.backend import int_shape
ModuleNotFoundError: No module named 'keras.src.legacy'
How can solve the problem.
with tensorflow 2.16.1 it works well
The text was updated successfully, but these errors were encountered:
If you use tensorflow==2.14.0, then it comes with keras==2.14.0. You can force the installation of keras>=3 but there is no guarantee that it will work smoothly (keras>=3 requires tensorflow>=2.16.1).
Therefore, you can't use the last version 1.10 of segmentation_models_3D since it works with keras>=3 only. The last version working with prior keras version is noted in the README page: https://github.com/ZFTurbo/classification_models_3D?tab=readme-ov-file#older-versions
I must use tensorflow 2.14.0 for my work. But when I run it show the folowing error :
How can solve the problem.
with tensorflow 2.16.1 it works well
The text was updated successfully, but these errors were encountered: