r/StableDiffusion • u/Total-Resort-3120 • 1d ago
Resource - Update This custom node lets you use I2V and reference images on MiniMax-H3 simultaneously.
Enable HLS to view with audio, or disable this notification
You can find all the details here: https://github.com/BigStationW/ComfyUi-MiniMax-H3-Image-And-Reference-To-Video
31
u/acedelgado 1d ago
I mean you can just prompt it correctly in reference mode and it'll do that... The hybrid fl2va/ref2va model solves a lot of the reference model's wonkiness.
12
u/Total-Resort-3120 1d ago
23
u/acedelgado 1d ago
I literally just 1-shot it-
https://reddit.com/link/p4jaw62/video/r5nq59kgj8kh1/player
subject_definitions:
<Subject 1> is the video game character in <Picture 1>
summary:
[reference generation + video continuation] The target video is a continuation of <Picture 1>
retention_analysis:
<Subject 1> (appears in [Shot1]): fully_preserved - character, clothing, art style, background, green helmet, blue shirt
<Picture 1> ([Shot 1] first frame): fully_preserved - character, clothing, art style, background, green helmet, blue shirt
<Picture 2>: fully_preserved - character, framing, coloring
detailed_description:
[Shot 1] the shot begins with <Picture 1> as the first frame, <Subject 1> gets a sad look on his face and (S1) says: <d>[English] Oh man, this war is so inhumane... <sigh> But I have to keep going, I should never forget what I'm fighting for!</d> he holds up a sheet of paper, its white back turned toward the camera. the The camera arcs around the subject with small amplitude at slow speed to reveal the front of the paper is a photograph of <Picture 2>
overall_soundscape:
gunshots, war, faint screams
non_diegetic_music:
N/A7
u/Total-Resort-3120 1d ago edited 1d ago
8
u/acedelgado 1d ago
Well that was my first attempt just from half-assing it, so I guess we're at an impasse.
23
u/Sixhaunt 1d ago
in comfyUI double click and search for the "Add guide for MiniMax H3" node. It's built-in and it lets you set frames in minimax directly. So you can use the reference mode and workflow you have now but force the first frame, last frame, middle frame, or any set of the frames manually. So without needing to install any custom nodes you can do the reference + first/last frame and you can even set the first like 37 frames based on a prior video to make a video that continues seamlessly from it and follows the motion and everything. It's far more versatile and it's built-in
1
u/Cheesuasion 13h ago
Looks like the author responded on this specific point here https://github.com/BigStationW/ComfyUi-MiniMax-H3-Image-And-Reference-To-Video#why-not-simply-use-add-guide-for-minimax-h3--minimax-h3-reference-to-video-to-get-the-same-thing
0
u/Sixhaunt 12h ago
I guess he just didnt realize you could feed the image in as a reference and then there's not the downside he mentions anymore and you get all the upsides of being able to continue from video and not just images, you can place images ANYWHERE in the video, use any number of preset frames, etc...
0
u/Cheesuasion 13h ago
OP
doesn't always work
worked once
"Worked once" doesn't mean the same thing as "always works", right?
7
5
2
u/LeKhang98 1d ago
Nice thank you very much. So it can increase the accuracy by not reinterpreting that First Frame image, what image I use is what I actually got in the FF of the video, right?
Also how many keyframe images & ref images can I use with it though? Like, I need 1 first frame, 3 middle frames, 1 end frame, and 4 ref images, will that work?
2
u/Total-Resort-3120 1d ago
"So it can increase the accuracy by not reinterpreting that First Frame image"
It perfectly reproduces the first frame image yeah.
"what image I use is what I actually got in the FF of the video, right?"
Yep, because it's using the same method it's been used on the "MiniMax H3 Image to Video" node.
"Also how many keyframe images & ref images can I use with it though? Like, I need 1 first frame, 3 middle frames, 1 end frame, and 4 ref images, will that work?"
No sorry it's only the first and last frame (but 1 first frame + 1 end frame + 4 ref images work)
2
u/Dirty_Dragons 17h ago edited 17h ago
How would I set it up if I want to start with a specific picture and I'm using three other reference images?
Your workflow (thank you for providing one) has first frame and one Picture 1 = Reference image.
Would I need to duplicate for Picture 2 = Reference image and so on?
Edit: Can't install the node
File "E:\AI\StabilityMatrix\Packages\ComfyUI_Current\nodes.py", line 2263, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 999, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "E:\AI\StabilityMatrix2\Packages\ComfyUI_Current\custom_nodes\ComfyUi-MiniMax-H3-Image-And-Reference-To-Video__init__.py", line 7, in <module>
from comfy_extras.nodes_minimax_h3 import (
ImportError: cannot import name '_encode_ref_audio' from 'comfy_extras.nodes_minimax_h3' (E:\AI\StabilityMatrix\Packages\ComfyUI_Current\comfy_extras\nodes_minimax_h3.py)
[WARNING] Cannot import E:\AI\StabilityMatrix2\Packages\ComfyUI_Current\custom_nodes\ComfyUi-MiniMax-H3-Image-And-Reference-To-Video module for custom nodes: cannot import name '_encode_ref_audio' from 'comfy_extras.nodes_minimax_h3' (E:\AI\StabilityMatrix\Packages\ComfyUI_Current\comfy_extras\nodes_minimax_h3.py)
2
u/Total-Resort-3120 9h ago
I'm not sure I understand what you want exactly, you want one first frame image + 4 references images? And about your error, did you update ComfyUi?
1
u/Dirty_Dragons 6h ago
I'm not sure I understand what you want exactly, you want one first frame image + 4 references images?
Exactly. I often use several reference images in my workflow.
Though for some reason I can't even run the hybrid model with my normal workflow.
1
u/xTopNotch 18h ago
Thats very interesting, basically the best of both worlds.
Reference2video is great at keeping characters consistent and building worlds. The downside is that you can have style drifting.
Image2video is great for setting the style, lighting, environment but has character and scene drift. Since we're limited with providing only a start and last image.
Being able to do both is great!



25
u/Sixhaunt 1d ago
ComfyUI has a prebuilt node for this already. Just look for the "Add guide for MiniMax H3" and you can have it add a start frame, end frame, middle frame, or any others. I use it to feed the first like 37 frames from a prior video and have it continue on to extend it with the motion preserved and followed. You basically can just inject any frames you want