Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to shift noise schedules when changing resolution #153

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

coryMosaicML
Copy link
Collaborator

This PR adds an option to set scheduler_shift_resolution to SD2 and SDXL models to account for differing train resolutions using the technique from https://arxiv.org/abs/2301.11093

Copy link
Contributor

@jazcollins jazcollins left a comment

Choose a reason for hiding this comment

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

I had one qq about why we choose base_dim=32 as default. I also wish we could infer the shift resolution from some other place (instead of having to set it explicitly, bc I can imagine forgetting to set that in an eval run and using the wrong resolution or something) but I don't see how that is possible, so this makes sense! Overall looks good to me!

diffusion/models/models.py Show resolved Hide resolved
@coryMosaicML coryMosaicML merged commit 0b79104 into mosaicml:main Jul 8, 2024
5 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.

3 participants