I attempted to migrate name-based Keras 2.x
weights in .h5
format to Keras 3
by loading the .h5
weights into the model and subsequently saving them as either .weights.h5
or .keras
files using model.save()
.
The resulting weight files were successfully loaded and functioned correctly in Keras 2.15
.
However, upon transitioning to Keras 3
, these weights failed to load or operate as expected.
I am currently investigating this issue by analyzing the source code. If you have any useful suggestions, I would appreciate your input.
Comment From: dhantule
Hi @edwardyehuang, thanks for reporting this. Could you please refer this issue #20081 and let me know if it helps?