Keras-retinanet: No module named 'keras_retinanet.utils.compute_overlap'

Created on 5 Jul 2018  路  7Comments  路  Source: fizyr/keras-retinanet

i have find the folder of utils and found not the file compute_overlap.py only found the file of compute_overlap.pyx銆俿o i run it get some errors No module named 'keras_retinanet.utils.compute_overlap' .who can privode the file of compute_overlap.py

Most helpful comment

Hi @yerzhik,

It is a problem when installing keras-retinanet. I managed to resolve the problem following the steps:

  • clone the repo
  • install prophet with conda install -c conda-forge fbprophet
  • install keras retinanet by running pip install . within the cloned repo folder

From this closed issue. It seems to be a problem with gcc.

Thank you for responding.

All 7 comments

it didn't work for me. the script in faq finished correctly. but the error remains.

Im workin on windows 10, And the solution does not work for me too..it generates C file instead of py file and does not work with the C file.

Hi @yerzhik, @ganav

Did you manage to make it work? I have the same problem but the python setup.py build_ext --inplace solution does not work for me :(

Thank you in advance for your help.

Hi @yerzhik, @ganav

Did you manage to make it work? I have the same problem but the python setup.py build_ext --inplace solution does not work for me :(

Thank you in advance for your help.

Could you please remind me what script y ou are running when this appears. I have code changes but don't remember the source of error (where it was coming from)

Hi @yerzhik,

It is a problem when installing keras-retinanet. I managed to resolve the problem following the steps:

  • clone the repo
  • install prophet with conda install -c conda-forge fbprophet
  • install keras retinanet by running pip install . within the cloned repo folder

From this closed issue. It seems to be a problem with gcc.

Thank you for responding.

  • conda install -c conda-forge fbprophet

I have followed the directions given by @mariaculman18 and than used command
"python setup.py build_ext --inplace" and it works great for me

After completion of instruction given by @mariaculman18 , run the command("python setup.py build_ext --inplace") in the location where this setup.py file is located.It will run the python code to generate the .c files (even with out visual studio installation).
To find the setup.py, check in the repo keras_retinanet (https://github.com/fizyr/keras-retinanet)

Was this page helpful?
0 / 5 - 0 ratings