{"id":13438591,"url":"https://github.com/hpc203/yolopv2-opencv-onnxrun-cpp-py","last_synced_at":"2025-03-20T06:30:46.503Z","repository":{"id":59676339,"uuid":"538436218","full_name":"hpc203/yolopv2-opencv-onnxrun-cpp-py","owner":"hpc203","description":"分别使用OpenCV、ONNXRuntime部署YOLOPV2目标检测+可驾驶区域分割+车道线分割，一共包含54个onnx模型，依然是包含C++和Python两个版本的程序。仅仅只依赖OpenCV就能运行，彻底摆脱对任何深度学习框架的依赖。","archived":false,"fork":false,"pushed_at":"2022-09-20T01:32:51.000Z","size":408,"stargazers_count":70,"open_issues_count":9,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-28T00:23:15.538Z","etag":null,"topics":["autonomous-driving","cpp","drivable-area-segmentation","lane-lines-detection","object-detection","onnxruntime","opencv-dnn","python","yolopv2"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hpc203.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-19T09:55:19.000Z","updated_at":"2024-10-04T12:06:47.000Z","dependencies_parsed_at":"2023-01-18T15:00:14.951Z","dependency_job_id":null,"html_url":"https://github.com/hpc203/yolopv2-opencv-onnxrun-cpp-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Fyolopv2-opencv-onnxrun-cpp-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Fyolopv2-opencv-onnxrun-cpp-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Fyolopv2-opencv-onnxrun-cpp-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Fyolopv2-opencv-onnxrun-cpp-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hpc203","download_url":"https://codeload.github.com/hpc203/yolopv2-opencv-onnxrun-cpp-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244564965,"owners_count":20473166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autonomous-driving","cpp","drivable-area-segmentation","lane-lines-detection","object-detection","onnxruntime","opencv-dnn","python","yolopv2"],"created_at":"2024-07-31T03:01:06.714Z","updated_at":"2025-03-20T06:30:41.494Z","avatar_url":"https://github.com/hpc203.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# yolopv2-opencv-onnxrun-cpp-py\n分别使用OpenCV、ONNXRuntime部署YOLOPV2目标检测+可驾驶区域分割+车道线分割，一共包含54个onnx模型，依然是包含C++和Python两个版本的程序\n\n由于模型文件数量比较多，无法直接上传到github，因此把模型文件上传到百度云盘。\n链接: https://pan.baidu.com/s/1aOflEqusdGZT2mhQI-ckqg  密码: w6g9\n\n54个onnx模型文件，占用的磁盘空间是7.84G，其中\n\n\n\n(1).onnx_post文件夹里的onnx文件，是把最后3个yolo层在经过decode之后，经过torch.cat(z, 1)合并成一个张量，并且还包含nms的。\n因此在加载onnx_post文件夹里的onnx文件做推理之后的后处理非常简单，只需要过滤置信度低的检测框。但是经过程序运行实验，onnxruntime能加载\nonnx文件做推理并且结果正常，但是opencv的dnn模块不能。\n\n(2). onnx_split文件夹里的onnx文件，是把最后3个yolo层在经过decode之后，经过torch.cat(z, 1)合并成一个张量。\n因此在加载onnx_split文件夹里的onnx文件做推理之后的后处理，包括过滤置信度低的检测框，然后执行nms去除重叠度高的检测框。\n经过程序运行实验，onnxruntime能加载onnx文件做推理并且结果正常，而opencv的dnn模块能加载onnx文件，但是在forward函数报错。\n\n(3). onnx文件夹里的onnx文件, 是不包含最后3个yolo层的。因此在加载onnx文件夹里的onnx文件做推理之后的后处理，包括\n3个yolo层分别做decode，过滤置信度低的检测框，执行nms去除重叠度高的检测框，一共3个步骤。\n经过程序运行实验，onnxruntime和opencv的dnn模块都能加载onnx文件做推理并且结果正常。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpc203%2Fyolopv2-opencv-onnxrun-cpp-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhpc203%2Fyolopv2-opencv-onnxrun-cpp-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpc203%2Fyolopv2-opencv-onnxrun-cpp-py/lists"}