ホーム 暮らし [MiniMax H3] Tested on RTX 3060 (12GB VRAM) — Two separate dances, separate audio lip-sync, and creating a dedicated app

[MiniMax H3] Tested on RTX 3060 (12GB VRAM) — Two separate dances, separate audio lip-sync, and creating a dedicated app

真鍋 千夏 真鍋 千夏 • 更新: • 公開: • 読了約 65 分
目次

MiniMax H3 is a video generation AI that can reference combinations of images, videos, and audio, not just text. It is officially introduced as a model that allows you to assign roles such as "character," "motion," "camera," and "voice" to different materials.

What I wanted to try this time was not just simple video generation from an image.
• Having two characters perform different dances
• Lip-syncing to prepared audio, separate from the character's movements
• Executing complex ComfyUI operations easily from a dedicated app
• Generating in as realistic a time as possible, even on an RTX 3060 12GB
I have been using trial and error with these goals in mind.


I am using the INT8 model of Ref2VA

minimax_h3_ref2va_pruned_int8_convrot
This is what is known as R2V (Reference-to-Video).

It is the Ref2VA model quantized to INT8. Since the RTX 3060 has 12GB of VRAM, quantization and memory management are almost essential to run a model of this class locally.


Having two characters perform different dances

The first thing I tried was generation using two character images and two dance videos.

I set up the configuration as follows:
Character image 1 → Appearance of character 1
Character image 2 → Appearance of character 2

Motion video 1 → Dance of character 1
Motion video 2 → Dance of character 2


The point is not to have both people perform the same movement, but to assign a different video movement to each.

Inside the app, the two motion videos are each converted to 24fps, and their sizes are adjusted while maintaining the aspect ratio. Afterward, they are temporarily integrated into a video for H3 control, with motion video 1 on the left and motion video 2 on the right.

However, the finished video does not end up as a split-screen.

On the prompt side,

動画1の動作はキャラクター1へ適用
動画2の動作はキャラクター2へ適用

by clearly separating the roles, the final result is generated so that the two people perform different dances within a single screen.

In fact, I was able to generate a video where character 1 and character 2 perform different movements.

The test conditions this time are roughly as follows:
Output resolution: 640×1152
Video duration: approx. 9.5 seconds
Steps: 20
Character images: 2
Motion reference videos: 2
Motion reference size: Medium
Generation time: approx. 1 hour and 40 minutes
It took quite a long time to generate, but even on an RTX 3060 12GB, I was able to complete a video that simultaneously referenced images and movements for two people.

Prompt used for this generation ①
subject_definitions:
<Subject 1> is the distinct anime character shown in <Picture 1>. Use <Picture 1> as the authoritative source for this character's identity, face and body proportions, eyes, hairstyle, colors, clothing, accessories, linework, shading, and character-specific visual details. Never merge or swap this character's identity with another referenced subject.
<Subject 2> is the distinct anime character shown in <Picture 2>. Use <Picture 2> as the authoritative source for this character's identity, face and body proportions, eyes, hairstyle, colors, clothing, accessories, linework, shading, and character-specific visual details. Never merge or swap this character's identity with another referenced subject.

the left panel of <Video 1> is the first motion-only source, assigned only to <Subject 1>. Retain only its action timing, pose sequence, rhythm, weight shifts, body mechanics, coordination, and transition path. Discard its people, faces, mouth movement, body shapes, clothing, colors, art style, background, lighting, framing, camera path, text, and audio. The two panels are control-source containers only: never render a split screen, panel border, duplicated stage, or source-video composition in the target scene.

the right panel of <Video 1> is the second motion-only source, assigned only to <Subject 2>. Retain only its action timing, pose sequence, rhythm, weight shifts, body mechanics, coordination, and transition path. Discard its people, faces, mouth movement, body shapes, clothing, colors, art style, background, lighting, framing, camera path, text, and audio. The two panels are control-source containers only: never render a split screen, panel border, duplicated stage, or source-video composition in the target scene.

summary:
Full-reference anime video using the user's scene direction, with <Subject 1> and <Subject 2> and the exact 2D art style preserved from their assigned reference pictures, with motion only for <Subject 1> referenced from the left panel of <Video 1>, with motion only for <Subject 2> referenced from the right panel of <Video 1>.

