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 set the prediction type for stable diffusion #49

Merged
merged 5 commits into from
Jul 17, 2023

Conversation

coryMosaicML
Copy link
Collaborator

This PR adds the option to set different prediction types following the hugging face naming convention ('epsilon' for noise prediction 'sample' for sample prediction, and 'v_prediction' for velocity prediction). It was something of an oversight that these were not already included.

Test run with v-prediction

diffusion/models/stable_diffusion.py Outdated Show resolved Hide resolved
@coryMosaicML coryMosaicML merged commit 7fb5792 into mosaicml:main Jul 17, 2023
7 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