Closed majkee15 closed 4 years ago
When you save/load as h5, you need to provide a custom objects mapping to include layers that are not part of the default keras lib. We provide a helper that includes all custom objects used in our canned models. See details here.
keras.models.load_model('h.h5', custom_objects=tfl.premade.get_custom_objects())
Hi,
I have constructed a simple sequential model via TFL and although saving via model.save('file_name.h5') works fine, it is impossible to load with keras.models.load_model('h.h5') yielding "ValueError: Unknown layer: ParallelCombination".
example: