Gourieff / sd-webui-reactor

Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD.Next, Cagliostro)
GNU Affero General Public License v3.0
2.17k stars 235 forks source link

preload analisys model #405

Closed light-and-ray closed 1 month ago

light-and-ray commented 1 month ago

I have a problem: on first launch loading model is very slow (about 40 sec) (both CPU and CUDA). Idk maybe only I have this problem, do I?

I found this issue with the same problem: https://github.com/cubiq/ComfyUI_IPAdapter_plus/issues/198 They recommends to upgrade protobuff. But it's not possible because sd-webui requires an old version

If it's a general problem (I saw you tried to add something called "ReActor preheating"), this can solve this problem. But if only I have this problem, it's sad :( (I can add an option to enable this preloading)

light-and-ray commented 1 month ago

Converted to draft because it stops stable diffusion model loading on startup :/ Threads inside webui are so strange

Gourieff commented 1 month ago

These analysis models are very lightweight and load in a second There's no real need to preload them on startup I think you have some issues in your SD WebUI build if you encounter such behavior