[深度学习]使用python部署yolov10的onnx模型

测试环境:

onnxruntime==1.15.1

opencv-python==4.8.0.76

部分实现代码:

复制代码
 parser = argparse.ArgumentParser()
    parser.add_argument("--model", type=str, default="yolov10n.onnx", help="Input your ONNX model.")
    parser.add_argument("--img", type=str, default="bus.jpg", help="Path to input image.")
    parser.add_argument("--conf-thres", type=float, default=0.5, help="Confidence threshold")
    parser.add_argument("--iou-thres", type=float, default=0.5, help="NMS IoU threshold")
    args = parser.parse_args()


    # Create an instance of the YOLOv10 class with the specified arguments
    detection = YOLOv10(args.model, args.img, args.conf_thres, args.iou_thres)

    # Perform object detection and obtain the output image
    output_image = detection.main()

    # Display the output image in a window
    cv2.namedWindow("Output", cv2.WINDOW_NORMAL)
    cv2.imshow("Output", output_image)

    # Wait for a key press to exit
    cv2.waitKey(0)

视频演示:

使用python部署yolov10的onnx模型_哔哩哔哩_bilibili测试环境:onnxruntime==1.15.1opencv-python==4.8.0.76torch==1.9.0+cu111目前代码已经注释pytorch部分,可以不用安装pytorch, 视频播放量 1、弹幕量 0、点赞数 0、投硬币枚数 0、收藏人数 0、转发人数 0, 视频作者 未来自主研究中心, 作者简介 未来自主研究中心,相关视频:北京籍前华为首名女黑客瑾瑾 在b站坚持直播编程到凌晨 可直播间却仅1在线,分享最新版ChatTTS整合包,解压即用,功能吊打大多数AI配音,基于threejs的元宇宙门户编辑平台展示,用C#部署yolov8的tensorrt模型进行目标检测winform最快检测速度,yolox+deepsort+pyqt5实现目标追踪结果演示,使用纯opencv部署yolov8目标检测模型onnx,AI建模怎么事?我用5秒钟生成的热巴模型,什么水平?,使用C#部署yolov8的目标检测tensorrt模型,深度学习目标检测面试提问Batch Normalization批归一化,基于yolov6+botsort+pyqt5实现的目标追踪视频演示https://www.bilibili.com/video/BV1CS411N7WE/?vd_source=989ae2b903ea1b5acebbe2c4c4a635ee

代码下载:https://download.csdn.net/download/FL1623863129/89388835

相关推荐
默_笙5 天前
🍙 给每个请求过安检:FastAPI 是怎么把校验写进类型注解的
python
LaughingZhu5 天前
Product Hunt 每日热榜 | 2026-09-19
人工智能·深度学习·神经网络·搜索引擎·百度
qq_426003965 天前
启动playwright录制codegen生成自动化测试脚本
python·自动化
虎头金猫5 天前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺
运维·服务器·网络·python·容器·beautifulsoup·pandas
长沙三为智能科技5 天前
家政小程序开发从0到上线:五阶段交付流程与验收清单
python
伞伞悦读5 天前
【第38期】Python 模块与包详解:import、from、模块搜索路径、包结构和 __init__
开发语言·python
猎头南楼5 天前
知识社区推荐系统实践:新用户冷启动与长短期兴趣建模的挑战 资深推荐算法工程师
人工智能·深度学习·算法·机器学习
只睡四小时5 天前
Canvas 弹道联机实战:700 行 + 固定时间步长
python·websocket·html5·游戏开发·canvas
高洁015 天前
未来三年,AI 落地的五个确定性判断一
人工智能·深度学习·机器学习·transformer·知识图谱
奇思妙想聪明勤奋的小羊5 天前
DeepAgents第5章:子Agent 与上下文隔离—让 Agent学会委派
人工智能·python·学习·语言模型