TACO icon indicating copy to clipboard operation
TACO copied to clipboard

issue with coco evaulate

Open farcaz opened this issue 4 years ago • 1 comments

When i issued this command: python detector.py --model coco --dataset ../data/ --round 0 --class_map taco_config/map_1.csv evaluate got error as below traceback after index created in 150 images. .............. Running COCO evaluation on 150 images. Loading and preparing results... DONE (t=0.02s) creating index... index created! Traceback (most recent call last): File "detector.py", line 373, in evaluate_coco(model, dataset_test, taco, "segm", limit=0) File "detector.py", line 187, in evaluate_coco cocoEval = COCOeval(coco, coco_results, eval_type) File "/home/farhat/.virtualenvs/taco/lib/python3.6/site-packages/pycocotools/cocoeval.py", line 76, in init self.params = Params(iouType=iouType) # parameters File "/home/farhat/.virtualenvs/taco/lib/python3.6/site-packages/pycocotools/cocoeval.py", line 527, in init self.setDetParams() File "/home/farhat/.virtualenvs/taco/lib/python3.6/site-packages/pycocotools/cocoeval.py", line 507, in setDetParams self.iouThrs = np.linspace(.5, 0.95, np.round((0.95 - .5) / .05) + 1, endpoint=True) File "<array_function internals>", line 6, in linspace File "/home/farhat/.virtualenvs/taco/lib/python3.6/site-packages/numpy/core/function_base.py", line 113, in linspace num = operator.index(num) TypeError: 'numpy.float64' object cannot be interpreted as an integer .............. any help is highly appreciated!

farcaz avatar Dec 09 '21 05:12 farcaz

See https://github.com/cocodataset/cocoapi/issues/421

shojint avatar Oct 24 '24 03:10 shojint