sd-scripts
sd-scripts copied to clipboard
lr_schedulers currently do not take in num_cycles or power parameters
Current version of diffusers.optimization.get_scheduler used does not expose power parameter (for polynomial) or num_cycles (for cosine_with_restarts).
This means, for example:
- the current implementation of
cosine, andcosine_with_restartsproduce the same scheduler as thenum_cyclesdefaults to1. - the current implementation of
polynomialonly produces a linear scheduler as thepowerdefaults to1.
This is fixed in a future implementation of diffusers: https://github.com/huggingface/diffusers/commit/d87cc15977b87160c30abaace3894e802ad9e1e6#diff-8702f762e46a3b5363085930b0b045de554909d32560864031ca7b12ddd349d5
Posting this as an issue for awareness and also as something to look into in the future if the repo is tested and updated for a later version of diffusers which includes this patch from the above diffusers commit.
+1