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 infer code #7464

Closed
1 task done
lyc728 opened this issue Apr 18, 2022 · 5 comments · Fixed by #7537
Closed
1 task done

tensorrt infer code #7464

lyc728 opened this issue Apr 18, 2022 · 5 comments · Fixed by #7537
Labels
question Further information is requested

Comments

@lyc728
Copy link

lyc728 commented Apr 18, 2022

Search before asking

Question

Hi, do you have the TRT inference code

Additional

No response

@lyc728 lyc728 added the question Further information is requested label Apr 18, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2022

👋 Hello @lyc728, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.

If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.

For business inquiries or professional support requests please visit https://ultralytics.com or email support@ultralytics.com.

Requirements

Python>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. To get started:

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install

Environments

YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

CI CPU testing

If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on macOS, Windows, and Ubuntu every 24 hours and on every commit.

@glenn-jocher
Copy link
Member

@lyc728 it's very simple:

python export.py --weights yolov5s.pt --include engine
python detect.py --weights yolov5s.engine

@lyc728
Copy link
Author

lyc728 commented Apr 22, 2022

@lyc728 it's very simple:

python export.py --weights yolov5s.pt --include engine
python detect.py --weights yolov5s.engine

Switching to TRT is time-consuming and unsuccessful

@lyc728
Copy link
Author

lyc728 commented Apr 22, 2022

@glenn-jocher it's very simple:

python export.py --weights yolov5s.pt --include engine
python detect.py --weights yolov5s.engine

Switching to TRT is time-consuming and unsuccessful

@glenn-jocher
Copy link
Member

@lyc728 what seems to be the problem?

glenn-jocher added a commit that referenced this issue Apr 22, 2022
glenn-jocher added a commit that referenced this issue Apr 22, 2022
* Autoinstall TensorRT if missing

May resolve #7464

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update export.py

* Update export.py

* Update export.py

* Update export.py

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this issue Aug 26, 2022
* Autoinstall TensorRT if missing

May resolve ultralytics#7464

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update export.py

* Update export.py

* Update export.py

* Update export.py

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this issue Sep 8, 2022
* Autoinstall TensorRT if missing

May resolve ultralytics#7464

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update export.py

* Update export.py

* Update export.py

* Update export.py

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants