你好,AdderQuant的预训练模型,里边的结构和代码里的结构对应不上,https://download-mindspore.osinfra.cn/model_zoo/research/cv/AdderQuant/这里好像给的是原始addernet的预训练模型,而AdderQuant里边的层都改了名字了,能否发一下正确的预训练模型?
另外,adder_quant.py第37行运行报错, 发生异常: IndexError index 5 is out of bounds for dimension with size 5 File "~/work/AdderQuant/adder_quant.py", line 37, in original_order z[:, int(indices[i]), :, :] = ordered[:, i, :, :]
print(indices) [ 4 5 8 11 14 1 2 9 10 15 3 0 6 7 12 13]
print(ordered.shape) (128, 5, 32, 32) 超范围了
Ascend
/GPU
/CPU
) / 硬件环境:Please delete the backend not involved / 请删除不涉及的后端:
/device GPU
Software Environment / 软件环境 (Mandatory / 必填):
-- MindSpore version : 2.2.14
-- Python version : 3.9
-- OS platform and distribution : Ubuntu 22.04
-- GCC/Compiler version : 11.4.0
Execute Mode / 执行模式 (Mandatory / 必填)(PyNative
/Graph
):
/mode pynative
https://gitee.com/mindspore/models/tree/master/research/cv/AdderQuant
python eval.py
应该能正常运行才对,实际上报错
[在这里上传图片]
Please assign maintainer to check this issue.
请为此issue分配处理人。
@fangwenyi @chengxiaoli @Shawny
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
感谢您的提问,您可以评论//mindspore-assistant更快获取帮助:
您好,由于问题单没有回复,我们后续会关闭,如您仍有疑问,可以反馈下具体信息,并将ISSUE状态修改为WIP,我们这边会进一步跟踪,谢谢
登录 后才可以发表评论