sdwebui-w-horde / sd-webui-stable-horde-worker

Stable Horde Unofficial Worker Bridge as Stable Diffusion WebUI (AUTOMATIC1111) Extension
GNU Affero General Public License v3.0
60 stars 19 forks source link

feat: add option to disable settings restore - performance boost #82

Closed prodigy closed 1 year ago

prodigy commented 1 year ago

Description

Adds an option to disable restoring settings after each render. This massively increases the performance by not loading two models for each render request. By also enabling model caching, the speed for rendering different models is dramatically increased.

This obviously is a worker only mode where no users actively use the web ui. As my machine otherwise more or less idles during my workday, I disabled the worker when I wanted to render images myself. With this feature I can simply increase the time between jobs and enable the restore option.

This fits into #17

Type of changes

Please check the following items before submitting your pull request

MaikoTan commented 1 year ago

I didn't see there is an option called restore_settings in sd-webui side, can you explain why this work?

Also, please resolve the conflict.

prodigy commented 1 year ago

The merge conflict is resolved, also I fixed the option name so that it now uses the proper one. That was a replace error by me as black insisted on putting the code on one line and flake8 didn't want the line to be that long. So I couldn't use the name as the original option is named and had to shorten the config name.