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

ModuleNotFoundError: No module named 'pycocotools.ytvos' #5

Closed
CuberrChen opened this issue Mar 19, 2021 · 9 comments
Closed

ModuleNotFoundError: No module named 'pycocotools.ytvos' #5

CuberrChen opened this issue Mar 19, 2021 · 9 comments

Comments

@CuberrChen
Copy link

hi!I successfully executed the instructions include in “Install pycocotools” part,but when I perform inference, the above problem occurs. I tried to solve it, but it didn't work. I hope to get your help!

@Epiphqny
Copy link
Owner

hi @CuberrChen, you also need to install the ytvos version pycocotools, as mentioned in README.

@CuberrChen
Copy link
Author

from pycocotools.ytvos import YTVOS from pycocotools.ytvoseval import YTVOSeval import datasets.transforms as T from pycocotools import mask as coco_mask

There is an error in the first two sentences, but there is no problem in the last sentence.

@Epiphqny
Copy link
Owner

@CuberrChen That is because you only installed coco version of pycocotools, as mentioned in README, you need to install both the coco and ytvos version of pycocotools.

@CuberrChen
Copy link
Author

I think so too, but I have successfully implemented the installation instructions in README.md. emm..I'll try again. thanks!

@Epiphqny
Copy link
Owner

@CuberrChen If there is still problem, you could try to directly copy the built pycocotools of ytvos to your python installation path.

@amobiny
Copy link

amobiny commented Apr 14, 2021

It seems like the youtubevos cocoapi does not get properly set up for some people.
I actually found a way to solve this problem according to @Epiphqny 's comment and I'll write the details here.
I just copied the ytvos.py and ytvoseval.py files (you can find them here) to the right directory in the Python site-packages. For example, if you are using a conda environment named visTR and python 3.7, the directory to copy into will be something like ./anaconda3/envs/visTR/lib/python3.7/site-packages/pycocotools.

@9p15p
Copy link

9p15p commented Apr 30, 2021

Don't use pip install pycocotools. please install pycocotools locally .https://github.com/youtubevos/cocoapi

@AnaRhisT94
Copy link

Don't use pip install pycocotools. please install pycocotools locally .https://github.com/youtubevos/cocoapi

This doesn't work.

@theRain0450
Copy link

It seems like the youtubevos cocoapi does not get properly set up for some people. I actually found a way to solve this problem according to @Epiphqny 's comment and I'll write the details here. I just copied the ytvos.py and ytvoseval.py files (you can find them here) to the right directory in the Python site-packages. For example, if you are using a conda environment named visTR and python 3.7, the directory to copy into will be something like ./anaconda3/envs/visTR/lib/python3.7/site-packages/pycocotools.

I tried this method and successfully solved the error, great!Thanks bro!

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

6 participants