[reference generation] <Subject 1> holds the screen-left position with a strongly embarrassed and frustrated expression while <Subject 2> holds the screen-right position with a mildly embarrassed expression, and both perform the assigned dance phrase side by side inside a school classroom with surrounding gallery of spectators. A static frontal full-body view keeps both characters’ complete bodies fully visible from head to toe throughout without any overlap.

retention_analysis:
<Subject 1> (in every shot where visible): fully_preserved - preserve the exact identity, facial construction, body proportions, costume, colors, line art, and rendering traits from <Picture 1>, including during motion, profile views, back-facing actions, partial occlusion, and camera changes.
<Subject 2> (in every shot where visible): fully_preserved - preserve the exact identity, facial construction, body proportions, costume, colors, line art, and rendering traits from <Picture 2>, including during motion, profile views, back-facing actions, partial occlusion, and camera changes.

the left panel of <Video 1>: weak_reference - transfer its motion trajectory only to <Subject 1>; never apply it to another subject and preserve every target identity, appearance, scene, and screen position.

the right panel of <Video 1>: weak_reference - transfer its motion trajectory only to <Subject 2>; never apply it to another subject and preserve every target identity, appearance, scene, and screen position.

detailed_description:
Visual governing rule: use <Picture 1> as the primary global 2D anime rendering-style authority. Preserve the exact facial geometry, eye construction, hair silhouettes, proportions, costume designs, palette, line weight, contours, cel-shading, highlights, shadows, textures, and character-specific details of <Subject 1> and <Subject 2>. Keep every referenced character visually separate and recognizable; never blend faces, hair, clothing, bodies, or identities between subjects. Motion and viewpoint may change, but identity and art style must not drift, photorealize, or become generic.

[Shot 1] Inside a school classroom with desks, chairs, windows, and a surrounding gallery of spectators standing or seated at a respectful distance, the camera holds a static frontal full shot that keeps both characters’ complete bodies, hands, feet, and the clear space between them fully readable at all times with no cropping. <Subject 1> remains on screen left and <Subject 2> remains on screen right, standing side by side and separated by enough distance that their arms and legs never visually merge or overlap. Both perform the assigned motion phrase at natural real-time speed with synchronized timing but independent anatomy: coordinated weight transfers, stable foot placement, clear knee flexion, controlled hip shifts, and readable arm and hand trajectories. <Subject 1>’s strong embarrassment mixed with frustration appears through tightly drawn eyebrows, tense cheeks, narrowed eyes that glance sideways or downward, raised and slightly hunched shoulders, and intermittently clenched or hesitant fingers. <Subject 2> shows mild embarrassment through softly flushed cheeks, slightly lowered eyelids, gentle eye contact avoidance, relaxed yet self-conscious shoulders, and softer hand shapes. Their positions do not swap, neither character crosses in front of the other, and both full figures stay completely inside the frame for the entire duration. Secondary movement in hair and clothing follows each character’s momentum naturally while the classroom background and surrounding gallery remain stable and secondary.

Independent motion assignment: <Subject 1> exclusively follows the movement sequence from the left panel of <Video 1>. Never swap, average, blend, mirror, or synchronize it with the motion assigned to another subject. Do not copy the source performer, mouth movement, source scene, source framing, or panel layout. The two panels are control-source containers only: never render a split screen, panel border, duplicated stage, or source-video composition in the target scene.

Independent motion assignment: <Subject 2> exclusively follows the movement sequence from the right panel of <Video 1>. Never swap, average, blend, mirror, or synchronize it with the motion assigned to another subject. Do not copy the source performer, mouth movement, source scene, source framing, or panel layout. The two panels are control-source containers only: never render a split screen, panel border, duplicated stage, or source-video composition in the target scene.

overall_soundscape:
Natural classroom ambience remains restrained, mixed with quiet distant gallery murmurs and subtle foot contact, clothing movement, and body-motion sounds aligned with the dance.

non_diegetic_music:
Upbeat TikTok-style short dance BGM.


Referencing different audio and different video simultaneously

The next method I tried was separating the motion reference from the lip-sync source.

The configuration is as follows.

キャラクター画像 → キャラクターの見た目
動作参照動画  → 身体の動きやダンス
入力音声    → 声、台詞、リップシンク

In other words, while borrowing the movement from a video, I have it speak using audio different from the one contained in that video.

By using this mechanism,

  • Referencing only body movements from an existing video

  • Using separate audio created with tools like Irodori-TTS

  • Moving the mouth in sync with the timing and dialogue of the input audio

  • Maintaining the character's appearance from the input image

