philipperemy/keras-tcn

the model save but dosnt load - ValueError: Unknown layer: TCN

atila-gh opened this issue ยท 4 comments

thanks , it is very fast and has very good Performance

Unfortunately - i can save Model but cant load it again , always i encounter with below error!!!!!
ValueError: Unknown layer: TCN

please Help
for example : your sample code
001

@nas2000co can you follow the example in

and tell me?

I guess you need to give custom_objects={'TCN': TCN} when you load the model. Otherwise the layer will be unknown.

Thanks So much thats worked very well !!!!!!!!!!!!!!!!!!!!

new_model= tf.keras.models.load_model('model.h5' , custom_objects={'TCN': TCN})

Great!!!! I'll close this issue. Happy I could help :)