Skip to content

Commit

Permalink
[SD] Make sure scheduler is correct when converting (open-mmlab#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten authored Dec 12, 2022
1 parent d2dc4de commit 3ce6380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/convert_original_stable_diffusion_to_diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ def convert_open_clip_checkpoint(checkpoint):
set_alpha_to_one=False,
prediction_type=prediction_type,
)
# make sure scheduler works correctly with DDIM
scheduler.register_to_config(clip_sample=False)

if args.scheduler_type == "pndm":
config = dict(scheduler.config)
Expand Down

0 comments on commit 3ce6380

Please sign in to comment.