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:
@@ -197,6 +197,14 @@ export function isImageV2ConsistencyLora(name: string) {
|
||||
return id === loraIdentityKey(IMAGE_V2_CONSISTENCY_LORA) || /flux2-klein-9b-consistency/i.test(id)
|
||||
}
|
||||
|
||||
/** Strengths that are actually on the stack cards. Separate snofs_* fields are legacy only. */
|
||||
export function imageV2StackSpecials(stack: unknown, engine?: ImageV2Engine) {
|
||||
const items = normalizeLoraStack(stack)
|
||||
const snofs = items.find(item => isImageV2ConceptLora(item.name, engine))
|
||||
const consistency = items.find(item => isImageV2ConsistencyLora(item.name))
|
||||
return { items, snofs, consistency }
|
||||
}
|
||||
|
||||
export function upsertImageV2Lora(stack: unknown, name: string, model: number, clip: number): LoraStackItem[] {
|
||||
const item = makeLoraStackItem(name, model, clip)
|
||||
const current = normalizeLoraStack(stack)
|
||||
|
||||
Reference in New Issue
Block a user