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

issue with coco evaulate #38

Open
farcaz opened this issue Dec 9, 2021 · 1 comment
Open

issue with coco evaulate #38

farcaz opened this issue Dec 9, 2021 · 1 comment

Comments

@farcaz
Copy link

farcaz commented Dec 9, 2021

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!

@shojint
Copy link

shojint commented Oct 24, 2024

See cocodataset/cocoapi#421

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