forked from rbbrdckybk/dream-factory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-default.txt
135 lines (109 loc) · 7.04 KB
/
config-default.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
###############################################################################
### Dream Factory default configuration file
###############################################################################
# Path to installed Automatic1111 stable diffusion repo (e.g.: C:\Applications\stable-diffusion-webui).
# You must populate this with a working SD installation for Dream Factory to operate!
SD_LOCATION =
# Specify which GPU(s) to use here; auto will attempt to use all detected devices
# to specify individual GPUs, use a comma-separated list of device IDs.
# e.g. USE_GPU_DEVICES = 0, 1, 2
USE_GPU_DEVICES = auto
# Starting port that SD instances will use; additional GPUs will each increment this
# by one when deciding which port to operate on - e.g. if you leave this at 7861 and
# have 3 GPUs, then ports 7861, 7862, and 7863 will be used by SD instances.
# These are not accessible outside of the local machine Dream Factory operates on and
# there is generally no reason to change this.
SD_PORT = 7861
# If you have multiple GPUs, this is how many are allowed to initialize at once.
# Initialization only happens once at startup, but it very memory-intensive (system RAM,
# not VRAM). Each GPU will use nearly 10GB of system RAM during initialization, so
# allowing them all to init simultaneously may cause issues depending on system resources.
GPU_INIT_STAGGER = 1
# Directory containing your prompt files.
# Locations are relative to Dream Factory's installation directory unless specified.
PROMPTS_LOCATION = prompts
# Directory containing your wildcard files.
WILDCARD_LOCATION = prompts\wildcards
# Directory where output images will be created.
OUTPUT_LOCATION = output
# Use civitai.com integration in the editor (yes/no)?
# If yes, will attempt to grab some basic info about your models, loras, embeddings, etc from civitai.com
# and display it in the integrated editor reference.
CIVITAI_INTEGRATION = yes
# Use the webserver (yes/no)? This is required to use the browser interface.
WEBSERVER_USE = yes
# Port the webserver listens on.
# Note that ports under 1024 require root permission on Linux.
WEBSERVER_PORT = 8080
# Set this to yes if you want to be able to access the webserver UI from other computers.
# At the default "no" setting the web UI is inaccessible anywhere except at the local computer running the server!
WEBSERVER_NETWORK_ACCESSIBLE = no
# Enable webserver authentication?
# This is the most basic form of HTTP authentication and should not be considered secure!
# However if you're going to make this accessible via WAN/internet it's better than nothing.
WEBSERVER_USE_AUTHENTICATION = no
# Webserver login credentials; make sure to change these if you're using authentication!
WEBSERVER_AUTH_USERNAME = admin
WEBSERVER_AUTH_PASSWORD = password
# Automatically attempt to open the server interface in your browser (yes/no)?
# This has caused some confusion, but it literally does just that - it'll pop open Chrome
# or whatever your default browser is, with Dream Factory loaded. Doesn't work all on OSes.
WEBSERVER_OPEN_BROWSER = yes
# Log webserver messages to the console (yes/no)? For debugging, leave it disabled unless you like spam.
WEBSERVER_CONSOLE_LOG = no
# Gallery maximum images to display.
GALLERY_MAX_IMAGES = 200
# Gallery refresh interval in seconds; set to zero to disable auto-refresh of gallery.
GALLERY_REFRESH = 30
# Optional folder to display in the gallery (and alias to refer to it)
GALLERY_USER_FOLDER =
GALLERY_USER_FOLDER_ALIAS = favorites
# The editor won't attempt to apply context-sensitive color styling to prompt files over this character limit.
# Values above 200000 will significantly increase loading time for prompt files that exceed that character threshold.
# If you're working with massive .prompt files, it's best to edit them using an external editor.
EDITOR_MAX_STYLING_CHARS = 80000
# Set the jpg quality of output image files here (1-100).
# Higher values result in overall better image quality at the cost of larger file sizes.
JPG_QUALITY = 88
# Set the maximum output image size that your GPU is capable of producing, in total pixels
# It's best to input a value about 10% less than your max txt2img images
# for example, if you can generate a 1280x1280 image, then input 1470000
# (1280 x 1280 = 1,638,400 pixels, minus 10% is roughly 1,470,000)
# You may need some trial and error here, keep lowering until you don't get errors
# This is used when calculating the final size for automatic SD upscales
# If you set this to a number that's too high, you'll get errors!
# Suggested values to try: 12GB VRAM: 4200000 8GB VRAM: 2600000
MAX_OUTPUT_SIZE =
# You can set your own defaults for prompt file settings below.
# Settings specified in individual prompt files will always override these.
PF_WIDTH = 512 # output image width, default is 512
PF_HEIGHT = 512 # output image height, default is 512
PF_HIGHRES_FIX = no # helps a lot when generating images significantly larger than 512x512 at the cost of speed
PF_SAMPLER = DPM++ 2M Karras # sampler to use (create a new prompt file using the web UI to see a full list of options)
PF_STEPS = 20 # number of steps, default = 50
PF_SCALE = 7.5 # guidance scale, default = 7.5
PF_SAMPLES = 1 # number of images to generate per prompt
PF_USE_UPSCALE = no # upscale output images?
PF_UPSCALE_MODEL = ESRGAN_4x # default upscaler to use
PF_UPSCALE_AMOUNT = 2.0 # upscaling factor (2 means you'll get an image with double the width and height of the original)
PF_UPSCALE_CODEFORMER_AMOUNT = 0.0 # visibility of codeformer face enhancement (0 = off, 1 = full effect)
PF_UPSCALE_GFPGAN_AMOUNT = 0.0 # visibility of gfpgan face enhancement (0 = off, 1 = full effect)
PF_UPSCALE_SD_STRENGTH = 0.3 # denoising strength when using SD upscale
PF_UPSCALE_KEEP_ORG = no # keep the original non-upscaled image (yes/no)?
PF_NEG_PROMPT = # if you have a 'catch all' negative prompt you typically use, enter it here
PF_FILENAME = # set a default custom filename: https://github.com/rbbrdckybk/dream-factory#filename
# Set a default .ckpt file here so that whenever you set !CKPT_FILE to nothing (e.g. '!CKPT_FILE = '), this default
# will be loaded. If you don't set anything here, !CKPT_FILE= will just use whatever happens to be loaded in Auto1111.
PF_CKPT_FILE =
# automatically insert the trigger word when using custom models?
# off = disable this
# start = at the start of the prompt (the default)
# end = at the end of the prompt
# first_comma = after the first comma (or end if prompt contains no commas)
# you must edit the model-triggers.txt file (auto-generated after first run) for these to work
PF_AUTO_INSERT_MODEL_TRIGGER = start
# Set the number of prompts to queue at once when using prompt files set to random mode.
# The only real reason you'd want to change this is if you're specifying multiple models (with !CKPT_FILE = model1, model2, etc).
# In random mode the models will rotate every time a batch of prompts is queued, so you can effectively control how often
# your models will switch by setting this.
RANDOM_QUEUE_SIZE = 50