Remove seed control from GUI
This commit is contained in:
parent
bac0b6c527
commit
bfaca2f493
3 changed files with 2 additions and 18 deletions
|
|
@ -199,7 +199,6 @@ const targetSizeInput = byId<HTMLInputElement>("targetSizeInput");
|
|||
const targetWidthInput = byId<HTMLInputElement>("targetWidthInput");
|
||||
const targetHeightInput = byId<HTMLInputElement>("targetHeightInput");
|
||||
const stepsInput = byId<HTMLInputElement>("stepsInput");
|
||||
const seedInput = byId<HTMLInputElement>("seedInput");
|
||||
const runControlsCopy = byId<HTMLParagraphElement>("runControlsCopy");
|
||||
const queuePanel = byId<HTMLElement>("queuePanel");
|
||||
const queueSummaryPanel = byId<HTMLDivElement>("queueSummary");
|
||||
|
|
@ -1269,7 +1268,7 @@ function buildFormData(): FormData {
|
|||
["target_width", parseOptionalInteger(targetWidthInput)?.toString() ?? null],
|
||||
["target_height", parseOptionalInteger(targetHeightInput)?.toString() ?? null],
|
||||
["steps", String(normalizedSteps)],
|
||||
["seed", String(parseOptionalInteger(seedInput) ?? 7)],
|
||||
["seed", "7"],
|
||||
["device", runtimeConfig?.hostedDemo ? "cpu" : deviceInput.value],
|
||||
["strip_background", runtimeConfig?.hostedDemo ? "false" : stripBackgroundInput.checked ? "true" : "false"],
|
||||
["skip_candidate_rerank", "false"],
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ const targetSizeInput = byId("targetSizeInput");
|
|||
const targetWidthInput = byId("targetWidthInput");
|
||||
const targetHeightInput = byId("targetHeightInput");
|
||||
const stepsInput = byId("stepsInput");
|
||||
const seedInput = byId("seedInput");
|
||||
const runControlsCopy = byId("runControlsCopy");
|
||||
const queuePanel = byId("queuePanel");
|
||||
const queueSummaryPanel = byId("queueSummary");
|
||||
|
|
@ -1025,7 +1024,7 @@ function buildFormData() {
|
|||
["target_width", parseOptionalInteger(targetWidthInput)?.toString() ?? null],
|
||||
["target_height", parseOptionalInteger(targetHeightInput)?.toString() ?? null],
|
||||
["steps", String(normalizedSteps)],
|
||||
["seed", String(parseOptionalInteger(seedInput) ?? 7)],
|
||||
["seed", "7"],
|
||||
["device", runtimeConfig?.hostedDemo ? "cpu" : deviceInput.value],
|
||||
["strip_background", runtimeConfig?.hostedDemo ? "false" : stripBackgroundInput.checked ? "true" : "false"],
|
||||
["skip_candidate_rerank", "false"],
|
||||
|
|
|
|||
|
|
@ -248,20 +248,6 @@
|
|||
</span>
|
||||
<input id="stepsInput" class="field-control" name="steps" type="number" min="0" value="48" />
|
||||
</label>
|
||||
<label class="field">
|
||||
<span class="field-heading">
|
||||
<span class="field-label">Seed</span>
|
||||
<span
|
||||
class="help-tip"
|
||||
tabindex="0"
|
||||
role="note"
|
||||
title="Random seed used by the solver tie-breaks. Reusing the same seed makes runs more repeatable."
|
||||
aria-label="Random seed used by the solver tie-breaks. Reusing the same seed makes runs more repeatable."
|
||||
>?</span
|
||||
>
|
||||
</span>
|
||||
<input id="seedInput" class="field-control" name="seed" type="number" min="0" value="7" />
|
||||
</label>
|
||||
<label id="stripBackgroundField" class="toggle-row ui-surface ui-frame" hidden>
|
||||
<input id="stripBackgroundInput" name="stripBackground" type="checkbox" />
|
||||
<span class="toggle-copy">
|
||||
|
|
|
|||
Loading…
Reference in a new issue