shadow-cann's picture
Add files using upload-large-folder tool
a0796b2 verified
{
"name": "Siamese Network",
"id": "i9kei1td6k00",
"description": "Siamese Network(孪生神经网络)是一种通过共享权重的两个相同子网络来度量两个输入样本相似性的深度学习框架,广泛应用于人脸识别、签名验证等任务。",
"category": "计算机视觉",
"framework": [
"PyTorch"
],
"supportOs": [
"OpenHarmony",
"Linux"
],
"computingPower": [
"Hi3403V100 SVP_NNN",
"Hi3403V100 NNN"
],
"tags": [
"人脸识别"
],
"repositoryUrl": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/recognition/SiameseNetwork/doc/快速开始.md/",
"licenseUrl": "https://github.com/harveyslash/Facial-Similarity-with-Siamese-Networks-in-Pytorch/blob/master/LICENSE",
"downloads": [
{
"fileName": "siamese_model_weights.pt",
"variants": [
"源模型 / 源模型下载",
"源模型 / 源模型元数据"
]
},
{
"fileName": "SVP_NNN_PC_V1.0.6.0.tgz",
"variants": [
"附加资源 / 附加资源"
]
}
],
"apiDetail": {
"createdBy": 139036723332644,
"creationDate": "2025-12-25 20:25:32",
"creationUserCN": "y-0089",
"lastUpdatedBy": null,
"lastUpdateDate": null,
"lastUpdateUserCN": "y-0089",
"rowIdx": -1,
"id": "i9kei1td6k00",
"name": "Siamese Network",
"isBeta": 1,
"betaVersionDesc": "Hi3403V100 SVP_NNN 和 NNN 引擎上模型性能待进一步优化",
"description": "Siamese Network(孪生神经网络)是一种通过共享权重的两个相同子网络来度量两个输入样本相似性的深度学习框架,广泛应用于人脸识别、签名验证等任务。",
"parentId": "i9kei1td6k00",
"coverImageId": 1719623508623362,
"coverImageUrl": "https://openxinhuo-board-image.obs.cn-east-3.myhuaweicloud.com/1719623508623362%2FSiameseNetwork.png",
"modelEffectId": null,
"modelEffectUrl": "",
"computerVersion": [
"人脸识别"
],
"naturalLanguageProcess": [],
"multimodal": [],
"video": [],
"framework": [
"PyTorch"
],
"modelRepository": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/recognition/SiameseNetwork/doc/快速开始.md/",
"originModel": [
{
"id": "1719623605092353",
"name": "siamese_model_weights.pt",
"url": null,
"size": "161026210"
}
],
"originModelLink": null,
"dataSet": "https://cam-orl.co.uk/facedatabase.html",
"modelLicense": "https://github.com/harveyslash/Facial-Similarity-with-Siamese-Networks-in-Pytorch/blob/master/LICENSE",
"detailParams": [
{
"name": "输入",
"value": "100x100"
},
{
"name": "参数量",
"value": "40254.505M"
},
{
"name": "计算量",
"value": "0.223GFLOPs"
}
],
"quickStart": {
"url": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/recognition/SiameseNetwork",
"markDownUrl": null,
"developLanguage": [
{
"language": "C++",
"context": "{\"ops\":[{\"attributes\":{\"background\":\"#ffffff\",\"size\":\"16px\",\"color\":\"#40485b\",\"line-height\":\"1.6\"},\"insert\":\"模型可以通过以下代码完成快速推理\"},{\"attributes\":{\"text-indent\":\"0px\"},\"insert\":\"\\n\"},{\"insert\":\"#include \\\"model.h\\\"\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"#include \\\"log.h\\\"\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\\n\"},{\"insert\":\"using namespace Infer;\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\\n\"},{\"insert\":\"int main()\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"{\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" EnvInit();\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::string omModelPath = \\\"/path/to/model.om\\\"; // SiameseNetwork模型文件路径 \"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::string imagePath = \\\"/path/to/image.jpg\\\"; // 输入图片路径\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" std::unique_ptr<Model> model = std::make_unique<Model>();\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" if (model->Load(omModelPath, ModelType::SiameseNetwork) != 0) {\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" LOG(ERROR) << \\\"fail to load model\\\";\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" return -1;\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" }\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" auto ret = model->Infer(imagePath, FileType::SingelImageFile);\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" if (ret.size() == 0) {\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" LOG(ERROR) << \\\"fail to infer model\\\";\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" model->Unload();\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" return -1;\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" }\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" if (model->Unload() != 0) {\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" LOG(ERROR) << \\\"fail to unload model\\\";\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" return -1;\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" }\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" EnvDeinit();\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\" return 0;\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"}\"},{\"attributes\":{\"text-indent\":\"0px\",\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"attributes\":{\"background\":\"#ffffff\",\"size\":\"16px\",\"color\":\"#40485b\",\"line-height\":\"1.6\"},\"insert\":\"备注:头文件和动态库位于\"},{\"attributes\":{\"background\":\"transparent\",\"size\":\"16px\",\"color\":\"#095eab\",\"line-height\":\"1.6\",\"link\":\"https://gitee.com/HiSpark/modelzoo/tree/master/samples/common\"},\"insert\":\"/samples/common\"},{\"attributes\":{\"background\":\"#ffffff\",\"size\":\"16px\",\"color\":\"#40485b\",\"line-height\":\"1.6\"},\"insert\":\"目录下,编译配置参考\"},{\"attributes\":{\"background\":\"transparent\",\"size\":\"16px\",\"color\":\"#095eab\",\"line-height\":\"1.6\",\"link\":\"https://gitee.com/HiSpark/modelzoo/blob/master/samples/built-in/recognition/SiameseNetwork/src/CMakeLists.txt\"},\"insert\":\"文件\"},{\"attributes\":{\"text-indent\":\"0px\"},\"insert\":\"\\n\"},{\"insert\":\"\\n\"}]}"
}
]
},
"status": "released",
"currentHandler": "",
"currentHandlerName": "",
"jsonPath": "https://gitee.com/HiSpark/modelzoo-dev/blob/master/samples/built-in/classification/DenseNet121/DenseNet121.json",
"modelAdaptor": [
{
"createdBy": null,
"creationDate": null,
"creationUserCN": null,
"lastUpdatedBy": null,
"lastUpdateDate": null,
"lastUpdateUserCN": null,
"rowIdx": -1,
"id": "i8ttm5k1tc00",
"name": "Hi3403V100 SVP_NNN",
"modelId": "i9kei1td6k00",
"modelName": "Siamese Network",
"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",
"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 20:13:48",
"creationUserCN": "liaoshibin",
"lastUpdatedBy": 132241120926760,
"lastUpdateDate": "2026-03-26 20:13:48",
"lastUpdateUserCN": "liaoshibin",
"rowIdx": -1,
"id": "j6tkhouci000",
"name": "a8w8",
"computingId": "i8ttm5k1tc00",
"computingName": "Hi3403V100 SVP_NNN",
"omOfflineModelUrl": null,
"omOfflineModelId": 1719624756428803,
"omOfflineModelSize": "80619355",
"omOfflineModelName": "siamese_network.om",
"omOfflineModel": [
{
"id": "1719624756428803",
"name": "siamese_network.om",
"url": null,
"size": "80619355"
}
],
"omOfflineModelLink": null,
"releaseTime": "2025-12-25",
"boardOs": null,
"modelLicense": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/recognition/SiameseNetwork/LICENSE",
"modelPerformance": [
{
"performanceValue": "4.6",
"unit": "耗时(ms)",
"desc": null
},
{
"performanceValue": "217.44",
"unit": "性能(fps)",
"desc": ""
},
{
"performanceValue": "77.754",
"unit": "单帧内存带宽(MB)",
"desc": ""
},
{
"performanceValue": "98.895",
"unit": "内存(MB)",
"desc": ""
}
],
"deleted": 0
}
],
"deleted": 0
},
{
"createdBy": null,
"creationDate": null,
"creationUserCN": null,
"lastUpdatedBy": null,
"lastUpdateDate": null,
"lastUpdateUserCN": null,
"rowIdx": -1,
"id": "i8ttm5k1tc01",
"name": "Hi3403V100 NNN",
"modelId": "i9kei1td6k00",
"modelName": "Siamese Network",
"supportNames": [
"fp16"
],
"toolkit": [
{
"name": "CANN工具包",
"url": "",
"desc": "5.30.t11.7.b110; (请联系FAE获取)",
"imgId": "cann"
},
{
"name": "编译工具链",
"url": "",
"desc": "aarch64-mix210-linux-gcc;(请联系FAE获取)",
"imgId": "tool"
},
{
"name": "SDK",
"url": "",
"desc": "SS928 V100R001C02SPC022; (请联系FAE获取)",
"imgId": "sdk"
}
],
"supportOs": [
"Linux"
],
"supportQuantify": [
{
"createdBy": 132241120926760,
"creationDate": "2026-03-26 20:13:48",
"creationUserCN": "liaoshibin",
"lastUpdatedBy": 132241120926760,
"lastUpdateDate": "2026-03-26 20:13:48",
"lastUpdateUserCN": "liaoshibin",
"rowIdx": -1,
"id": "j6tkhp00i000",
"name": "fp16",
"computingId": "i8ttm5k1tc01",
"computingName": "Hi3403V100 NNN",
"omOfflineModelUrl": null,
"omOfflineModelId": 1719625089875969,
"omOfflineModelSize": "82718819",
"omOfflineModelName": "siamese_network.om",
"omOfflineModel": [
{
"id": "1719625089875969",
"name": "siamese_network.om",
"url": null,
"size": "82718819"
}
],
"omOfflineModelLink": null,
"releaseTime": "2025-12-25",
"boardOs": null,
"modelLicense": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/recognition/SiameseNetwork/LICENSE",
"modelPerformance": [
{
"performanceValue": "28.81",
"unit": "耗时(ms)",
"desc": ""
},
{
"performanceValue": "34.71",
"unit": "性能(fps)",
"desc": ""
},
{
"performanceValue": "377.84",
"unit": "带宽(MB)",
"desc": ""
},
{
"performanceValue": "197.715",
"unit": "内存(MB)",
"desc": ""
}
],
"deleted": 0
}
],
"deleted": 0
}
],
"saveType": null,
"deleteType": null,
"latest": "N",
"deleted": 0,
"modelPhase": "released",
"remark": null,
"fileInfo": null,
"reviewType": null,
"owner": "y-0089",
"ownerBy": 139036723332644,
"optional": null,
"optionalList": [
"0e900d99dee8461b8"
],
"optionalBy": null,
"downloadNum": 21,
"collectNum": null,
"isCollect": null
}
}