Eliminate xAIGen and LTX; AIGen is the only studio.
Drop the studio split, backup-to-xAIGen link, and LTX engine option. Show all LoRAs on AIGen and remove the Photos show/hide inputs toggle so slots stay visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -273,47 +273,16 @@ async function prepareGraph(r: any) {
|
||||
start = await upload(r, 'start', readFileSync(dest));
|
||||
unlinkSync(dest);
|
||||
}
|
||||
if (q.engine === 'ltx') {
|
||||
const { buildWorkflow } = await import('../workflow');
|
||||
const { frameLength } = await import('../videoChain');
|
||||
const { ltxWorkflowEnabled, LTX_DISABLED_MESSAGE } = await import('~/utils/videoModels');
|
||||
if (!ltxWorkflowEnabled()) throw new Error(LTX_DISABLED_MESSAGE);
|
||||
const textToVideo = q.mode === 'video' && !start;
|
||||
if (!start && !textToVideo) throw new Error('Choose a start still for LTX video.');
|
||||
const fps = s.fps || 24;
|
||||
graph = buildWorkflow({
|
||||
workflow: textToVideo ? 'ltx-t2v' : 'ltx',
|
||||
imageName: start || '',
|
||||
prompt: q.compiledPrompt,
|
||||
width: s.width,
|
||||
height: s.height,
|
||||
length: frameLength(s.duration || 5, fps),
|
||||
fps,
|
||||
steps: s.steps,
|
||||
cfg: s.cfg,
|
||||
seed: s.seed,
|
||||
samplerName: 'euler',
|
||||
scheduler: 'simple',
|
||||
turbo: false,
|
||||
duration: s.duration || 5,
|
||||
filenamePrefix: prefix + '/video',
|
||||
loraStack: s.loraStack,
|
||||
useIdentityRefs: false
|
||||
});
|
||||
await ensureComfyLoraNames('video');
|
||||
r.graphId = textToVideo ? 'workflow_ltx_video.json#t2v' : 'workflow_ltx_video.json';
|
||||
} else {
|
||||
if (q.engine !== 'minimax')
|
||||
throw new Error('Studio 2 video supports MiniMax H3 and LTX (xAIGen).');
|
||||
const end = await load(q.endStillId, 'end'), guides = [];
|
||||
for (const [i, g] of q.guides.entries())
|
||||
guides.push({ image: await load(g.stillId, `guide${i}`), frame: g.frame });
|
||||
graph = nativeVideoGraph(template, q, { hero, start, end, guides }, prefix);
|
||||
await ensureComfyLoraNames('video');
|
||||
resolveGraphLoraNames(graph, 'video');
|
||||
applyUserLoraToGraph(graph, s.loraStack);
|
||||
r.graphId = 'studio2_minimax_native.json';
|
||||
}
|
||||
if (q.engine !== 'minimax')
|
||||
throw new Error('Studio 2 video supports MiniMax H3 only.');
|
||||
const end = await load(q.endStillId, 'end'), guides = [];
|
||||
for (const [i, g] of q.guides.entries())
|
||||
guides.push({ image: await load(g.stillId, `guide${i}`), frame: g.frame });
|
||||
graph = nativeVideoGraph(template, q, { hero, start, end, guides }, prefix);
|
||||
await ensureComfyLoraNames('video');
|
||||
resolveGraphLoraNames(graph, 'video');
|
||||
applyUserLoraToGraph(graph, s.loraStack);
|
||||
r.graphId = 'studio2_minimax_native.json';
|
||||
}
|
||||
else if (q.engine === 'moss') {
|
||||
if (q.mode !== 'generate')
|
||||
|
||||
Reference in New Issue
Block a user