Skip to content

ModuleNotFoundError: No module named 'keras.engine'" #4

@rholgado

Description

@rholgado

Hi!

I have the following requirements installed:

tensorflow>=2.8.0
keras_applications>=1.0.8
kapre>=0.3.7
I have also installed classification-models-1D using pip.

When I run the following example code in my Jupyter notebook:
from classification_models_1D.tfkeras import Classifiers
ResNet18, preprocess_input = Classifiers.get('resnet18')
model = ResNet18(input_shape=(224*224, 2), weights='imagenet')

I encounter the error:

ModuleNotFoundError: No module named 'keras.engine'

I have tried different versions of TensorFlow and Keras, but the issue persists. Can anyone help me resolve this?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions