user4473195
user4473195

Reputation:

DeepImageFeaturizer returing error cannot import name ResNet50 from keras.applications in pyspark

I am trying to.implement image classification for.extracting features from images I am using DeepImageFeaturizer and using Inceptionv3 model But the from sparkdl import DeepImageFeaturizer is returning error Import error: cannot import name ResNet50 from Keras.applications in pyspark colab.

Upvotes: 0

Views: 946

Answers (1)

Samet Koca
Samet Koca

Reputation: 11

I think the error is related to the versions. I don't recommend it but you can try this :

Open this file :

/home/user/.local/lib/python3.8/site-packages/sparkdl/transformers/keras_applications.py

instead of

from keras.applications import resnet50

to

from tensorflow.keras.applications import resnet50

Upvotes: 1

Related Questions