Mmdetection: AttributeError: COCO object has no attribute get_cat_ids

Created on 10 Jul 2020  ·  9Comments  ·  Source: open-mmlab/mmdetection

please help me solve this question,many thanks!

Most helpful comment

Please run pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools" to install coco tools.

All 9 comments

Please run pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools" to install coco tools.

please help me solve this question,many thanks!

You could reinstall pycocotools using :
pip install "git+https://github.com/openmmlab/cocoapi.git#subdirectory=pycocotools"

please help me solve this question,many thanks!

You could reinstall pycocotools using :
pip install "git+https://github.com/openmmlab/cocoapi.git#subdirectory=pycocotools"

yes,I do it like you said ;but it occurs:

please help me solve this question,many thanks!

You could reinstall pycocotools using :
pip install "git+https://github.com/openmmlab/cocoapi.git#subdirectory=pycocotools"

yes, I do ,but it occurs follow question:
image
and i also follow this step to solve ,but cannot solve :
image

I still cannot pip install it,so i was upset

@wuhaonanBOB You may try the following

git clone https://github.com/open-mmlab/cocoapi.git
cd cocoapi
pip install .

pip install .
thank you very much ,follow your step ,I have soved it 谢谢你们三人的帮助!!

@wuhaonanBOB @xvjiarui
When I run "pip install .", it gets such problem like below:
ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

how should I do ?

image
just like this

image
just like this

yes,you can " cd pycocotools" in cocoapi. and then run "pip install ."

Was this page helpful?
0 / 5 - 0 ratings

Related issues

letanloc1998 picture letanloc1998  ·  3Comments

liugaolian picture liugaolian  ·  3Comments

fmassa picture fmassa  ·  3Comments

tianxinhang picture tianxinhang  ·  3Comments

happog picture happog  ·  3Comments