-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.html
239 lines (239 loc) · 12 KB
/
settings.html
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<div id="st-sd-webui-api-settings">
<div class="inline-drawer">
<div class="inline-drawer-toggle inline-drawer-header">
<b>Stable Diffusion WebUI API Settings</b>
<div class="inline-drawer-icon fa-solid fa-circle-chevron-down down"></div>
</div>
<div class="inline-drawer-content">
<details class="st-sd-webui-api-details" name="st-sd-webui-api-details">
<summary class="subtitle1">Connection Settings
<span class="fa-solid fa-triangle-exclamation opacity50p color_red fa-sm"
title="Run stable diffusion webui api with the flags '--api --cors-allow-origins *'. Since this extension do all the calls from the client side,it will be required to allow all origins.">
</span>
</summary>
<div class="content">
<label for="st-sd-webui-api-url">
<span>Stable diffusion webui url <span class="fa-solid fa-circle-info opacity50p"
title="Stable diffusion webui url without slash at the end.">
</span></span>
<div class="flex-container flexnowrap">
<input type="text" id="st-sd-webui-api-url" class="text_pole" placeholder="http://127.0.0.1:7860" />
</div>
</label>
</div>
</details>
<details class="st-sd-webui-api-details" name="st-sd-webui-api-details">
<summary class="subtitle1">Generation Settings</summary>
<div class="content">
<label for="st-sd-webui-api-model">
<span>Stable diffusion Model <span class="fa-solid fa-circle-info opacity50p"
title="Stable diffusion webui checkpoint model. Refresh to view available models or model changes from another device. Scan to ask the server to scan for new models.">
</span></span>
<div class="flex-container flexnowrap" style="align-items: center;">
<select id="st-sd-webui-api-model" style="margin-top: 5px;">
</select>
<button type="button" id="st-sd-webui-api-model-refresh" class="menu_button menu_button_icon">
<i class="fa-solid fa-rotate"></i>
<span data-i18n="Refresh">
Refresh
</span>
</button>
<button type="button" id="st-sd-webui-api-model-scan" class="menu_button menu_button_icon">
<i class="fa-solid fa-server"></i>
<i class="fa-solid fa-rotate"></i>
<span data-i18n="Scan">
Scan
</span>
</button>
</div>
</label>
<div class="flex-container flexnowrap">
<label for="st-sd-webui-api-sampler" class="full-width">
<span>Sampler</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<select id="st-sd-webui-api-sampler" style="margin-top: 5px;">
</select>
</div>
</label>
<label for="st-sd-webui-api-scheduler" class="full-width">
<span>Scheduler</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<select id="st-sd-webui-api-scheduler" style="margin-top: 5px;">
</select>
</div>
</label>
</div>
<label for="st-sd-webui-api-cfg-scale-value">
<span>CFG scale</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<input type="range" id="st-sd-webui-api-cfg-scale" min="1" max="30" step="0.5" />
<input type="number" id="st-sd-webui-api-cfg-scale-value" class="text_pole number-after-range" min="1"
max="30" step="0.5" />
</div>
</label>
<label for="st-sd-webui-api-seed" class="full-width">
<span>Seed</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<input type="number" id="st-sd-webui-api-seed" class="text_pole" min="-1" max="9007199254740991"
step="1" />
</div>
</label>
<label for="st-sd-webui-api-sampling-steps">
<span>Sampling steps</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<input type="range" id="st-sd-webui-api-sampling-steps" min="1" max="100" step="1" />
<input type="number" id="st-sd-webui-api-sampling-steps-value" class="text_pole number-after-range"
min="1" max="150" step="1" />
</div>
</label>
<label for="st-sd-webui-api-width">
<span>Width</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<input type="range" id="st-sd-webui-api-width" min="64" max="2048" step="64" />
<input type="number" id="st-sd-webui-api-width-value" class="text_pole number-after-range" min="64"
max="2048" step="64" />
</div>
</label>
<label for="st-sd-webui-api-height">
<span>Height</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<input type="range" id="st-sd-webui-api-height" min="64" max="2048" step="64" />
<input type="number" id="st-sd-webui-api-height-value" class="text_pole number-after-range" min="64"
max="2048" step="64" />
</div>
</label>
<div class="checkbox-container">
<label class="checkbox_label" for="st-sd-webui-api-restore-faces">
<input type="checkbox" id="st-sd-webui-api-restore-faces" />
Restore Faces
</label>
<label class="checkbox_label" for="st-sd-webui-api-enable-hr">
<input type="checkbox" id="st-sd-webui-api-enable-hr" />
Highres Fix
</label>
</div>
<div id="st-sd-webui-api-hr-settings">
<div class="subtitle2">
Highres Fix Settings
</div>
<label for="st-sd-webui-api-hr-upscaler">
<span>Upscaler</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<select id="st-sd-webui-api-hr-upscaler" style="margin-top: 5px;">
</select>
</div>
</label>
<label for="st-sd-webui-api-hr-sampler">
<span>Sampler<span class="fa-solid fa-circle-info opacity50p"
title="If you want to use a different sampler than the one used for the generation, you can select it here."></span></span>
<div class="flex-container flexnowrap" style="align-items: center;">
<select id="st-sd-webui-api-hr-sampler" style="margin-top: 5px;">
</select>
</div>
</label>
<label for="st-sd-webui-api-hr-scale-value">
<span>Scale</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<input type="range" id="st-sd-webui-api-hr-scale" min="1" max="4" step="0.05" />
<input type="number" id="st-sd-webui-api-hr-scale-value" class="text_pole number-after-range" min="1"
max="4" step="0.05" />
</div>
</label>
<label for="st-sd-webui-api-hr-denoising-strength-value">
<span>Denoising Strength</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<input type="range" id="st-sd-webui-api-hr-denoising-strength" min="0" max="1" step="0.01" />
<input type="number" id="st-sd-webui-api-hr-denoising-strength-value"
class="text_pole number-after-range" min="0" max="1" step="0.01" />
</div>
</label>
<label for="st-sd-webui-api-hr-steps">
<span>Steps<span class="fa-solid fa-circle-info opacity50p"
title="Number of sampling steps for upscaled image, if 0, it will use the same number of steps as the generation."></span></span>
<div class="flex-container flexnowrap" style="align-items: center;">
<input type="range" id="st-sd-webui-api-hr-steps" min="0" max="150" step="1" />
<input type="number" id="st-sd-webui-api-hr-steps-value" class="text_pole number-after-range" min="0"
max="150" step="1" />
</div>
</label>
</div>
<div class="subtitle2">
Styles
</div>
<label for="st-sd-webui-api-style-to-add">
<span>Style to add</span>
<div class="flex-container flexnowrap" style="align-items: center;">
<select id="st-sd-webui-api-style-to-add" style="margin-top: 5px;">
</select>
<button type="button" id="st-sd-webui-api-add-style" class="menu_button menu_button_icon">
<i class="fa-solid fa-plus"></i>
<span data-i18n="Add">
Add
</span>
</button>
<button type="button" id="st-sd-webui-api-refresh-styles" class="menu_button menu_button_icon">
<i class="fa-solid fa-rotate"></i>
<span data-i18n="Refresh">
Refresh
</span>
</button>
</div>
</label>
<div id="st-sd-webui-api-selected-style-data">
</div>
<div id="st-sd-webui-api-styles-container"></div>
<label for="st-sd-webui-api-alwayson-scripts">
<span>Alwayson Scripts<span class="fa-solid fa-circle-info opacity50p"
title="Json object with data to include in alwayson_scripts"></span></span>
<Textarea id="st-sd-webui-api-alwayson-scripts" class="text_pole" rows="5"></Textarea>
</label>
</div>
</details>
<details class="st-sd-webui-api-details" name="st-sd-webui-api-details">
<summary class="subtitle1">Extension Settings
<span class="fa-solid fa-circle-info opacity50p fa-sm"
title="Any changes to the settings will be applied after refreshing the page.">
</span>
</summary>
<div class="content">
<label for="st-sd-webui-api-command">
<span>Stable diffusion webui command <span class="fa-solid fa-circle-info opacity50p"
title="The slash command to use in Silly Tavern">
</span>
<div class="flex-container flexnowrap">
<input type="text" id="st-sd-webui-api-command" class="text_pole" />
</div>
</label>
<label for="st-sd-webui-api-command-alias">
<span>Stable diffusion webui alias <span class="fa-solid fa-circle-info opacity50p"
title="List of aliases separated by comma.">
</span>
<div class="flex-container flexnowrap">
<input type="text" id="st-sd-webui-api-command-alias" class="text_pole" />
</div>
</label>
<div class="checkbox-container">
<label class="checkbox_label" for="st-sd-webui-api-interrupt-generation">
<input type="checkbox" id="st-sd-webui-api-interrupt-generation" />
Interrupt Generation
</label>
<label class="checkbox_label" for="st-sd-webui-api-purge-command">
<input type="checkbox" id="st-sd-webui-api-purge-command" />
Purge Command
</label>
</div>
<div class="flex-container flexwrap">
<small>
Restart Settings will restart the extension and apply any changes made to the settings.
</small>
<button type="button" id="st-sd-webui-api-restart-settings" class="menu_button menu_button_icon">
<i class="fa-solid fa-rotate"></i>
<span data-i18n="Restart Settings">
Restart Settings
</span>
</button>
</div>
</div>
</details>
</div>
</div>