from sparkdl import DeepImageFeaturizer

Viewed 25

I need to use spark in transfer learning to train images ,the error is: "nnot import name 'resnet50' from 'keras.applications' (/usr/local/lib/python3.7/dist-packages/keras/applications/init.py) "

1 Answers

i try to solve this question since one week, this one is coming from sparkdl, if you add to this file (sparkdl/transformers/keras_applications.py) **

from tensorflow.keras.applications

**, it will be return normal, but this time you will see another error :) like

AttributeError: module 'tensorflow' has no attribute 'Session'

i tried on different IDE (Pycharm, Vs Code) but i got the same errors. there are different explications on Stackoverflow. but i'm totally confused now

Related