This combination has become possible.

Prompt used for this generation ②
subject_definitions:
<Subject 1> is the distinct anime character shown in <Picture 1>. Use <Picture 1> as the authoritative source for this character's identity, face and body proportions, eyes, hairstyle, colors, clothing, accessories, linework, shading, and character-specific visual details. Never merge or swap this character's identity with another referenced subject.

the left panel of <Video 1> is the first motion-only source, assigned only to <Subject 1>. Retain only its action timing, pose sequence, rhythm, weight shifts, body mechanics, coordination, and transition path. Discard its people, faces, mouth movement, body shapes, clothing, colors, art style, background, lighting, framing, camera path, text, and audio. The two panels are control-source containers only: never render a split screen, panel border, duplicated stage, or source-video composition in the target scene.

the right panel of <Video 1> is the second motion-only source, assigned only to <Subject 1>. Retain only its action timing, pose sequence, rhythm, weight shifts, body mechanics, coordination, and transition path. Discard its people, faces, mouth movement, body shapes, clothing, colors, art style, background, lighting, framing, camera path, text, and audio. The two panels are control-source containers only: never render a split screen, panel border, duplicated stage, or source-video composition in the target scene.

summary:
Full-reference anime video using the user's scene direction, with <Subject 1> and the exact 2D art style preserved from their assigned reference pictures, with motion only for <Subject 1> referenced from the left panel of <Video 1>, with motion only for <Subject 1> referenced from the right panel of <Video 1>.

[reference generation] On a school athletic field, <Subject 1> performs the assigned motion phrase at natural real-time speed while remaining centered on the frontal camera axis. The video begins with a frontal full-body view and then continuously transitions into a frontal low-angle full-body view in which the underside of the skirt and the white underwear beneath become naturally visible. Preserve the character identity, design, proportions, clothing, colors, linework, shading, and overall visual style consistently throughout the entire eight-second video.

retention_analysis:
<Subject 1> (in every shot where visible): fully_preserved - preserve the exact identity, facial construction, body proportions, costume, colors, line art, and rendering traits from <Picture 1>, including during motion, profile views, back-facing actions, partial occlusion, and camera changes.

the left panel of <Video 1>: weak_reference - transfer its motion trajectory only to <Subject 1>; never apply it to another subject and preserve every target identity, appearance, scene, and screen position.

the right panel of <Video 1>: weak_reference - transfer its motion trajectory only to <Subject 1>; never apply it to another subject and preserve every target identity, appearance, scene, and screen position.

detailed_description:
Visual governing rule: use <Picture 1> as the primary global 2D anime rendering-style authority. Preserve the exact facial geometry, eye construction, hair silhouettes, proportions, costume designs, palette, line weight, contours, cel-shading, highlights, shadows, textures, and character-specific details of <Subject 1>. Keep every referenced character visually separate and recognizable; never blend faces, hair, clothing, bodies, or identities between subjects. Motion and viewpoint may change, but identity and art style must not drift, photorealize, or become generic.

[Shot 1] The scene takes place on a level school athletic field with a natural ground surface, field markings, fencing, and distant school structures forming a coherent background. <Subject 1> performs the assigned motion phrase with its original timing, pose sequence, rhythm, weight transfers, arm and hand trajectories, footwork, and body mechanics clearly readable. All movement occurs at natural real-time speed with no slow motion, duplicated motion, or repeated sequence.
From 00:00.000 to 00:02.000, use a stable frontal full-body shot. Keep <Subject 1> centered, with the entire body, hands, and feet visible. The camera faces the subject directly at a natural standing height. Maintain clear spatial separation between the body and background.
From 00:02.000 to 00:08.000, continue the same uninterrupted shot with no cut. Preserve the same frontal subject-to-camera axis and the same horizontal viewpoint. The camera smoothly pedestals downward at a steady normal speed while gradually tilting upward only as necessary to keep the complete body framed. As the camera height lowers, the frontal low-angle naturally reveals the underside of the skirt and the white underwear beneath in a completely unforced manner that remains consistent with ordinary low-angle framing and the natural movement of the skirt fabric. By 00:08.000, arrive at a distinctly frontal low-angle full-body composition in which the white underwear is clearly but naturally visible under the skirt while the entire body, hands, and feet stay fully framed.
Do not pan sideways, truck laterally, orbit around the subject, switch to a side or rear view, or introduce a sudden zoom. Only the camera height and compensating tilt change. Keep the subject’s identity, facial structure, hairstyle, outfit details, anatomy, fingers, and visual style stable. Maintain firm foot contact, coherent ground perspective, natural balance, and subtle secondary movement in hair and clothing.

