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

Error when evaluate: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer #580

Closed
hungpthanh opened this issue Dec 25, 2019 · 1 comment
Labels
upstream issues Issues in other libraries

Comments

@hungpthanh
Copy link

hungpthanh commented Dec 25, 2019

Instructions To Reproduce the Issue

  1. what changes you made (git diff) or what code you wrote
    I don't change code in Detectron2 repo
    I just prepare COCO dataset following instruction
    git diff is empty

  2. what exact command you run:
    Training: python tools/train_net.py --num-gpus 2 --config-file configs/COCO-Detection/retinanet_R_50_FPN_3x.yaml SOLVER.IMS_PER_BATCH 4 SOLVER.BASE_LR 0.0025
    Evaluate: python tools/train_net.py --config-file configs/COCO-Detection/retinanet_R_50_FPN_3x.yaml --eval-only MODEL.WEIGHTS output/model_final.pth

  3. what you observed (including the full logs):
    detectron2

  4. please also simplify the steps as much as possible so they do not require additional resources to
    run, such as a private dataset.

Expected behavior

I expect that process will show AP result

Environment

detectron2_2

Thanks for your help!

@ppwwyyxx
Copy link
Contributor

It's an issue of coco API: it does not work with numpy 1.18. Downgrading to 1.17 will help.

I'll try to fix this in COCO API.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream issues Issues in other libraries
Projects
None yet
Development

No branches or pull requests

2 participants