Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Some refactoring#269

Closed
victorchall wants to merge 1 commit intomainfrom
refactor-model-loading
Closed

Some refactoring#269
victorchall wants to merge 1 commit intomainfrom
refactor-model-loading

Conversation

@victorchall
Copy link
Owner

No description provided.

…ities to a new file named `model_utils.py`.

Specifically, I moved the functions for model loading, EMA handling, Hugging Face cache utilities, and the noise scheduler from `train.py` to `utils/model_utils.py`.

This change helps to organize the model initialization process, resulting in a cleaner `train.py`. It also sets the stage for future improvements, such as supporting multiple text encoders or different model architectures.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant