-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdnext-context.xml
337 lines (264 loc) · 11.3 KB
/
sdnext-context.xml
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<?xml version="1.0" encoding="utf-8"?><!-- Created by Aptronym on Discord, only intended for SDNext use -->
<root>
<shell>
<menu name="SDNext">
<menu name="SDNext VENV Console">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && venv\\scripts\\activate.bat" />
</actions>
</menu>
<menu name="Start SD.Next (Custom w/args)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Alt Startups">
<menu name="Quick">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --quick %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Plain">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat" />
</actions>
</menu>
<menu name="Upgrade">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --upgrade %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Backend">
<menu name="Original">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --backend original %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Diffusers">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --backend diffusers %SDNEXT_ARGS%" />
</actions>
</menu>
</menu>
<menu name="Devices">
<menu name="DirectML">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --use-directml %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="CUDA">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --use-cuda %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="CPU Only">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --use-cpu all" />
</actions>
</menu>
</menu>
<menu name="Sharing">
<menu name="Share (Secure)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --share %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Share (Insecure)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --share --insecure %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="LAN Share (Secure)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --listen %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="LAN Share (Insecure)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --listen --insecure %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="API Only Mode">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --api-only %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="API Only Mode (Docs+Log)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --docs --api-only --api-log %SDNEXT_ARGS%" />
</actions>
</menu>
</menu>
</menu>
<menu name="Information">
<menu name="Repo">
<actions>
<open path="https://github.com/vladmandic/automatic" />
</actions>
</menu>
<menu name="Wiki">
<menu name="Installation">
<actions>
<open path="https://github.com/vladmandic/automatic/wiki/Installation" />
</actions>
</menu>
<menu name="Advanced Installation">
<actions>
<open path="https://github.com/vladmandic/automatic/wiki/Advanced-Installation" />
</actions>
</menu>
<menu name="SD-XL Setup/Use">
<actions>
<open path="https://github.com/vladmandic/automatic/wiki/SD-XL" />
</actions>
</menu>
<menu name="Troubleshooting">
<actions>
<open path="https://github.com/vladmandic/automatic/wiki/Troubleshooting" />
</actions>
</menu>
</menu>
<menu name="Issues">
<actions>
<open path="https://github.com/vladmandic/automatic/issues" />
</actions>
</menu>
<menu name="Discord">
<actions>
<open path="https://discord.gg/VjvR2tabEX" />
</actions>
</menu>
</menu>
<menu name="Troubleshooting">
<menu name="Copy Log to Clipboard">
<actions>
<exec path="cmd.exe" arguments="/C type "%SDNEXT%\\sdnext.log" | clip" />
</actions>
</menu>
<menu name="Test Run (No Start)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --test --debug %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Troubleshooting Startup">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --debug --experimental --ignore --safe %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Reset SD.Next (Internal)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --reset --debug %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Reinstall SD.Next (Internal)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && webui.bat --reinstall --debug %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Reinstall Requirements (PIP)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && venv\\scripts\\activate.bat && pip install -r requirements.txt" />
</actions>
</menu>
<menu name="Reinstall Requirements (PIP - Forced)">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && venv\\scripts\\activate.bat && pip install --force-reinstall -r requirements.txt" />
</actions>
</menu>
<menu name="VENV Wipe+Reinstall">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && python -m venv --clear venv && venv\\scripts\\activate.bat && pip install -r requirements.txt" />
</actions>
</menu>
</menu>
<menu name="Utility">
<menu name="Backup Configs">
<actions>
<exec path="cmd.exe" arguments="/k pushd "%SDNEXT%" && copy /y /v ui-config.json ui-config.json.backup && copy /y /v config.json config.json.backup" />
</actions>
</menu>
<menu name="Restore Configs">
<actions>
<exec path="cmd.exe" arguments="/C pushd "%SDNEXT%" && copy /y /v ui-config.json.backup ui-config.json && copy /y /v config.json.bakup config.json" />
</actions>
</menu>
<menu name="Clean Configs (Rename)">
<actions>
<exec path="cmd.exe" arguments="/C pushd "%SDNEXT%" && ren ui-config.json ui-config.json.backup && ren config.json config.json.backup" />
</actions>
</menu>
<menu name="Clean Configs (Delete)">
<actions>
<exec path="cmd.exe" arguments="/C pushd "%SDNEXT%" && del /Q ui-config.json && del /Q config.json" />
</actions>
</menu>
<menu name="Branches">
<menu name="Switch to Master">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && git checkout -q master" />
</actions>
</menu>
<menu name="Switch to Dev">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && git checkout -q dev" />
</actions>
</menu>
</menu>
</menu>
<menu name="Save && Restore">
<menu name="Save (Don't Use)">
<menu name="Save 1">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && git checkout -q -B SAVE1" />
</actions>
</menu>
<menu name="Save 2">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && git checkout -q -B SAVE2" />
</actions>
</menu>
</menu>
<menu name="Restore (Don't Use)">
<menu name="Restore Previous">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && git reset -q --hard HEAD^" />
</actions>
</menu>
<menu name="Restore 1">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && git -q checkout SAVE1" />
</actions>
</menu>
<menu name="Restore 2">
<actions>
<exec path="cmd.exe" arguments="/K pushd "%SDNEXT%" && git -q checkout SAVE2" />
</actions>
</menu>
</menu>
</menu>
<menu name="Install">
<menu name="Clone SDNext Here">
<actions>
<exec path="cmd.exe" arguments="/K pushd ${selection.dir} && git clone https://github.com/vladmandic/automatic ." />
</actions>
</menu>
<menu name="Install & Run Here">
<actions>
<exec path="cmd.exe" arguments="/K pushd ${selection.dir} && git clone https://github.com/vladmandic/automatic . && webui.bat %SDNEXT_ARGS%" />
</actions>
</menu>
<menu name="Set SDNext Home Dir">
<actions>
<exec path="cmd.exe" arguments="/C setx SDNEXT ${selection.dir}" />
</actions>
</menu>
<menu name="Set SDNext Startup Defaults">
<actions>
<prompt name="sdstartup-set" title="Enter desired startup options:" />
<exec path="cmd.exe" arguments="/K setx SDNEXT_ARGS ${sdstartup-set}" />
</actions>
</menu>
</menu>
</menu>
</shell>
</root>