getting better
This commit is contained in:
parent
5b3782e82a
commit
7b1cd4f267
3 changed files with 17 additions and 6 deletions
17
index.html
17
index.html
|
@ -218,13 +218,22 @@
|
|||
<div id="controlNetModule-ac-select" class="controlnetElement"></div>
|
||||
<label id="cnModelLabel" class="controlnetElement">Model</label>
|
||||
<div id="controlNetModel-ac-select" class="controlnetElement"></div>
|
||||
<label id="cnModelLabel" class="controlnetElement">
|
||||
<label id="cnControlLabel" class="controlnetElement">
|
||||
Control Mode
|
||||
</label>
|
||||
<select id="controlNetMode-select" class="controlnetElement">
|
||||
<option value="Balanced">prompt ⩵ CN</option>
|
||||
<option value="My prompt is more important">prompt > CN</option>
|
||||
<option value="ControlNet is more important">prompt < CN</option>
|
||||
<option value="Balanced">balanced</option>
|
||||
<option value="My prompt is more important">+prompt</option>
|
||||
<option value="ControlNet is more important">+CN</option>
|
||||
</select>
|
||||
<br />
|
||||
<label id="cnResizeLabel" class="controlnetElement">
|
||||
Resize Mode
|
||||
</label>
|
||||
<select id="controlNetResize-select" class="controlnetElement">
|
||||
<option value="Just Resize">resize</option>
|
||||
<option value="Crop and Resize">+crop</option>
|
||||
<option value="Resize and Fill">+fill</option>
|
||||
</select>
|
||||
<!-- <div id="referenceStyleFidelity" class="controlnetElement"></div> -->
|
||||
</div>
|
||||
|
|
|
@ -144,7 +144,7 @@ const extensions = {
|
|||
|
||||
let opt = null;
|
||||
opt = this.controlNetModules.module_list
|
||||
.filter((m) => m.includes("inpaint_")) // why is there just "inpaint" in the modules if it's not in the ui
|
||||
.filter((m) => m.includes("inpaint")) // why is there just "inpaint" in the modules if it's not in the ui
|
||||
.map((option) => ({
|
||||
name: option,
|
||||
value: option,
|
||||
|
@ -152,7 +152,7 @@ const extensions = {
|
|||
|
||||
opt.push({
|
||||
name: "inpaint_global_harmonious",
|
||||
value: "inpaint_global_harmonious", // WTF WHY IS THIS ONE NOT LISTED IN MODULES BUT DISTINCT IN THE API CALL?!?!?!??!??!
|
||||
value: "inpaint_global_harmonious", // WTF WHY IS THIS ONE NOT LISTED IN MODULES BUT DISTINCT IN THE API CALL?!?!?!??!??! it is slightly different from "inpaint" from what i can tell
|
||||
});
|
||||
|
||||
controlNetModuleAutoComplete.options = opt;
|
||||
|
|
|
@ -2853,6 +2853,7 @@ function addControlNetToAlwaysOnScripts(state, initCanvas, maskCanvas) {
|
|||
model: extensions.selectedControlNetModel,
|
||||
control_mode: document.getElementById("controlNetMode-select").value,
|
||||
processor_res: 64,
|
||||
resize_mode: document.getElementById("controlNetResize-select").value,
|
||||
// resize mode?
|
||||
// weights / steps?
|
||||
},
|
||||
|
@ -2866,6 +2867,7 @@ function addControlNetToAlwaysOnScripts(state, initCanvas, maskCanvas) {
|
|||
input_image: initCanvas.toDataURL(),
|
||||
mask: maskCanvas.toDataURL(),
|
||||
processor_res: 64,
|
||||
resize_mode: document.getElementById("controlNetResize-select").value,
|
||||
// resize mode?
|
||||
// weights / steps?
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue