Skip to content

refactor: reuse save_model method#1443

Open
xiuyuan18 wants to merge 1 commit into
modelscope:mainfrom
xiuyuan18:refactor/reuse-modelLogger-save
Open

refactor: reuse save_model method#1443
xiuyuan18 wants to merge 1 commit into
modelscope:mainfrom
xiuyuan18:refactor/reuse-modelLogger-save

Conversation

@xiuyuan18
Copy link
Copy Markdown

replace the duplicated implementaion of model saving in ModelLogger.on_epoch_end with already existing ModelLogger.save_model method. The refactoring will improve the maintainability of the code.

remove the duplicated implementaion of model saving in
ModelLogger.on_epoch_end with already extract save_model
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the on_epoch_end method in diffsynth/diffusion/logger.py by replacing manual checkpoint saving logic with a call to a save_model helper method. This change improves code maintainability by reducing duplication. There are no review comments to address, and I have no further feedback to provide.

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.

1 participant