TensorRT-YOLOV8 python代码

上传者: yxk666 | 上传时间: 2026-03-04 14:24:39 | 文件大小: 135KB | 文件类型: ZIP
包含YOLOv8的TensorRT加速的相关代码 1、适用于TensorRT模型的导出代码 2、模型调用,结果图保存 3、POST接口、Get接口和接口调用代码 接口代码是先加载模型,再进行推理,推理速度RTX3090速度3.6ms左右 相关教程,请看我博客内容。

文件下载

资源详情

[{"title":"( 89 个子文件 135KB ) TensorRT-YOLOV8 python代码","children":[{"title":"infer-post.py <span style='color:#111;'> 429B </span>","children":null,"spread":false},{"title":"export.txt <span style='color:#111;'> 151B </span>","children":null,"spread":false},{"title":"build.txt <span style='color:#111;'> 113B </span>","children":null,"spread":false},{"title":"export-seg.py <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"csrc","children":[{"title":"segment","children":[{"title":"normal","children":[{"title":"include","children":[{"title":"common.hpp <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"yolov8-seg.hpp <span style='color:#111;'> 13.59KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 6.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"simple","children":[{"title":"include","children":[{"title":"common.hpp <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"yolov8-seg.hpp <span style='color:#111;'> 12.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 6.17KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"jetson","children":[{"title":"segment","children":[{"title":"include","children":[{"title":"common.hpp <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"yolov8-seg.hpp <span style='color:#111;'> 12.70KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 6.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"detect","children":[{"title":"include","children":[{"title":"yolov8.hpp <span style='color:#111;'> 9.75KB </span>","children":null,"spread":false},{"title":"common.hpp <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false}],"spread":true},{"title":"pose","children":[{"title":"include","children":[{"title":"common.hpp <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"yolov8-pose.hpp <span style='color:#111;'> 12.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 6.81KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"deepstream","children":[{"title":"deepstream_app_config.txt <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"CMakeLists.txt <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"config_yoloV8.txt <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false},{"title":"custom_bbox_parser","children":[{"title":"nvdsparsebbox_yoloV8.cpp <span style='color:#111;'> 4.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"labels.txt <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"detect","children":[{"title":"normal","children":[{"title":"include","children":[{"title":"yolov8.hpp <span style='color:#111;'> 11.19KB </span>","children":null,"spread":false},{"title":"common.hpp <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 5.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"end2end","children":[{"title":"include","children":[{"title":"yolov8.hpp <span style='color:#111;'> 9.79KB </span>","children":null,"spread":false},{"title":"common.hpp <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 5.45KB </span>","children":null,"spread":false},{"title":"build","children":[{"title":"CMakeFiles","children":[{"title":"cmake.check_cache <span style='color:#111;'> 86B </span>","children":null,"spread":false}],"spread":false},{"title":"CMakeCache.txt <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"pose","children":[{"title":"normal","children":[{"title":"include","children":[{"title":"common.hpp <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"yolov8-pose.hpp <span style='color:#111;'> 12.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 6.81KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"weights","children":null,"spread":false},{"title":"data","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"output","children":null,"spread":false},{"title":".pre-commit-config.yaml <span style='color:#111;'> 646B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"YOLOv8-TensorRT-main.iml <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 11.44KB </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"profiles_settings.xml <span style='color:#111;'> 174B </span>","children":null,"spread":false}],"spread":false},{"title":"modules.xml <span style='color:#111;'> 299B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 184B </span>","children":null,"spread":false}],"spread":true},{"title":"infer-det.txt <span style='color:#111;'> 101B </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"star.md <span style='color:#111;'> 172B </span>","children":null,"spread":false},{"title":"Jetson.md <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"Pose.md <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"Normal.md <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"Segment.md <span style='color:#111;'> 6.22KB </span>","children":null,"spread":false},{"title":"API-Build.md <span style='color:#111;'> 719B </span>","children":null,"spread":false}],"spread":true},{"title":"infer-det.py <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"api.py <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"infer-seg.py <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false},{"title":"infer-det-without-torch.py <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"models","children":[{"title":"utils.py <span style='color:#111;'> 9.94KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 556B </span>","children":null,"spread":false},{"title":"cudart_api.py <span style='color:#111;'> 6.02KB </span>","children":null,"spread":false},{"title":"pycuda_api.py <span style='color:#111;'> 5.21KB </span>","children":null,"spread":false},{"title":"api.py <span style='color:#111;'> 13.45KB </span>","children":null,"spread":false},{"title":"common.py <span style='color:#111;'> 6.26KB </span>","children":null,"spread":false},{"title":"engine.py <span style='color:#111;'> 14.13KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"torch_utils.cpython-38.pyc <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"utils.cpython-38.pyc <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false},{"title":"common.cpython-38.pyc <span style='color:#111;'> 6.84KB </span>","children":null,"spread":false},{"title":"engine.cpython-38.pyc <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false},{"title":"__init__.cpython-38.pyc <span style='color:#111;'> 552B </span>","children":null,"spread":false}],"spread":false},{"title":"torch_utils.py <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"infer-seg-without-torch.py <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"export-det.py <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false},{"title":"build.py <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"gen_pkl.py <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"config.cpython-38.pyc <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false}],"spread":false},{"title":"outputs","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 8.05KB </span>","children":null,"spread":false},{"title":"infer-pose.py <span style='color:#111;'> 4.04KB </span>","children":null,"spread":false},{"title":"infer-pose-without-torch.py <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"trt-profile.py <span style='color:#111;'> 767B </span>","children":null,"spread":false},{"title":"config.py <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明