We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Export
I've used the export.py script to convert yolov5n.pt to tensorrt.
python3 export.py --weights yolov5n.pt --include engine
But the conversion process fails.
It says that tensorrt is not installed, but it is:
No response
The text was updated successfully, but these errors were encountered:
I think the problem is that for using tensorrt it is necessary to force to use the GPU and FP16. Therefore, the correct command should be
python export.py --include engine --device 0 --half --weights yolov5n.pt --data data.yaml
Sorry, something went wrong.
@dariogonle yes, TRT exports must be run on a GPU backend. Maybe we should have a special assert here for this.
assert im.device.type != 'cpu'
Successfully merging a pull request may close this issue.
Search before asking
YOLOv5 Component
Export
Bug
I've used the export.py script to convert yolov5n.pt to tensorrt.
But the conversion process fails.
It says that tensorrt is not installed, but it is:
Environment
No response
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: