Megvii-BaseDetection / Megvii-BaseDetection/YOLOX
demo.py和onnx_inference.py 后处理不同?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
你好,感谢你的开源工作。 研究你的代码时有一个疑问请教你。
demo.py 中 postprocess 是直接输出结果
而 onnx_inference.py 中, 模型转为onnx时 demo_postprocess 中 结果还要乘以 anchor 和步长。
为什么会有这样的差异? 后处理不应该一样么?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the postprocess path in demo.py with demo_postprocess in onnx_inference.py, starting at the model-output handling and the anchor and stride calculations mentioned in the issue. Trace where each path receives decoded outputs, then document why the transformations differ and update the relevant explanation or comments so the expected post-processing behavior is clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100