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

Add options to output COCO-style prediction json #1214

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

chunchet-ng
Copy link

This pull request allows users to output COCO-style prediction JSON by setting the arguments:

  1. coco_out_dir : "Output folder for MSCOCO prediction json."
  2. coco_out_name : "File name for MSCOCO prediction json."

@CLAassistant
Copy link

CLAassistant commented Apr 4, 2022

CLA assistant check
All committers have signed the CLA.

@winner-4
Copy link

What is the command to save as a JSON file?

@chunchet-ng
Copy link
Author

chunchet-ng commented Apr 20, 2022

What is the command to save as a JSON file?

You can get it by running eval.py with the addition of "--coco_out_dir" and "--coco_out_name":

python -m yolox.tools.eval -n  yolox-s -c yolox_s.pth -b 64 -d 8 --conf 0.001 [--fp16] [--fuse] --coco_out_dir "Output folder for MSCOCO prediction json." --coco_out_name "File name for MSCOCO prediction json."

@winner-4
Copy link

What is the command to save as a JSON file?

You can get it by running eval.py with the addition of "--coco_out_dir" and "--coco_out_name":

python -m yolox.tools.eval -n  yolox-s -c yolox_s.pth -b 64 -d 8 --conf 0.001 [--fp16] [--fuse] --coco_out_dir "Output folder for MSCOCO prediction json." --coco_out_name "File name for MSCOCO prediction json."

Thank you very much!

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

Successfully merging this pull request may close these issues.

None yet

3 participants