Closed himanshurawlani closed 5 years ago
@himanshurawlani,
The recent changes raise the error you described. If you install the latest versions of keras
and keras-applications
, you don't need the work around you proposed. Please pip install -U keras keras-applications
.
You can refer to the image labels starting with n0
in here.
@himanshurawlani, I'll close the issue for now. Please feel free to open it again at any time if you have additional comments.
I am also getting the same error File "/home/vision/.virtualenvs/dl/lib/python3.5/site-packages/keras_applications/imagenet_utils.py", line 224, in decode_predictions fpath = keras_utils.get_file( AttributeError: 'NoneType' object has no attribute 'get_file'
@sumeetssaurav Me too, with the latest versions of keras (2.2.4) and keras-applications(1.0.7).
@sumeetssaurav, @OanaIgnat
Please use from keras.applications import xx
NOT from keras_applications import xx
.
I am getting the following error.
File "serving_sample_request.py", line 33, in
I am using TensorFlow Serving(1.10.0-dev) and have deployed InceptionV3 model using REST API on port 9000 on my Ubuntu 18.04.1. Inorder to test the API, I have written a
sample_request.py
script:Just a month ago this script was working perfectly and now suddenly I get this error:
I did find a work around by replacing the import statement:
from keras_applications import inception_v3
withfrom keras.applications import inception_v3
But the response format has change and it gives response like this:
Those imagenet (starting with 'n0....') labels were not present earlier. Please can anyone tell me where is the issue?