-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.html
More file actions
277 lines (237 loc) · 13.9 KB
/
settings.html
File metadata and controls
277 lines (237 loc) · 13.9 KB
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
<div id="comfyinject_settings">
<div class="inline-drawer">
<div class="inline-drawer-toggle inline-drawer-header">
<b>ComfyInject</b>
<div class="inline-drawer-icon fa-solid fa-circle-chevron-down down"></div>
</div>
<div class="inline-drawer-content">
<!-- ComfyUI Host -->
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_host">ComfyUI Host</label>
<input id="comfyinject_host" type="text" class="text_pole" placeholder="http://127.0.0.1:8188" />
</div>
<!-- Checkpoint -->
<div>
<label for="comfyinject_checkpoint">Checkpoint</label>
<div style="position: relative; margin-top: 4px;">
<div class="flex-container flexGap5 alignItemsCenter">
<input id="comfyinject_checkpoint" type="text" class="text_pole" placeholder="your_model.safetensors" style="flex: 1;" />
<div id="comfyinject_checkpoint_arrow" class="menu_button" title="Show available checkpoints" style="padding: 2px 8px; cursor: pointer;">
<i class="fa-solid fa-caret-down"></i>
</div>
</div>
<div id="comfyinject_checkpoint_dropdown" style="display: none; position: absolute; z-index: 999; width: 100%; max-height: 200px; overflow-y: auto; background: var(--SmartThemeBlurTintColor); border: 1px solid var(--SmartThemeBorderColor); border-radius: 4px; margin-top: 2px;">
<!-- Populated by ui.js -->
</div>
</div>
</div>
<!-- Workflow -->
<div>
<label for="comfyinject_workflow">Workflow</label>
<small style="display: block; margin-bottom: 4px;">Filename of the workflow JSON in the workflows folder.</small>
<input id="comfyinject_workflow" type="text" class="text_pole" placeholder="comfyinject_default.json" />
</div>
<hr class="sysHR" />
<!-- Gallery Button -->
<div class="flex-container flexGap5">
<div id="comfyinject_gallery_btn" class="menu_button menu_button_icon">
<i class="fa-solid fa-images"></i>
<span>Image Gallery</span>
</div>
</div>
<hr class="sysHR" />
<!-- Advanced Settings Toggle Button -->
<div class="flex-container flexGap5">
<div id="comfyinject_advanced_toggle" class="menu_button menu_button_icon">
<i class="fa-solid fa-cog"></i>
<span>Advanced Settings</span>
</div>
</div>
<!-- Advanced Settings Block (hidden by default) -->
<div id="comfyinject_advanced_block" style="display:none;">
<hr class="sysHR" />
<!-- Prepend Prompt -->
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_prepend_prompt">Prepend Prompt</label>
<textarea id="comfyinject_prepend_prompt" class="text_pole" rows="2" placeholder="Tags to prepend before the LLM's prompt"></textarea>
</div>
<small>This will be the very first thing in the positive prompt, before shot tags and the LLM's output.</small>
<!-- Negative Prompt -->
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_negative_prompt">Negative Prompt</label>
<textarea id="comfyinject_negative_prompt" class="text_pole" rows="3"></textarea>
</div>
<!-- Append Prompt -->
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_append_prompt">Append Prompt</label>
<textarea id="comfyinject_append_prompt" class="text_pole" rows="2" placeholder="Tags to append after the LLM's prompt"></textarea>
</div>
<small>This will be the very last thing in the positive prompt, after the LLM's output.</small>
<!-- Sampler Settings -->
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_steps">Steps</label>
<input id="comfyinject_steps" type="number" class="text_pole" min="1" max="150" />
</div>
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_cfg">CFG</label>
<input id="comfyinject_cfg" type="number" class="text_pole" min="1" max="30" step="0.5" />
</div>
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_sampler">Sampler</label>
<input id="comfyinject_sampler" type="text" class="text_pole" />
</div>
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_scheduler">Scheduler</label>
<input id="comfyinject_scheduler" type="text" class="text_pole" />
</div>
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_denoise">Denoise</label>
<input id="comfyinject_denoise" type="number" class="text_pole" min="0" max="1" step="0.05" />
</div>
<hr class="sysHR" />
<!-- Resolutions Toggle -->
<div class="flex-container flexGap5">
<div id="comfyinject_resolutions_toggle" class="menu_button menu_button_icon">
<i class="fa-solid fa-expand"></i>
<span>Resolutions</span>
</div>
</div>
<div id="comfyinject_resolutions_block" style="display:none;">
<small>Width × Height in pixels for each AR token.</small>
<br />
<!-- Resolution Lock -->
<div class="flex-container flexGap5 alignItemsCenter" style="margin: 8px 0;">
<label class="checkbox_label" for="comfyinject_resolution_lock_enabled" title="Ignore the LLM's AR token and use one fixed resolution for all generations.">
<input id="comfyinject_resolution_lock_enabled" type="checkbox" />
<span>Lock Resolution</span>
</label>
</div>
<div id="comfyinject_resolution_lock_inputs" style="display:none; margin-bottom: 8px;">
<small>All generations will use this resolution regardless of AR token.</small>
<div class="flex-container flexGap5 alignItemsCenter" style="margin-top: 4px;">
<label style="width: 80px;">LOCKED</label>
<input
type="number"
id="comfyinject_resolution_lock_width"
class="text_pole"
min="64"
max="2048"
step="64"
style="width: 70px;"
/>
<span>×</span>
<input
type="number"
id="comfyinject_resolution_lock_height"
class="text_pole"
min="64"
max="2048"
step="64"
style="width: 70px;"
/>
</div>
</div>
<div id="comfyinject_resolutions">
<!-- Populated by ui.js -->
</div>
</div>
<hr class="sysHR" />
<!-- Shot Tags Toggle -->
<div class="flex-container flexGap5">
<div id="comfyinject_shot_tags_toggle" class="menu_button menu_button_icon">
<i class="fa-solid fa-camera"></i>
<span>Shot Tags</span>
</div>
</div>
<div id="comfyinject_shot_tags_block" style="display:none;">
<small>Danbooru tags prepended to the prompt for each SHOT token.</small>
<br />
<!-- Shot Lock -->
<div class="flex-container flexGap5 alignItemsCenter" style="margin: 8px 0;">
<label class="checkbox_label" for="comfyinject_shot_lock_enabled" title="Ignore the LLM's SHOT token and use one fixed shot type for all generations.">
<input id="comfyinject_shot_lock_enabled" type="checkbox" />
<span>Lock Shot</span>
</label>
</div>
<div id="comfyinject_shot_lock_inputs" style="display:none; margin-bottom: 8px;">
<small>All generations will use this shot type regardless of SHOT token.</small>
<div class="flex-container flexGap5 alignItemsCenter" style="margin-top: 4px;">
<label style="width: 80px;">LOCKED</label>
<select id="comfyinject_shot_lock_value" class="text_pole" style="width: 150px;">
<!-- Populated by ui.js -->
</select>
</div>
</div>
<div id="comfyinject_shot_tags">
<!-- Populated by ui.js -->
</div>
</div>
<hr class="sysHR" />
<!-- Seed Lock Toggle -->
<div class="flex-container flexGap5">
<div id="comfyinject_seed_lock_toggle" class="menu_button menu_button_icon">
<i class="fa-solid fa-dice"></i>
<span>Seed Control</span>
</div>
</div>
<div id="comfyinject_seed_lock_block" style="display:none;">
<small>Override the LLM's SEED token with a fixed seed mode.</small>
<br />
<!-- Seed Lock -->
<div class="flex-container flexGap5 alignItemsCenter" style="margin: 8px 0;">
<label class="checkbox_label" for="comfyinject_seed_lock_enabled" title="Ignore the LLM's SEED token and use a fixed seed mode for all generations.">
<input id="comfyinject_seed_lock_enabled" type="checkbox" />
<span>Lock Seed</span>
</label>
</div>
<div id="comfyinject_seed_lock_inputs" style="display:none; margin-bottom: 8px;">
<div class="flex-container flexGap5 alignItemsCenter" style="margin-top: 4px;">
<label style="width: 80px;">Mode</label>
<select id="comfyinject_seed_lock_mode" class="text_pole" style="width: 150px;">
<option value="RANDOM">RANDOM</option>
<option value="LOCK">LOCK</option>
<option value="CUSTOM">CUSTOM</option>
</select>
</div>
<div id="comfyinject_seed_lock_custom_input" class="flex-container flexGap5 alignItemsCenter" style="margin-top: 4px; display:none;">
<label style="width: 80px;">Seed</label>
<input
type="number"
id="comfyinject_seed_lock_value"
class="text_pole"
min="0"
max="9007199254740991"
step="1"
style="width: 150px;"
/>
</div>
</div>
</div>
<hr class="sysHR" />
<!-- Marker Repair Notifications -->
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_repair_toast_mode">Marker Repair Notifications</label>
<select id="comfyinject_repair_toast_mode" class="text_pole">
<option value="all">All repairs</option>
<option value="failures">Parse failures only</option>
<option value="off">Off</option>
</select>
</div>
<small>Controls toast notifications for repaired or invalid image markers.</small>
<hr class="sysHR" />
<!-- Max Poll Attempts -->
<div class="flex-container flexGap5 alignItemsCenter">
<label for="comfyinject_max_poll_attempts">Max Poll Attempts</label>
<input id="comfyinject_max_poll_attempts" type="number" class="text_pole" min="1" max="600" step="1" />
</div>
<small>How many times to poll ComfyUI (1 second apart) before giving up. Default: 180 (3 minutes).</small>
<hr class="sysHR" />
<!-- Reset Button -->
<div class="flex-container flexGap5">
<input id="comfyinject_reset" class="menu_button" type="submit" value="Reset Advanced to Defaults" />
</div>
</div>
<hr class="sysHR" />
</div>
</div>
</div>