19tchoubou / anevrisme_segmentation

Aneurysm Segmentation with 3DUnet
Apache License 2.0
2 stars 0 forks source link

Issue with importing the segmentation model. #9

Open jumanamj opened 12 months ago

jumanamj commented 12 months ago

Whenever i try to import the segmentation model, i keep getting the below error despite the fact the i already installed it and all the necessary libraries. I modified the classification model script to avoid the module error of keras engine but it is yet essential to run the whole script. How can i tackle the issue?


ModuleNotFoundError Traceback (most recent call last) Cell In[4], line 2 1 # funky librairies for segmentation ----> 2 from classification_models_3D.tfkeras import Classifiers 5 import segmentation_models_3D as sm # pretrained models 6 #import segmentation_models as sm

File ~\anaconda3\Lib\site-packages\classification_models_3D\tfkeras.py:2 1 import tensorflow.keras as tfkeras ----> 2 from .models_factory import ModelsFactory 5 class TFKerasModelsFactory(ModelsFactory): 7 @staticmethod 8 def get_kwargs():

File ~\anaconda3\Lib\site-packages\classification_models_3D\models_factory.py:14 12 from .models import mobilenet as mb1 13 from .models import mobilenet_v2 as mb2 ---> 14 from .models import efficientnet as eff 15 from .models import efficientnet_v2 as eff2 16 from .models import convnext as cnext

File ~\anaconda3\Lib\site-packages\classification_models_3D\models\efficientnet.py:33 30 import math 32 from keras.applications import imagenet_utils ---> 33 from keras.engine import training 34 from keras.layers import VersionAwareLayers 35 from keras.utils import data_utils

ModuleNotFoundError: No module named 'keras.engine'