Fix MiniMax text-to-video: use ImageToVideo with no first frame instead of a node Comfy does not install.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -267,14 +267,14 @@ function promptForNode(classType: string, useRefs: boolean, actionPrompt: string
|
|||||||
function applyMinimaxTextToVideo(graph: WorkflowGraph, params: GenerateParams, width: number, height: number) {
|
function applyMinimaxTextToVideo(graph: WorkflowGraph, params: GenerateParams, width: number, height: number) {
|
||||||
const node = graph['105:104']
|
const node = graph['105:104']
|
||||||
if (node) {
|
if (node) {
|
||||||
node.class_type = 'MiniMaxH3TextToVideo'
|
// MiniMax H3 has no TextToVideo class. T2V is ImageToVideo with first_frame disconnected.
|
||||||
|
node.class_type = 'MiniMaxH3ImageToVideo'
|
||||||
node._meta = { title: 'MiniMax H3 Text to Video' }
|
node._meta = { title: 'MiniMax H3 Text to Video' }
|
||||||
delete node.inputs.first_frame
|
delete node.inputs.first_frame
|
||||||
|
delete node.inputs.last_frame
|
||||||
node.inputs.prompt = params.prompt
|
node.inputs.prompt = params.prompt
|
||||||
node.inputs.width = width
|
node.inputs.width = width
|
||||||
node.inputs.height = height
|
node.inputs.height = height
|
||||||
if (params.sound !== false && graph['105:24']) node.inputs.audio_vae = ['105:24', 0]
|
|
||||||
else delete node.inputs.audio_vae
|
|
||||||
}
|
}
|
||||||
delete graph['114']
|
delete graph['114']
|
||||||
delete graph['119']
|
delete graph['119']
|
||||||
|
|||||||
Reference in New Issue
Block a user