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

coco issue #238

Closed
bughunter99 opened this issue Jan 23, 2018 · 6 comments
Closed

coco issue #238

bughunter99 opened this issue Jan 23, 2018 · 6 comments

Comments

@bughunter99
Copy link

Hi,

I tried to run the code on my pc that has python 3.6.
But because of below issue, it couldn't run.

from pycocotools.coco import COCO
ModuleNotFoundError: No module named 'pycocotools'

And I found it is impossible to use pycoco on python 3.x in below.

http://coco.lri.fr/COCOdoc/installation.html

Is retinanet only possible to run on python 2.x?
Thanks.

@hgaiser
Copy link
Contributor

hgaiser commented Jan 23, 2018

keras-retinanet should work fine on both python2 and python3. Did you follow the README? It explains how to install pycocotools. If this doesn't work for you, can you share the error you get when trying to install pycocotools?

@bughunter99
Copy link
Author

bughunter99 commented Jan 23, 2018

Thanks. I had tried to do it on windows.
And I found pycocotools could not support windows for some reasons.

cocodataset/cocoapi#51

I'll give up ^^;

@hgaiser
Copy link
Contributor

hgaiser commented Jan 23, 2018

Ah I see. You can try to use PascalVOC instead, or make your own CSV dataset (or install a real OS ;p).

I'll close this issue then.

@hgaiser hgaiser closed this as completed Jan 23, 2018
@bughunter99
Copy link
Author

Ok, I checked PascalVOC runned on my pc. Thanks.

@Chunde
Copy link

Chunde commented Feb 27, 2018

hi @bughunter99 You can replace extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'] with extra_compile_args={'gcc': ['/Qstd=c99']} in ./libs/datasets/pycocotools/setup.py. maybe help

ref: CharlesShang/FastMaskRCNN#173

@cbballantyne
Copy link

To anyone else that stumbles on this, by installing Visual Studio 2017 with C++ support and then following Chunde's suggestion I was able to get the cocoapi to install properly on Windows 10. Thanks for the suggestion Chunde!

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

4 participants