WongKinYiu / yolor

implementation of paper - You Only Learn One Representation: Unified Network for Multiple Tasks (https://arxiv.org/abs/2105.04206)
GNU General Public License v3.0
1.99k stars 518 forks source link

Problem during testing with coco val2017 dataset #43

Open Alex123Pr opened 3 years ago

Alex123Pr commented 3 years ago

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

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 commented 3 years ago

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 commented 3 years ago

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

JoseIgnDiazVilla commented 2 years ago

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

ardentw commented 2 years ago

pycocotools 2.0.4 can fix it