Loading
Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more

crowdAI is shutting down - please read our blog post for more information

Mapping Challenge

Building Missing Maps with Machine Learning


Completed
719
Submissions
1061
Participants
39044
Views

Need help with project dependencies

Posted by niklasstoehr about 1 year ago

Dear community,

I always get the following error message when trying to import the dependencies:

ImportError: No module named pycocotools.coco

Could you please offer some assistance? It does neither work offline in PyCharm nor in the Jupiter notebook.

Best regards!

Posted by spMohanty  about 1 year ago |  Quote

@niklasstoehr : We included a comment in the ipython notebooks explaining that :

Download and install the Python COCO tools from https://github.com/waleedka/coco.
That’s a fork from the original https://github.com/pdollar/coco with a bug.
fix for Python 3.
I submitted a pull request https://github.com/cocodataset/cocoapi/pull/50
If the PR is merged then use the original repo.
Note: Edit PythonAPI/Makefile and replace “python” with “python3”.

A quick one liner to install the library
!pip install git+https://github.com/waleedka/coco.git#subdirectory=PythonAPI.

Can you let us know if this resolves your problem ?