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:
committed by
GitHub
parent
d2dc4de303
commit
3ce6380d3a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user