1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

[SD] Make sure scheduler is correct when converting (#1667)

This commit is contained in:
Patrick von Platen
2022-12-12 16:57:48 +01:00
committed by GitHub
parent d2dc4de303
commit 3ce6380d3a

View File

@@ -925,6 +925,8 @@ if __name__ == "__main__":
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)