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

Steps for converting to Python 3 #1

Closed
yashkotadia opened this issue Oct 17, 2019 · 2 comments
Closed

Steps for converting to Python 3 #1

yashkotadia opened this issue Oct 17, 2019 · 2 comments

Comments

@yashkotadia
Copy link

Hey,
I am trying to run your code using Python 3 and have obviously run into errors.

Could you please outline the correct steps that would be required to run this repo with python 3.

For your reference, this is the error I run into:
CUDA_VISIBLE_DEVICES=1 python dataset_leakage.py --num_epochs 100 --learning_rate 0.00005 --batch_size 16 --num_rounds 5 --no_image
Traceback (most recent call last):
File "dataset_leakage.py", line 26, in
from data_loader import CocoObjectGender
File "/home/yash/Documents/Balanced-Datasets-Are-Not-Enough/object_multilabel/data_loader.py", line 7, in
from pycocotools.coco import COCO
File "/home/yash/Documents/Balanced-Datasets-Are-Not-Enough/object_multilabel/pycocotools/coco.py", line 55, in
from . import mask as maskUtils
File "/home/yash/Documents/Balanced-Datasets-Are-Not-Enough/object_multilabel/pycocotools/mask.py", line 3, in
import pycocotools._mask as _mask
ImportError: No module named 'pycocotools._mask'

@tianlu-wang
Copy link
Collaborator

This is not an issue caused by Python3. You need to download cocoapi repo, compile it and replace the pycocotools. cocodataset/cocoapi#14

@yashkotadia
Copy link
Author

I understand. Thank you

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

2 participants