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

Created on 25 Dec 2019  路  1Comment  路  Source: facebookresearch/detectron2

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!

upstream issues

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

limsijie93 picture limsijie93  路  3Comments

RomRoc picture RomRoc  路  4Comments

jinfagang picture jinfagang  路  3Comments

choasup picture choasup  路  3Comments

GiovanniPasq picture GiovanniPasq  路  3Comments