登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
57
Star
569
Fork
1.4K
Ascend
/
ModelZoo-PyTorch
代码
Issues
498
Pull Requests
197
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
Atlas300IPro环境下使用ATC将pnet的模型转成om报错
TODO
#IBVT64
缺陷
seeshem
创建于
2025-03-24 15:20
FaceNet仓库的MTCNN模型转换报错。 路径为:ACL_PyTorch/contrib/cv/face/FaceNet/,已经安装readme.md安装CANN8.0.RC2以及pytorch2.1.0和pytorch2.1.0-post6,但是还是报错,具体报错信息如下: 一、问题现象(附报错日志上下文): 在使用atc命令做模型转换的时候报错,报错信息如下: 使用动态shape: ```shell root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,1~1500,1~1500]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:14:07.029.043 Value [[1~32,3,1~1500,1~1500]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. ``` 使用固定shape: ```shell atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[32,3,128,128]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10014: 2025-03-24-15:11:03.877.515 Value [[32] for parameter [--input_shape] is invalid. Solution: Run the "atc -h" command to view the usage. For details, see ATC Instructions. TraceBack (most recent call last): ParseInputShape failed for image:[32,3,128,128][FUNC:InitDomiOmgContext][FILE:omg.cc][LINE:575] ``` 二、软件版本: -- CANN 版本 (e.g., CANN 3.0.x,5.x.x): 8.0.RC2/ --Tensorflow/Pytorch/MindSpore 版本: facenet-pytorch 2.1.0 mindietorch 1.0rc2+torch2.1.0.abi0 torch 2.1.0+cpu torch-npu 2.1.0.post6.dev20240716 torchvision 0.14.1 --Python 版本 (e.g., Python 3.7.5): Python 3.10.2 -- MindStudio版本 (e.g., MindStudio 2.0.0 (beta3)):未使用 --操作系统版本 (e.g., Ubuntu 18.04):Ubuntu 22.04 LTS 三、测试步骤: 1、安装CANN8.0.RC2、24.1.rc2驱动及配套固件; 2、安装pytorch、pytorch-npu及其相关的依赖包; 3、下来ModelZoo-Pytorch代码仓,并且根据ACL_PyTorch/contrib/cv/face/FaceNet/README.md操作指导安装相关的依赖; 4、使用atc转换模型报错。 四、日志信息: 请根据自己的运行环境参考以下方式搜集日志信息,如果涉及到算子开发相关的问题,建议也提供UT/ST测试和单算子集成测试相关的日志。 ```shell root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,1~1500,1~1500]' --log=debug --soc_version=Ascend310P3 --log=error ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:09:33.820.226 Value [[1~32,3,1~1500,1~1500]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,1~1500,1~1500]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:09:49.079.020 Value [[1~32,3,1~1500,1~1500]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,128,1280]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:10:32.590.254 Value [[1~32,3,128,1280]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[32,3,128,1280]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10014: 2025-03-24-15:10:43.751.912 Value [[32] for parameter [--input_shape] is invalid. Solution: Run the "atc -h" command to view the usage. For details, see ATC Instructions. TraceBack (most recent call last): ParseInputShape failed for image:[32,3,128,1280][FUNC:InitDomiOmgContext][FILE:omg.cc][LINE:575] root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[32,3,128,128]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10014: 2025-03-24-15:11:03.877.515 Value [[32] for parameter [--input_shape] is invalid. Solution: Run the "atc -h" command to view the usage. For details, see ATC Instructions. TraceBack (most recent call last): ParseInputShape failed for image:[32,3,128,128][FUNC:InitDomiOmgContext][FILE:omg.cc][LINE:575] root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,1~1500,1~1500]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:14:07.029.043 Value [[1~32,3,1~1500,1~1500]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. ``` 日志提供方式: 将日志打包后作为附件上传。若日志大小超出附件限制,则可上传至外部网盘后提供链接。 获取方法请参考wiki: https://gitee.com/ascend/modelzoo/wikis/%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E6%97%A5%E5%BF%97%E5%92%8C%E8%AE%A1%E7%AE%97%E5%9B%BE?sort_id=4097825
FaceNet仓库的MTCNN模型转换报错。 路径为:ACL_PyTorch/contrib/cv/face/FaceNet/,已经安装readme.md安装CANN8.0.RC2以及pytorch2.1.0和pytorch2.1.0-post6,但是还是报错,具体报错信息如下: 一、问题现象(附报错日志上下文): 在使用atc命令做模型转换的时候报错,报错信息如下: 使用动态shape: ```shell root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,1~1500,1~1500]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:14:07.029.043 Value [[1~32,3,1~1500,1~1500]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. ``` 使用固定shape: ```shell atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[32,3,128,128]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10014: 2025-03-24-15:11:03.877.515 Value [[32] for parameter [--input_shape] is invalid. Solution: Run the "atc -h" command to view the usage. For details, see ATC Instructions. TraceBack (most recent call last): ParseInputShape failed for image:[32,3,128,128][FUNC:InitDomiOmgContext][FILE:omg.cc][LINE:575] ``` 二、软件版本: -- CANN 版本 (e.g., CANN 3.0.x,5.x.x): 8.0.RC2/ --Tensorflow/Pytorch/MindSpore 版本: facenet-pytorch 2.1.0 mindietorch 1.0rc2+torch2.1.0.abi0 torch 2.1.0+cpu torch-npu 2.1.0.post6.dev20240716 torchvision 0.14.1 --Python 版本 (e.g., Python 3.7.5): Python 3.10.2 -- MindStudio版本 (e.g., MindStudio 2.0.0 (beta3)):未使用 --操作系统版本 (e.g., Ubuntu 18.04):Ubuntu 22.04 LTS 三、测试步骤: 1、安装CANN8.0.RC2、24.1.rc2驱动及配套固件; 2、安装pytorch、pytorch-npu及其相关的依赖包; 3、下来ModelZoo-Pytorch代码仓,并且根据ACL_PyTorch/contrib/cv/face/FaceNet/README.md操作指导安装相关的依赖; 4、使用atc转换模型报错。 四、日志信息: 请根据自己的运行环境参考以下方式搜集日志信息,如果涉及到算子开发相关的问题,建议也提供UT/ST测试和单算子集成测试相关的日志。 ```shell root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,1~1500,1~1500]' --log=debug --soc_version=Ascend310P3 --log=error ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:09:33.820.226 Value [[1~32,3,1~1500,1~1500]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,1~1500,1~1500]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:09:49.079.020 Value [[1~32,3,1~1500,1~1500]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,128,1280]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:10:32.590.254 Value [[1~32,3,128,1280]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[32,3,128,1280]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10014: 2025-03-24-15:10:43.751.912 Value [[32] for parameter [--input_shape] is invalid. Solution: Run the "atc -h" command to view the usage. For details, see ATC Instructions. TraceBack (most recent call last): ParseInputShape failed for image:[32,3,128,1280][FUNC:InitDomiOmgContext][FILE:omg.cc][LINE:575] root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[32,3,128,128]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10014: 2025-03-24-15:11:03.877.515 Value [[32] for parameter [--input_shape] is invalid. Solution: Run the "atc -h" command to view the usage. For details, see ATC Instructions. TraceBack (most recent call last): ParseInputShape failed for image:[32,3,128,128][FUNC:InitDomiOmgContext][FILE:omg.cc][LINE:575] root@localhost:/work/deepseek/embed_rerank/ModelZoo-PyTorch/ACL_PyTorch/contrib/cv/face/FaceNet# atc --framework=5 --model=./weights/PNet_truncated_fix.onnx --output=./weights/PNet_dynamic --input_format=NCHW --input_shape='image:[1~32,3,1~1500,1~1500]' --log=debug --soc_version=Ascend310P3 --log=debug ATC start working now, please wait for a moment. ... ATC run failed, Please check the detail log, Try 'atc --help' for more information E10002: 2025-03-24-15:14:07.029.043 Value [[1~32,3,1~1500,1~1500]] for parameter [--input_shape] is invalid. Reason: after split shape by ":", the shape must contains two parts: name and value. The value must be formatted as ["input_name1:n1~n2,c1,h1,w1"]. Solution: The valid format is [input_name1:n1,c1,h1,w1;input_name2:n2,c2,h2,w2]. Replace [input_name#] with node names. Ensure that the shape values are integers. ``` 日志提供方式: 将日志打包后作为附件上传。若日志大小超出附件限制,则可上传至外部网盘后提供链接。 获取方法请参考wiki: https://gitee.com/ascend/modelzoo/wikis/%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E6%97%A5%E5%BF%97%E5%92%8C%E8%AE%A1%E7%AE%97%E5%9B%BE?sort_id=4097825
评论 (
0
)
登录
后才可以发表评论
状态
TODO
TODO
WIP
DONE
CLOSED
REJECTED
负责人
未设置
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
未关联
master
ci-pipeline
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
Python
1
https://gitee.com/ascend/ModelZoo-PyTorch.git
git@gitee.com:ascend/ModelZoo-PyTorch.git
ascend
ModelZoo-PyTorch
ModelZoo-PyTorch
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册