lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.65k stars 858 forks source link

Optimization for high-resolution generation #2236

Open alfonslm opened 4 weeks ago

alfonslm commented 4 weeks ago

TLDR: high res generation can be optimised about 20% to 40%

I made some napkin math and wrote this post about it High-res fix optimization and would guess that the basic implementation without solving for the optimal n in the optimization algorithm should be easy enough to implement since the foundation for this is the high-res fix with more steps.

Solving for the optimal n shouldn't be impossible either since it's already known how to plot the best estimate and some one have already done a time estimator from what I remember that should be good enough to get the constants needed to calculate the best n value.