ssd.pytorch icon indicating copy to clipboard operation
ssd.pytorch copied to clipboard

from pycocotools.coco import COCO

Open Smallwhite999 opened this issue 4 years ago • 3 comments

ssd.pytorch/data/coco.py", line 89, in init from pycocotools.coco import COCO ModuleNotFoundError: No module named 'pycocotools'

there is no pycocotools.coco and i can't find it ,why?

Smallwhite999 avatar Dec 05 '20 16:12 Smallwhite999

You need to install the package pycocotools for the dataloader to work. If you are using conda, you can do it using:

conda install -c conda-forge pycocotools

shruti-shyam avatar Dec 07 '20 13:12 shruti-shyam

pip install pycocotools

another way: pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

kaisark avatar Dec 07 '20 21:12 kaisark

pip install pycocotools

another way: pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

I have got clone the pycocotools, and the location is correct, but there still has the error, why?

Smallwhite999 avatar Dec 08 '20 02:12 Smallwhite999