| { |
| "name": "LRStereo-B", |
| "id": "i9urm5td6k00", |
| "description": "LRStereo-B是一个轻量且鲁棒的双目立体匹配模型。它在开源模型(Raft-Stereo)的基础上做了大量的模型结构改进和重训。具体功能为输入标定好的左右目图像以及相关的相机参数,获得左目图像对应的深度图。", |
| "category": "计算机视觉", |
| "framework": [ |
| "PyTorch" |
| ], |
| "supportOs": [ |
| "OpenHarmony", |
| "Linux" |
| ], |
| "computingPower": [ |
| "Hi3403V100 SVP_NNN" |
| ], |
| "tags": [ |
| "双目深度" |
| ], |
| "repositoryUrl": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/depth/LRStereo-B", |
| "licenseUrl": "https://github.com/princeton-vl/RAFT-Stereo/blob/main/LICENSE", |
| "downloads": [ |
| { |
| "fileName": "LRStereo-B.zip", |
| "variants": [ |
| "源模型 / 源模型下载", |
| "源模型 / 源模型元数据" |
| ] |
| }, |
| { |
| "fileName": "SVP_NNN_PC_V1.0.6.0.tgz", |
| "variants": [ |
| "附加资源 / 附加资源" |
| ] |
| } |
| ], |
| "apiDetail": { |
| "createdBy": 137441035408492, |
| "creationDate": "2025-12-26 20:41:00", |
| "creationUserCN": "0e900d99dee8461b8", |
| "lastUpdatedBy": null, |
| "lastUpdateDate": "2025-12-30 20:02:17", |
| "lastUpdateUserCN": "0e900d99dee8461b8", |
| "rowIdx": -1, |
| "id": "i9urm5td6k00", |
| "name": "LRStereo-B", |
| "isBeta": 0, |
| "betaVersionDesc": "", |
| "description": "LRStereo-B是一个轻量且鲁棒的双目立体匹配模型。它在开源模型(Raft-Stereo)的基础上做了大量的模型结构改进和重训。具体功能为输入标定好的左右目图像以及相关的相机参数,获得左目图像对应的深度图。", |
| "parentId": "i9urm5td6k00", |
| "coverImageId": 1719806466260993, |
| "coverImageUrl": "https://openxinhuo-board-image.obs.cn-east-3.myhuaweicloud.com/1719806466260993%2Fdepth.jpg", |
| "modelEffectId": null, |
| "modelEffectUrl": "", |
| "computerVersion": [ |
| "双目深度" |
| ], |
| "naturalLanguageProcess": [], |
| "multimodal": [], |
| "video": [], |
| "framework": [ |
| "PyTorch" |
| ], |
| "modelRepository": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/depth/LRStereo-B", |
| "originModel": [ |
| { |
| "id": "1719921677500418", |
| "name": "LRStereo-B.zip", |
| "url": null, |
| "size": "9764477" |
| } |
| ], |
| "originModelLink": null, |
| "dataSet": "https://www.cvlibs.net/datasets/kitti/eval_scene_flow.php?benchmark=stereo", |
| "modelLicense": "https://github.com/princeton-vl/RAFT-Stereo/blob/main/LICENSE", |
| "detailParams": [ |
| { |
| "name": "输入", |
| "value": "384x1248" |
| }, |
| { |
| "name": "参数量", |
| "value": "2.99M" |
| }, |
| { |
| "name": "计算量", |
| "value": "28.64GFLOPs" |
| } |
| ], |
| "quickStart": { |
| "url": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/depth/LRStereo-B", |
| "markDownUrl": "", |
| "developLanguage": [ |
| { |
| "language": "C++", |
| "context": "{\"ops\":[{\"attributes\":{\"line-height\":\"19px\",\"size\":\"14px\",\"background\":\"#ffffff\",\"color\":\"#000000\"},\"insert\":\"模型可以通过以下代码完成快速推理\"},{\"insert\":\"\\n#include \\\"model.h\\\"\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"#include \\\"log.h\\\"\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\\n\"},{\"insert\":\"using namespace Infer;\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\\n\"},{\"insert\":\"int main()\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"{\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" EnvInit();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::string omModelPath = \\\"/path/to/model.om\\\"; // 模型文件路径 \"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::string imagePath = \\\"/path/to/image.jpg\\\"; // 输入图片路径\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::string omModelDisPath = \\\"/path/to/model.om\\\"; // 视差转距离模型文件路径 \"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" bool type = std::stoi(cfg[\\\"type\\\"]) == 1; // 是否使用视差转距离模型\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::unique_ptr<Model> modelStereo = std::make_unique<Model>();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" modelStereo->Load(omModelPath, LRStereo)\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::unique_ptr<Model> modelDis = std::make_unique<Model>();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" if (type && modelDis->Load(dis_path, LRStereoDis) != 0) {\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" LOG(ERROR) << \\\"fail to load Dis model\\\";\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" return 0;\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" }\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::vector<std::vector<std::string>> fileLists = ParseFileList(imagePath);\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::vector<std::vector<Tensor>> ret;\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::vector<Tensor> result;\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" for (size_t i = 0; i < fileLists.size(); ++i) {\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::string inputString = BuildInputString(fileLists[i]);\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" ret = modelStereo->Infer(inputString, FileType::SingelImageFile);\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" if (type) {\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" result = modelDis->Infer(ret[0], inputString);\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" }\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" }\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" ret.clear();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" ret.shrink_to_fit();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" modelStereo->Unload()\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" if (type) {\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" result.clear();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" result.shrink_to_fit();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" modelDis->Unload() != 0\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" }\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" EnvDeinit();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" return 0;\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"}\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"attributes\":{\"line-height\":\"19px\",\"size\":\"14px\",\"background\":\"#ffffff\",\"color\":\"#000000\"},\"insert\":\"备注:上述C++代码依赖的动态库与头文件位于[\"},{\"attributes\":{\"line-height\":\"19px\",\"size\":\"14px\",\"background\":\"#ffffff\",\"color\":\"#a31515\",\"link\":\"https://gitee.com/HiSpark/modelzoo/tree/master/samples/common\"},\"insert\":\"/samples/common\"},{\"attributes\":{\"line-height\":\"19px\",\"size\":\"14px\",\"background\":\"#ffffff\",\"color\":\"#000000\"},\"insert\":\"]目录下,编译相关配置参考[\"},{\"attributes\":{\"line-height\":\"19px\",\"size\":\"14px\",\"background\":\"#ffffff\",\"color\":\"#a31515\",\"link\":\"https://gitee.com/HiSpark/modelzoo/blob/master/samples/built-in/depth/LiteAndRobustStereo/src/CMakeLists.txt\"},\"insert\":\"CMakeLists.txt\"},{\"attributes\":{\"line-height\":\"19px\",\"size\":\"14px\",\"background\":\"#ffffff\",\"color\":\"#000000\"},\"insert\":\"]\"},{\"insert\":\"\\n\"}]}" |
| } |
| ] |
| }, |
| "status": "released", |
| "currentHandler": "", |
| "currentHandlerName": "", |
| "jsonPath": "", |
| "modelAdaptor": [ |
| { |
| "createdBy": null, |
| "creationDate": null, |
| "creationUserCN": null, |
| "lastUpdatedBy": null, |
| "lastUpdateDate": null, |
| "lastUpdateUserCN": null, |
| "rowIdx": -1, |
| "id": "i8ttm5k1tc00", |
| "name": "Hi3403V100 SVP_NNN", |
| "modelId": "i9urm5td6k00", |
| "modelName": "LRStereo-B", |
| "supportNames": [ |
| "a8w8" |
| ], |
| "toolkit": [ |
| { |
| "name": "CANN工具", |
| "url": "https://hispark-obs.obs.cn-east-3.myhuaweicloud.com/SVP_NNN_PC_V1.0.6.0.tgz", |
| "desc": "Al异构计算架构;提升计算效率的关键平台", |
| "imgId": "cann" |
| }, |
| { |
| "name": "编译工具链", |
| "url": "https://gitee.com/HiSpark/pegasus/blob/Beta-v0.9.1/docs/Hi3403V100%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E6%8C%87%E5%8D%97/Hi3403V100%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E6%8C%87%E5%8D%97.md#241%E5%AE%89%E8%A3%85clang%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E5%99%A8", |
| "desc": "高效编译,精准适配;AI性能优化,应用流畅运行", |
| "imgId": "tool" |
| }, |
| { |
| "name": "SDK", |
| "url": "https://gitee.com/HiSpark/ss928v100_clang/tree/Beta-v0.9.1/", |
| "desc": "稳定、易用的设计;支撑客户快速产品量产", |
| "imgId": "sdk" |
| } |
| ], |
| "supportOs": [ |
| "OpenHarmony", |
| "Linux" |
| ], |
| "supportQuantify": [ |
| { |
| "createdBy": 132241120926760, |
| "creationDate": "2026-03-26 19:56:53", |
| "creationUserCN": "liaoshibin", |
| "lastUpdatedBy": 132241120926760, |
| "lastUpdateDate": "2026-03-26 19:56:53", |
| "lastUpdateUserCN": "liaoshibin", |
| "rowIdx": -1, |
| "id": "j6tgls7gtk00", |
| "name": "a8w8", |
| "computingId": "i8ttm5k1tc00", |
| "computingName": "Hi3403V100 SVP_NNN", |
| "omOfflineModelUrl": null, |
| "omOfflineModelId": 1719807317704707, |
| "omOfflineModelSize": "6604184", |
| "omOfflineModelName": "LRStereo-B_480x640_release.om", |
| "omOfflineModel": [ |
| { |
| "id": "1719807317704707", |
| "name": "LRStereo-B_480x640_release.om", |
| "url": null, |
| "size": "6604184" |
| } |
| ], |
| "omOfflineModelLink": null, |
| "releaseTime": "2025-12-26", |
| "boardOs": null, |
| "modelLicense": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/depth/LRStereo-B/LICENSE", |
| "modelPerformance": [ |
| { |
| "performanceValue": "43.46", |
| "unit": "耗时(ms)", |
| "desc": null |
| }, |
| { |
| "performanceValue": "23.01", |
| "unit": "性能(fps)", |
| "desc": "" |
| }, |
| { |
| "performanceValue": "226.649", |
| "unit": "单帧内存带宽(MB)", |
| "desc": "" |
| }, |
| { |
| "performanceValue": "29.395", |
| "unit": "内存(MB)", |
| "desc": "" |
| } |
| ], |
| "deleted": 0 |
| } |
| ], |
| "deleted": 0 |
| } |
| ], |
| "saveType": null, |
| "deleteType": null, |
| "latest": "Y", |
| "deleted": 0, |
| "modelPhase": "released", |
| "remark": null, |
| "fileInfo": null, |
| "reviewType": null, |
| "owner": "0e900d99dee8461b8", |
| "ownerBy": 137441035408492, |
| "optional": null, |
| "optionalList": [ |
| "whalenowings" |
| ], |
| "optionalBy": null, |
| "downloadNum": 74, |
| "collectNum": null, |
| "isCollect": null |
| } |
| } |
|
|