Skip to content

Differences in Model Weight Behavior Between Keras 2.15 and Keras 3 #21676

@edwardyehuang

Description

@edwardyehuang

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions