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

Force LCM scheduler for LCM safetensors models #235

Merged
merged 2 commits into from
Aug 18, 2024
Merged

Conversation

wbruna
Copy link
Contributor

@wbruna wbruna commented Aug 17, 2024

The safetensors file does not specify a scheduler, so the diffusers library picks one according to the base model (DDIM for SD 1.5).

As in lcm-lora, we check for 'lcm' in the file name, since most safetensors files follow that convention.

The DDIM scheduler adds a grainy texture on images generated with LCM checkpoints, but depending on the checkpoint it may not be immediately noticeable. Testing with dreamshaper_8LCM.safetensors:

image

And with the LCM scheduler:

image

The safetensors file does not specify a scheduler, so the diffusers library
picks one according to the base model (DDIM for SD 1.5).

As in lcm-lora, we check for 'lcm' in the file name, since most safetensors
files follow that convention.
@rupeshs
Copy link
Owner

rupeshs commented Aug 18, 2024

@wbruna Thanks you

@rupeshs rupeshs merged commit 9131f91 into rupeshs:main Aug 18, 2024
@wbruna wbruna deleted the lcm branch August 25, 2024 12:48
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