Skip to content

Commit

Permalink
Merge pull request #235 from wbruna/lcm
Browse files Browse the repository at this point in the history
Force LCM scheduler for LCM safetensors models
  • Loading branch information
rupeshs authored Aug 18, 2024
2 parents 86f325f + 45beadd commit 9131f91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/pipelines/lcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def get_lcm_model_pipeline(
local_files_only=use_local_model,
use_safetensors=True,
)
if 'lcm' in model_id.lower():
dummy_pipeline.scheduler = LCMScheduler.from_config(dummy_pipeline.scheduler.config)

pipeline = AutoPipelineForText2Image.from_pipe(
dummy_pipeline,
**pipeline_args,
Expand Down

0 comments on commit 9131f91

Please sign in to comment.