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

paddleDetection 30分钟入门中通过json文件评估是什么意思 #8704

Open
1 task done
keeper-jie opened this issue Nov 9, 2023 · 1 comment
Open
1 task done
Assignees
Labels
question Further information is requested

Comments

@keeper-jie
Copy link

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

操作参考链接:
https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.4/docs/tutorials/GETTING_STARTED_cn.md

docker run --name dev --runtime=nvidia -v $PWD:/mnt -p 8888:8888 -it paddlecloud/paddledetection:2.4-gpu-cuda10.2-cudnn7-e9a542 /bin/bash使用docker运行以下命令报错:

export CUDA_VISIBLE_DEVICES=0 #windows和Mac下不需要执行该命令
python tools/eval.py -c configs/yolov3/yolov3_mobilenet_v1_roadsign.yml \
             --json_eval \
             --output_eval evaluation/

报错信息如下:

Traceback (most recent call last):
  File "tools/eval.py", line 152, in <module>
    main()
  File "tools/eval.py", line 148, in main
    run(FLAGS, cfg)
  File "tools/eval.py", line 93, in run
    dataset=cfg['EvalDataset'])
  File "/home/PaddleDetection/ppdet/metrics/coco_utils.py", line 169, in json_eval_results
    assert metric == 'COCO'
AssertionError

问题:报错原因以及示例的JSON格式是怎么样的,可以怎么修改

@keeper-jie keeper-jie added the question Further information is requested label Nov 9, 2023
@LokeZhou
Copy link
Collaborator

LokeZhou commented Mar 1, 2024

检查一下metric 的值是不是coco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants