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

Problem during testing with coco val2017 dataset #43

Open
Alex123Pr opened this issue Jul 19, 2021 · 4 comments · May be fixed by #44
Open

Problem during testing with coco val2017 dataset #43

Alex123Pr opened this issue Jul 19, 2021 · 4 comments · May be fixed by #44

Comments

@Alex123Pr
Copy link

Used the following command:
python test.py --data data/coco.yaml --img 1280 --batch 32 --conf 0.001 --iou 0.65 --device 0 --cfg cfg/yolor_p6.cfg --weights yolor_p6.pt --name yolor_p6_val
Got the following result:
image

  • Provided the path to the dataset(images val2017)
  • Made a 'coco' directory and put the 'instances-val2017.json' file there under 'annotations folder'

What am I missing? It says that there are no labels, but I have provided the JSON file. Do I need to provide the annotation TXT files too? I am sorry if the question is dumb I am a beginner

@WongKinYiu
Copy link
Owner

the error is : ‘numpy.float64’ object cannot be interpreted as an integer

it seems your pycocotools is out of date or you are not using python 3.

@Alex123Pr
Copy link
Author

Thankyou for the quick response I'll try again and update. Thanks again

@Topology1225 Topology1225 linked a pull request Jul 19, 2021 that will close this issue
2 tasks
@JoseIgnDiazVilla
Copy link

Did you manage to fix it?
I tried to update pycocotools to 2.0.3 but still get the same error

@ardentw
Copy link

ardentw commented May 30, 2022

pycocotools 2.0.4 can fix it

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

Successfully merging a pull request may close this issue.

4 participants