mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-15 15:22:55 +03:00
5853f3e1a1
# Adds the bridge code which when enabled turns the webui into a headless [Stable Horde](https://stablehorde.net) instance It adds a few new command-line args to be able to pass variables to the bridge, as well as the possibility to set it via a variables files `bridgeData.py`. To start the bridge, one needs to add the `--bridge` argument to their relauncher.py as well as any horde vars they want to specify. On top of that this adds the loguru module as well as my tuned loguru config. This provides a much nicer logging output and provides the capability to save output to files for issue reports etc. For now only the bridge is utilizing the nice format, but once it's merged, you can start replacing `print()` with `logger.xxx()` where appropriate To make the bridge work, I've had to add defaults to txt2img but this should not affect anything. # Checklist: - [ x ] I have changed the base branch to `dev` - [ x ] I have performed a self-review of my own code - [ x ] I have commented my code in hard-to-understand areas - [ x ] I have made corresponding changes to the documentation Co-authored-by: hlky <106811348+hlky@users.noreply.github.com> Co-authored-by: Thomas Mello <work.mello@gmail.com> Co-authored-by: Joshua Kimsey <jkimsey95@gmail.com> Co-authored-by: ZeroCool <ZeroCool940711@users.noreply.github.com>
17 lines
897 B
Python
17 lines
897 B
Python
# The horde url
|
|
horde_url = "https://stablehorde.net"
|
|
# Give a cool name to your instance
|
|
horde_name = "My Awesome Instance"
|
|
# The api_key identifies a unique user in the horde
|
|
# Visit https://stablehorde.net/register to create one before you can join
|
|
horde_api_key = "0000000000"
|
|
# Put other users whose prompts you want to prioritize.
|
|
# The owner's username is always included so you don't need to add it here, unless you want it to have lower priority than another user
|
|
horde_priority_usernames = []
|
|
# The amount of power your system can handle
|
|
# 8 means 512*512. Each increase increases the possible resoluion by 64 pixes
|
|
# So if you put this to 2 (the minimum, your SD can only generate 64x64 pixels
|
|
# If you put this to 32, it is equivalent to 1024x1024 pixels
|
|
horde_max_power = 8
|
|
# Set this to false, if you do not want your worker to receive requests for NSFW generations
|
|
horde_nsfw = True |