Keras-retinanet: ModuleNotFoundError: No module named 'keras_retinanet'

Created on 18 Jul 2019  路  6Comments  路  Source: fizyr/keras-retinanet

(keras) ubuntu@ubuntu:~/code/keras-retinanet-master/examples$ python ResNet50RetinaNet.py
Using TensorFlow backend.
Traceback (most recent call last):
  File "ResNet50RetinaNet.py", line 19, in <module>
    from keras_retinanet import models
ModuleNotFoundError: No module named 'keras_retinanet'

i converted .ipnb to .py, and run it, the erro happend, could you tell me how to solve it?thx

All 6 comments

Did you follow all the instructions under the Readme's Installation section? Is the error only happening in your .py file or is it also happening when you run the jupyter notebook?

Did you follow all the instructions under the Readme's Installation section? Is the error only happening in your .py file or is it also happening when you run the jupyter notebook?

both, i installation follow README.md, and i finished training by keras_retinanet/bin/train.py coco /path/to/MS/COCO.

Hmm seems like the keras_retinanet module wasn't installed. Are you sure you ran pip install . --user in the root directory of your cloned repo? This should invoke the setup.py file included in the root.

You can double check by pip list and see if keras-retinanet is an installed module

yeah, it solved by re-runing pip install . --user, very thank you.

No problem! Glad it worked out :)

Hi.
I face the same problem when i run it using Jupyter notebook. I followed all the steps which are found in the README.ME also i check it using pip list and it exist. But the python runs well so how am i run it in Jupyter notebook.
Thank You.
With Regards!

Was this page helpful?
0 / 5 - 0 ratings