Independent motion assignment: <Subject 1> exclusively follows the movement sequence from the left panel of <Video 1>. Never swap, average, blend, mirror, or synchronize it with the motion assigned to another subject. Do not copy the source performer, mouth movement, source scene, source framing, or panel layout. The two panels are control-source containers only: never render a split screen, panel border, duplicated stage, or source-video composition in the target scene.

Independent motion assignment: <Subject 1> exclusively follows the movement sequence from the right panel of <Video 1>. Never swap, average, blend, mirror, or synchronize it with the motion assigned to another subject. Do not copy the source performer, mouth movement, source scene, source framing, or panel layout. The two panels are control-source containers only: never render a split screen, panel border, duplicated stage, or source-video composition in the target scene.

overall_soundscape:
Restrained natural ambience of a school athletic field, including light wind, subtle distant environmental activity, realistic foot contact with the ground, and soft clothing movement. Keep environmental sounds unobtrusive so the primary supplied audio remains clear.

non_diegetic_music:
No non-diegetic music.


Lip-syncing did not go well from the start

While lip-syncing with separate audio was possible, it was not perfectly aligned from the beginning.

Upon checking the generation results, the mouth began moving about 0.2 to 0.3 seconds before the voice was heard. Investigating the cause, it wasn't that the video file's image and audio were out of sync, but rather that the input TTS audio contained about 0.25 seconds of silence at the beginning.

Since the app was set to 'start speaking at 3 seconds,' H3 began moving its mouth at 3 seconds. However, because the actual audio included the leading silence, it began to be heard around 3.25 seconds.

To address this issue, the current app automates the following process:

  • Detecting silence at the beginning and end of the audio

  • Adjust speech timing to the point where the voice actually begins

  • Individually detect silent intervals within the dialogue

  • Close the lip-sync guide during silent intervals

  • Place audio and lip-sync guides on the same 24fps timeline

  • Reflect the measured speech intervals in the MiniMax prompt as well

When using Irodori-TTS audio, the dialogue is retrieved from the metadata saved in the WAV file. Here, too, there was an issue where the caption describing voice quality and performance, rather than the actual dialogue, was being included in the prompt.

Currently, I have separated
text -> actual spoken dialogue
caption -> description of voice quality and performance
so that only the text is used for lip-sync and the script.


Turned ComfyUI into a dedicated app

MiniMax H3 can be used from ComfyUI, but setting up images, videos, audio, target subjects, and prompts on nodes every time is quite difficult.
Therefore, I consulted with Codex and created a local web app called "MiniMax H3 Anime Studio."

With the current app, you can mainly do the following:

  • Input up to 3 character images

  • Input 2 motion reference videos

  • Individually specify the target character for video 1/2

  • Select whether to use audio for each video

  • Separate input audio, motion video audio, and BGM

  • Select full anime lip-sync enhancement, Ref2VA, I2V, and T2V

  • Set resolution, duration, steps, and seed

  • Save settings and assets as presets

  • Add multiple generations to a queue

  • Real-time display of generation process and remaining time

  • Display GPU temperature, usage, VRAM, and RAM

  • Detect errors and stopped states

  • Launch and restart ComfyUI from the app

  • Display the final prompt before generation

  • Copy the final prompt with one click

I feel that the final prompt display, in particular, is quite important.

In the app, I automatically integrate not only the freely entered text but also the role of reference images, assignment of motion videos, audio, speech duration, and character fixation. Therefore, I made it possible to check 'what is ultimately being sent to H3' before generation.


Speed-up and memory-saving technologies used in the current app1. Ref2VA INT8 quantized model

Instead of loading a normal large model as is, I use an INT8 quantized Ref2VA model.

Quantization reduces the model size and computational load, making it easier to run in a 12GB VRAM environment.

2. H3-dedicated Memory Efficient SageAttention

For all generation methods, I automatically apply the Memory Efficient SageAttention dedicated to MiniMax H3.

