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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user