Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YadongChen-1016 opened this issue Oct 20, 2022 · 0 comments
Open

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

YadongChen-1016 opened this issue Oct 20, 2022 · 0 comments

Comments

@YadongChen-1016
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant