MoonRide303 / Fooocus-MRE

Focus on prompting and generating
GNU General Public License v3.0
941 stars 56 forks source link

How to copy the Restart sampler from webUI to Fooocus? #145

Open Dengyinsong opened 11 months ago

Dengyinsong commented 11 months ago

Restart is the best sampler by far, how or when we can use it in Fooocus?

barepixels commented 11 months ago

Had to look it up https://www.reddit.com/r/StableDiffusion/comments/14n6vt7/new_sampler_restart/

Here's a ComfyUI implementation someone made: https://github.com/ssitu/ComfyUI_restart_sampling

coppy/paste

In computer science and mathematics, solving complex problems often involves using equations to model how something behaves over time or space. In the realm of generative processes, which help create new data or samples, two kinds of equations are commonly used: Ordinary Differential Equations (ODE) and Stochastic Differential Equations (SDE).

ODE-based samplers are fast but have limitations on how good the results can be.

SDE-based samplers give better results but take longer to do it.

The difference in performance is attributed to how these methods handle errors. ODE has less error due to simplifying assumptions, whereas SDE reduces error through randomness.

To get the best of both worlds, a new method called "Restart" has been developed. This new method aims to be both fast and accurate. In tests, Restart has shown to be better than both ODE and SDE methods in terms of speed and quality of results. Specifically, it's much faster on datasets like CIFAR-10 and ImageNet, and it provides better quality samples.

Also, in text-to-image generation, Restart proves to be more balanced in maintaining both image quality and diversity compared to previous methods.

So, Restart offers a new, balanced way to generate high-quality data quickly, surpassing older methods in both speed and quality.

gilroff commented 11 months ago

I'm waiting too lol