Skip to content

Conversation

mattdangerw
Copy link
Member

A tool to update all json files for a preset (by running them through Keras' serialize and deserialize routines).

A tool to update all preset version in the library to the latest version on kaggle.

@mattdangerw mattdangerw force-pushed the new-checkpoint-tools branch 2 times, most recently from 2ace8c8 to 6641928 Compare December 19, 2024 23:00
Copy link
Member

@SamanehSaadat SamanehSaadat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Matt!

if file.name == "config.json":
print(" ", "metadata.json")
saver._save_metadata(layer)
name = "metadata.json"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this branch for metadata.json or config.json? if says config.json but print and name are metadata.json 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: probably using these consts make the maintenance of this code easier if it's not a one-time-use code: https://github.com/keras-team/keras-hub/blob/master/keras_hub/src/utils/preset_utils.py#L48-L55

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll clarify in the comments, we handle the config.json and metadata.json in the same iter of this for loop, just because it's how our saving utils work (they are saved together).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the file constants!

@mattdangerw mattdangerw force-pushed the new-checkpoint-tools branch 2 times, most recently from 4f0b7d2 to 39e5e14 Compare December 20, 2024 04:21
A tool to update all json files for a preset (by running them through
Keras' serialize and deserialize routines).

A tool to update all preset version in the library to the latest version
on kaggle.
@mattdangerw mattdangerw merged commit 78df6f5 into keras-team:master Dec 23, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants