Apply and print SNOFS from the LoRA dials, not a leftover Concept LoRA row.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-02 21:33:30 -05:00
co-authored by Cursor
parent ca2380f4ae
commit 9fd96cb990
6 changed files with 94 additions and 28 deletions
+14 -4
View File
@@ -18,6 +18,7 @@ import {
clampImageV2Denoise,
clampImageV2Size,
clampImageV2Strength,
imageV2StackSpecials,
imageV2WorkflowFile,
parseImageV2Engine,
parseImageV2Mode,
@@ -259,6 +260,15 @@ export default defineEventHandler(async (event) => {
const generateSnofsClipFallback = 0
await listStudioLoras()
const loraStack = assertImageV2LoraStack(parsePostedLoraStack(fields.loraStack || fields.lora, 'image'), engine)
const stackSpecials = imageV2StackSpecials(loraStack, engine)
const snofsModel = conceptAllowed
? (stackSpecials.snofs?.strengthModel ?? clampImageV2Strength(fields.snofs_model, generateSnofsFallback))
: 0
const snofsClip = conceptAllowed
? (stackSpecials.snofs?.strengthClip ?? clampImageV2Strength(fields.snofs_clip, generateSnofsClipFallback))
: 0
const consistencyModel = stackSpecials.consistency?.strengthModel ?? generateConsistencyModel
const consistencyClip = stackSpecials.consistency?.strengthClip ?? generateConsistencyClip
let inputFilename = imageA?.filename || ''
const postedStillId = String(fields.stillId || '').trim()
if (postedStillId) {
@@ -346,10 +356,10 @@ export default defineEventHandler(async (event) => {
v2Mode,
v2Task,
engine,
snofsModel: conceptAllowed ? clampImageV2Strength(fields.snofs_model, generateSnofsFallback) : 0,
snofsClip: conceptAllowed ? clampImageV2Strength(fields.snofs_clip, generateSnofsClipFallback) : 0,
consistencyModel: generateConsistencyModel,
consistencyClip: generateConsistencyClip,
snofsModel,
snofsClip,
consistencyModel,
consistencyClip,
maskStillId: savedMask?.id,
maskStillFilename: savedMask?.filename,
refineStrength,