Closed HandsLing closed 2 years ago
老哥,你试过你新改的这个代码转onnx吗?好像不成功 File "/data1/sda/lingck/VoiceRecogntion/VoiceprintRecognition-PaddlePaddle/modules/ecapa_tdnn.py", line 186, in forward y_i = self.blocksi - 1 else: y_i = self.blocks[i - 1](x_i + y_i)
y.append(y_i) y = paddle.concat(y, axis=1) UnboundLocalError: local variable 'y_i' referenced before assignment
这个模型还不支持冻结。
。。。。。。 后面会支持吗?
不是所有动态图都能转成静态图的。
如果你非要用静态图,可以版本1:https://github.com/yeyupiaoling/VoiceprintRecognition-PaddlePaddle/tree/V1.0
嗯 我之前跑过版本1的 但是我看了版本2更灵活、速度更快就想试试,
老哥,你试过你新改的这个代码转onnx吗?好像不成功 File "/data1/sda/lingck/VoiceRecogntion/VoiceprintRecognition-PaddlePaddle/modules/ecapa_tdnn.py", line 186, in forward y_i = self.blocksi - 1 else: y_i = self.blocks[i - 1](x_i + y_i)