Add per-image iteration settings and steps/CFG sweeps

This commit is contained in:
Towsty
2026-09-06 17:02:42 -05:00
parent 0c6a035d04
commit 666c922f40
12 changed files with 370 additions and 59 deletions
+11
View File
@@ -76,6 +76,17 @@
<div v-for="(shot, index) in extraShots" :key="index" class="rounded-2xl border border-white/10 bg-zinc-950/50 px-3 py-3">
<p class="text-sm font-medium text-zinc-200">{{ job.kind === 'edit' ? `Pass ${index + 2}` : `Shot ${index + 2}` }}</p>
<textarea v-model="shot.prompt" rows="3" class="mt-2 max-h-36 w-full overflow-y-auto rounded-xl border border-white/10 bg-zinc-950 px-3 py-2 text-sm outline-none ring-amber-300/40 [overflow-wrap:anywhere] focus:ring-2 disabled:opacity-70" :disabled="!editable" />
<ImageIterationSettings
v-if="job.kind === 'edit' && job.payload.v2Mode === 'iterate'"
:model-value="shot"
:base-steps="draft.steps"
:base-cfg="draft.cfg"
:lora-names="loraNames"
:engine="job.payload.engine === 'krea' ? 'krea' : 'flux'"
:allow-strength="job.payload.engine === 'krea' && Boolean(job.payload.stillId)"
:disabled="!editable"
@update:model-value="extraShots[index] = { ...$event, duration: shot.duration }"
/>
<label v-if="job.kind !== 'edit'" class="mt-2 block text-xs text-zinc-400">
Duration
<input v-model.number="shot.duration" type="number" min="0.5" max="120" step="0.1" class="mt-1 w-28 rounded-lg border border-white/10 bg-zinc-950 px-2 py-1 text-sm disabled:opacity-70" :disabled="!editable">