Le-Xiaohuai-speech / DPCRN_DNS3

Implementation of paper "DPCRN: Dual-Path Convolution Recurrent Network for Single Channel Speech Enhancement"
186 stars 41 forks source link

在将h5模型转换成tflite时遇到问题 #31

Open YadongChen-1016 opened 2 years ago

YadongChen-1016 commented 2 years ago

Hi,

当我在尝试将训练好的模型(.h5文件)转换成tflite时,遇到了一些问题。以下是我使用的转换代码: model = dpcrn.build_DPCRN_model() model.load_weights(model_path) converter = tf.lite.TFLiteConverter.from_keras_model(model) tflite_model = converter.convert() open("h5_2_tflite.tflite", "wb").write(tflite_model)

但我遇到了下面的报错信息,请问你之前遇到过这个问题吗?或者你知道应该要怎么解决吗? AttributeError: 'Concatenate' object has no attribute '_saved_model_inputs_spec'