yeyupiaoling / VoiceprintRecognition-PaddlePaddle

本项目使用了EcapaTdnn、ResNetSE、ERes2Net、CAM++等多种先进的声纹识别模型,同时本项目也支持了MelSpectrogram、Spectrogram、MFCC、Fbank等多种数据预处理方法
Apache License 2.0
229 stars 44 forks source link

转onnx报错 #6

Closed HandsLing closed 2 years ago

HandsLing commented 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
yeyupiaoling commented 2 years ago

这个模型还不支持冻结。

HandsLing commented 2 years ago

。。。。。。 后面会支持吗?

yeyupiaoling commented 2 years ago

不是所有动态图都能转成静态图的。

yeyupiaoling commented 2 years ago

如果你非要用静态图,可以版本1:https://github.com/yeyupiaoling/VoiceprintRecognition-PaddlePaddle/tree/V1.0

HandsLing commented 2 years ago

嗯 我之前跑过版本1的 但是我看了版本2更灵活、速度更快就想试试,