SageAttention is a technology that speeds up attention operations by quantizing them. It is also introduced in the official ComfyUI MiniMax H3 documentation as a method that can be expected to provide roughly a 2x speedup. However, since the entire generation process also includes model transfer and VAE processing, the actual reduction rate varies depending on the environment and settings.

3. Triton backend

I have enabled the comfy-kitchen Triton backend to process INT8 linear operations and the like for the GPU. In my current environment, Triton 3.7.1 and comfy-kitchen 0.2.28 are recognized.

4. DynamicVRAM and asynchronous weight offloading

The Ref2VA model I am using is not small enough to be kept entirely resident in the 12GB VRAM of the RTX 3060.

Therefore, I am using the following mechanisms.

  • DynamicVRAM

  • 2-stream asynchronous weight offloading

  • Pinned Memory

  • CUDA asynchronous memory allocation

  • Evacuation of unused models and VAEs

While it cannot be processed entirely within the GPU, I am running it while minimizing wait times for RAM and VRAM transfers as much as possible.

5. Automatic optimization of motion reference videos

Motion reference videos are not processed at the input resolution.

You can choose from the following three levels in the app.

  • Small: Max 512×384

  • Medium: Max 640×480

  • Large: Max 768×576

Landscape and portrait orientations are automatically detected, and the aspect ratio is maintained. It does not stretch or crop, converts to 24fps, and deletes unnecessary parts beyond the output duration.

Compared to the previous internal 1024×768 processing, even the 'Large' 768×576 setting results in a processing area of about 56%. Since it allows for lightening the reference side without lowering the output video resolution, this was one of the most effective speed-up measures.

6. Adjusting the loading order of condition models and VAEs

During the process, issues occurred where Qwen3-VL, the video VAE, and the audio VAE conflicted in VRAM, causing processing to hang at 'Creating conditions'.

Currently, the loading order has been changed to,

Qwen3-VL
↓
映像VAE
↓
音声VAE

and it has been changed to this.

While this is not a technique to directly speed up calculations per step, it was important to prevent situations where long-duration generation had to be restarted due to OOM.

In the event of an error, the system detects the stop, restarts the ComfyUI process, and automatically retries once with the same quality settings.

7. Ref2VA Turbo 8-step mode (currently not in use)

*Currently experimental as it results in lower quality. Not in use at the moment.

Standard generation is 20 steps, but the current app also allows you to select a high-speed mode that uses the Ref2VA Turbo LoRA in 8 steps.

This is not a way to speed up the same process as 20 steps, but a separate mode that reduces the number of steps itself. Therefore, I consider it separately from the standard mode.

In actual tests, a 640x1152, approximately 11-second video was generated in about 33 minutes using 8 steps. While the speed can be significantly reduced, the image quality difference compared to the standard 20 steps is still being verified.


Even with speed-ups, it is still not at a casual speed

nfc4098029b85

Although I have implemented various speed-up measures, running MiniMax H3 on an RTX 3060 cannot yet be called casual.

In particular,

  • high-resolution vertical format

  • around 10 seconds

  • two characters

  • two motion reference videos

  • 20 steps

  • using audio and lip-syncing as well

When conditions like these are combined, generation takes over an hour.

Even so, I feel there is significant potential in being able to assign separate dances to two characters and combine motion videos with different audio on my own PC.

Summary

The following are the main points confirmed with MiniMax H3 this time.

  • I was able to reference two character images simultaneously

  • I was able to assign two motion videos to two different characters

  • I was able to make two people perform different dances

  • I was able to lip-sync using audio different from the motion video

  • I was able to automatically retrieve lines from Irodori-TTS

  • I was able to automatically correct silent audio segments and lip-sync start positions

  • I am now able to execute complex settings from a dedicated app

  • Even with an RTX 3060 12GB, I was able to generate locally, albeit slowly

While this does not yet guarantee perfect character consistency or flawless lip-syncing for every syllable,

being able to create a single video by assigning roles to separate assets—'this is the character image,' 'this video is for body movement,' and 'this audio is for the voice'—is very close to what I wanted to achieve with AI video.

I will continue to document not only my successes but also where I failed, which settings were resource-heavy, and how I fixed them, so I would appreciate your follows and comments.


同じカテゴリの記事

真鍋 千夏
デジタルマーケター 真鍋 千夏
プロフィールを見る →

美容と暮らしの話題を担当。メーカーの公式発表、商品成分の公表資料、専門家の監修記事をもとに事実を整理します。

おすすめの関連記事