onnx模型量化编译时报错“There exist duplicated names for OnnxVariable”

在使用hb_compile工具时出现报错:

INFO Start to optimize the onnx model.
ERROR *** ERROR-OCCUR-DURING hmct.api.build_model ***, error message: There exist duplicated names for OnnxVariable.
INFO End to optimize the onnx model.
INFO End to Horizon NN Model Convert.

原代码中防止重名的逻辑已经执行了。
请问如何解决?

用 Netron 打开 ONNX 模型可以清晰看到是否存在重复命名的 OnnxVariable

建议检查一下Onnx,确认没有存在重复的 OnnxVariable

请问你解决了吗,我也遇到了这个问题,但是没有找到重复的