Skip to content

Conversation

chaObserv
Copy link
Contributor

@chaObserv chaObserv commented Aug 18, 2024

Add stochastic sampler, SA-Solver. SA-Solver could be considered as a stochastic version UniPC with same order. When set eta = 0 constantly, its result is similar to UniPC (bh1).

The default tau function is adapted from official's repos and uses sigma percent to define interval.

Example (with --fp8_e5m2-unet):
sa_example

@chaObserv chaObserv marked this pull request as draft August 23, 2024 08:20
@chaObserv
Copy link
Contributor Author

I would convert this to a simplified version.

@chaObserv
Copy link
Contributor Author

Extract sample functions and simplified the process, which makes it fit into k_diffusion. Instead of passing percent to sample function, SamplerSASolver node requires a model now to compute interval of tau function.

Landscape example:
sa_grid_00001_

Anime-style example:
sd_grid_02_00001_

@chaObserv chaObserv marked this pull request as ready for review August 23, 2024 14:46
@mcmonkey4eva mcmonkey4eva added User Support A user needs help with something, probably not a bug. and removed User Support A user needs help with something, probably not a bug. labels Sep 12, 2024
@chaObserv chaObserv force-pushed the sa_solver branch 2 times, most recently from 1bbb13b to 587c93e Compare September 22, 2024 10:30
Copy link

@wibur0620 wibur0620 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@chaObserv chaObserv requested a review from webfiltered as a code owner March 16, 2025 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants