{"id":26307350,"url":"https://github.com/zz990099/depth_anything_cpp","last_synced_at":"2026-02-27T22:38:00.739Z","repository":{"id":282055003,"uuid":"947228525","full_name":"zz990099/depth_anything_cpp","owner":"zz990099","description":"DepthAnything算法的c++实现，包括TensorRT、RKNN、OnnxRuntime三种硬件平台(推理引擎).","archived":false,"fork":false,"pushed_at":"2025-03-12T15:24:47.000Z","size":720,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T23:34:55.879Z","etag":null,"topics":["cpp","deploy","depthanything","depthanythingv2","implementation","onnxruntime","rknn","tensorrt"],"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/zz990099.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-12T11:02:29.000Z","updated_at":"2025-05-06T10:21:40.000Z","dependencies_parsed_at":"2025-03-12T15:44:52.549Z","dependency_job_id":null,"html_url":"https://github.com/zz990099/depth_anything_cpp","commit_stats":null,"previous_names":["zz990099/depth_anything_cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zz990099/depth_anything_cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zz990099%2Fdepth_anything_cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zz990099%2Fdepth_anything_cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zz990099%2Fdepth_anything_cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zz990099%2Fdepth_anything_cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zz990099","download_url":"https://codeload.github.com/zz990099/depth_anything_cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zz990099%2Fdepth_anything_cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29917824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp","deploy","depthanything","depthanythingv2","implementation","onnxruntime","rknn","tensorrt"],"created_at":"2025-03-15T10:14:34.151Z","updated_at":"2026-02-27T22:38:00.724Z","avatar_url":"https://github.com/zz990099.png","language":"C++","readme":"# depth_anything_cpp\n\n## About This Project\n\n该项目是`DepthAnything`算法的c++实现，包括`TensorRT`、`RKNN`、`OnnxRuntime`三种硬件平台(推理引擎).\n\n## Features\n\n1. 支持多种推理引擎: `TensorRT`、`RKNN`、`OnnxRuntime`\n2. 支持异步、多核推理，算法吞吐量较高，特别是`RK3588`平台\n\n## Demo\n\n| \u003cimg src=\"./assets/image.png\" alt=\"1\" width=\"500\"\u003e | \u003cimg src=\"./assets/depth_color.png\" alt=\"1\" width=\"500\"\u003e |\n|:----------------------------------------:|:----:|\n| **input image**  | **depth in color** |\n\n|  nvidia-3080-laptop   |   qps   |  cpu   |\n|:---------:|:---------:|:----------------:|\n|  depth_anything_v2(fp16)   |   **197**   |  120%   |\n|  depth_anything_v2(fp16) - ***async***  |   **208**   |  180%   |\n\n\n|  jetson-orin-nx-16GB   |   qps   |  cpu   |\n|:---------:|:---------:|:----------------:|\n|  depth_anything_v2(fp16)   |   **39**   |  27%   |\n|  depth_anything_v2(fp16) - ***async***  |   **41**   |  34%   |\n\n\n|  orangepi-5-plus-16GB   |   qps   |  cpu   |\n|:---------:|:---------:|:----------------:|\n|  depth_anything_v2(fp16)   |   **1.2**   |  14%   |\n|  depth_anything_v2(fp16) - ***async***  |   **3.2**   |  33%   |\n\n|  intel-i7-11800H   |   qps   |  cpu   |\n|:---------:|:---------:|:----------------:|\n|  depth_anything_v2(fp32)   |   **3.9**   |  800%   |\n\n## Usage\n\n### Download Project\n\n下载git项目\n```bash\ngit clone git@github.com:zz990099/depth_anything_cpp.git\ncd depth_anything_cpp\ngit submodule init \u0026\u0026 git submodule update\n```\n\n### Build Enviroment\n\n使用docker构建工作环境\n```bash\ncd depth_anything_cpp\nbash easy_deploy_tool/docker/build_docker.sh --platform=jetson_trt8_u2004 # or jetson_trt8_u2204, nvidia_gpu, rk3588\nbash easy_deploy_tool/docker/into_docker.sh\n```\n\n### Compile Codes\n\n在docker容器内，编译工程. 使用 `-DENABLE_*`宏来启用某种推理框架，可用的有: `-DENABLE_TENSORRT=ON`、`-DENABLE_RKNN=ON`、`-DENABLE_ORT=ON`，可以兼容。 \n```bash\ncd /workspace\nmdkir build \u0026\u0026 cd build\ncmake .. -DBUILD_TESTING=ON -DENABLE_TENSORRT=ON\nmake -j\n```\n\n### Convert Model\n\n从[link](https://drive.google.com/drive/folders/1Bq0OS5VF7xYcu3oBl_rsGzjJ7u2IfHt2?usp=drive_link)下载模型，放到`/workspace/models`文件夹下，在docker容器内，运行模型转换脚本：\n```bash\ncd /workspace\nbash tools/cvt_onnx2trt.sh\n```\n\n### Run Test Cases\n\n运行测试用例，具体测试用例请参考代码。\n```bash\ncd /workspace/build\n./bin/simple_tests --gtest_filter=*correctness\n# 限制GLOG输出\nGLOG_minloglevel=1 ./bin/simple_tests --gtest_filter=*speed\n```\n\n## References\n\n- [DepthAnythingV1](https://github.com/LiheYoung/Depth-Anything)\n- [DepthAnythingV2](https://github.com/DepthAnything/Depth-Anything-V2)\n- [EasyDeployTool](https://github.com/zz990099/EasyDeployTool)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzz990099%2Fdepth_anything_cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzz990099%2Fdepth_anything_cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzz990099%2Fdepth_anything_cpp/lists"}