Load only the LoRAs the user picked on Klein; do not require snofs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import workflowV1 from '../assets/workflow_minimax_video.json'
|
||||
import workflowV2 from '../assets/workflow_minimax_video_v2.json'
|
||||
import workflowLtx from '../assets/workflow_ltx_video.json'
|
||||
import { buildIdentityPrompt } from '~/utils/identityPrompt'
|
||||
import { applyUserLoraToGraph } from '~/server/utils/loras'
|
||||
import { applyUserLoraToGraph, resolveGraphLoraNames } from '~/server/utils/loras'
|
||||
import type { LoraStackItem } from '~/utils/loras'
|
||||
import {
|
||||
isLtxWorkflow,
|
||||
@@ -225,6 +225,7 @@ export function buildWorkflow(params: GenerateParams) {
|
||||
if (graph['105:104']?.inputs) delete graph['105:104'].inputs.audio_vae
|
||||
}
|
||||
|
||||
resolveGraphLoraNames(graph, 'video')
|
||||
applyUserLoraToGraph(graph, params.loraStack || params.loraName)
|
||||
return graph
|
||||
}
|
||||
@@ -298,6 +299,7 @@ function buildLtxWorkflow(params: GenerateParams, version: VideoWorkflowId) {
|
||||
if (graph['12']?.inputs) graph['12'].inputs.latent = ['8', 0]
|
||||
if (graph['14']?.inputs) graph['14'].inputs.latent_image = ['8', 0]
|
||||
}
|
||||
resolveGraphLoraNames(graph, 'video')
|
||||
applyUserLoraToGraph(graph, params.loraStack || params.loraName)
|
||||
return graph
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user