Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pycocotools.COCO #448

Open
123wujiao opened this issue Jun 16, 2022 · 2 comments
Open

pycocotools.COCO #448

123wujiao opened this issue Jun 16, 2022 · 2 comments

Comments

@123wujiao
Copy link

ImportError: mmskeleton.utils.third_party attempted to use a functionality that requires module pycocotools.COCO, but it couldn't be loaded. Please install pycocotools and retry.

@wyz0916-gitHub
Copy link

Hi,I meet the same problem.What's the solution?

@toshalpatel
Copy link

I am using pycocotools==2.0.6, and faced the same error as above.
I changed in mmskeleton/datasets/coco.py

from pycocotools import COCO, COCOeval

to

from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval

and for lazy_imports in third_party.py, I changed

COCO = lazy_import.lazy_module("pycocotools.COCO")
COCOeval = lazy_import.lazy_module("pycocotools.COCOeval")

to

COCO = lazy_import.lazy_module("pycocotools.coco.COCO")
COCOeval = lazy_import.lazy_module("pycocotools.cocoeval.COCOeval")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants