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

TensorRT #1535

Closed
1 task done
osmancanaksoy opened this issue Jul 23, 2024 · 9 comments
Closed
1 task done

TensorRT #1535

osmancanaksoy opened this issue Jul 23, 2024 · 9 comments
Labels
question Further information is requested Stale

Comments

@osmancanaksoy
Copy link

Search before asking

  • I have searched the Yolo Tracking issues and found no similar bug report.

Question

Hello,
I have Yolov8 model converted to trt form. However, when I run this trt model with bot-sort, I experience a fps drop. Is there a way to convert Bot-Sort to trt form?
Thanks

@osmancanaksoy osmancanaksoy added the question Further information is requested label Jul 23, 2024
@mikel-brostrom
Copy link
Owner

mikel-brostrom commented Jul 23, 2024

I have not tried this in a long time since I have switched to an Apple computer and it cannot be run in the pipeline as no GPU are available. But you can try this to export the ReID model:

python3 boxmot/appearance/reid_export.py --include engine --device 0 --dynamic

and then run inference with that model using:

python tracking/track.py --source 0 --reid-model <path_to_tensorrt_model>

@osmancanaksoy
Copy link
Author

When ı try to run reid_export.py file ı have a error like this:
All the missing packages were installed successfully
2024-07-24 15:16:59.924 | INFO | boxmot.appearance.exporters.base_exporter:wrapper:17 -
Starting /boxmot/tracking/weights/osnet_x0_25_msmt17.pt export with EngineExporter...
2024-07-24 15:16:59.962 | ERROR | boxmot.appearance.exporters.base_exporter:wrapper:23 - Export failure: name 'ONNXExporter' is not defined

@mikel-brostrom
Copy link
Owner

mikel-brostrom commented Jul 24, 2024

Yup, I see the issue

@osmancanaksoy
Copy link
Author

How to solve this problem ? Have you any idea ?

@mikel-brostrom
Copy link
Owner

mikel-brostrom commented Jul 24, 2024

Pull the latest, I just pushed some new code. It is hard for me to test this part as I don't have a computer with Nvidia card and CUDA at hand. It is not runnable in the CI either...

@osmancanaksoy
Copy link
Author

Okay, I will check it and give you feedback.
Thanks

@osmancanaksoy
Copy link
Author

The current error is as follows:
2024-07-24 16:27:38.526 | INFO | boxmot.appearance.exporters.base_exporter:wrapper:20 - Export success, saved as /boxmot/tracking/weights/osnet_x0_25_msmt17.onnx (0.9 MB)
2024-07-24 16:27:38.526 | INFO | boxmot.appearance.exporters.tensorrt_exporter:export:21 -
Starting export with TensorRT 10.2.0.post1...
2024-07-24 16:27:38.526 | ERROR | boxmot.appearance.exporters.base_exporter:wrapper:23 - Export failure: 'EngineExporter' object has no attribute 'verbose'

@mikel-brostrom
Copy link
Owner

Just added it 🚀

Copy link

github-actions bot commented Aug 4, 2024

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

@github-actions github-actions bot added the Stale label Aug 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

2 participants