Megvii-BaseDetection / Megvii-BaseDetection/YOLOX
torch转trt时出现的问题
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
在使用脚本:
python tools/trt.py -n yolox-x -c yolox_x.pth的过程中出现下图所示warning,模型转换成功。

但是使用这个脚本:
/yolox ../model_trt.engine -i ../../../../assets/dog.jpg测试时,发现结果不对,

只有左上角有几个标签。我使用的模型是你们提供的模型直接转换的,请问这个问题会出在什么地方呢。
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
Start with tools/trt.py and the conversion command python tools/trt.py -n yolox-x -c yolox_x.pth, then inspect the yolox inference entry point used with model_trt.engine and the dog image. Reproduce the conversion and inference behavior, compare the output with the screenshots, and define done as correct detections rather than labels confined to the upper-left corner.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100