Categories: Fun

alibaba-pai/MiniMax-H3-Fun-Controlnet-Union-2.0 · Hugging Face

This web page was created programmatically, to learn the article in its authentic location you’ll be able to go to the hyperlink bellow:
https://huggingface.co/alibaba-pai/MiniMax-H3-Fun-Controlnet-Union-2.0
and if you wish to take away this text from our web site please contact us




What’s new in 2.0

MiniMax-H3-Fun-Controlnet-Union (v1) MiniMax-H3-Fun-Controlnet-Union-2.0 (this mannequin)
Control situations 5 — Canny, Depth, HED, MLSD, Pose 8 — + Scribble, Layout, Gray
Control department depth 5 management blocks (layers 0, 10, 20, 30, 40) 10 management blocks (layers 0, 5, 10, …, 45) — skips injected each 5 of the 50 transformer blocks
Inpaint masked-pixel recipe pre_norm (holes ≈ −2 in VAE enter house, excessive darkish) post_norm (holes at 0, mid-gray, following Wan 2.1) — cleaner inpaint mixing
Checkpoint contents control_proj_in + 5 control_blocks (~6.8 GB) control_proj_in + 10 control_blocks (~13.5 GB)
Required config minimax_h3_control.yaml minimax_h3_control_inpaint_post_norm.yaml

Everything else is carried over from v1: control_in_dim = 49 (latent + masked latent + masks, so the identical department does management and inpaint), control_apply_audio = false, guidance-distilled (guidance_scale = 1.0), and the identical zero-gated skip-add into the primary department.

Loading a v1 config towards this checkpoint is a silent failure. With minimax_h3_control.yaml (5 blocks) the mannequin builds solely half the management department; load_state_dict(strict=False) drops control_blocks.5~9 as surprising keys and misplaces the remainder, producing unsuitable outputs. Always use minimax_h3_control_inpaint_post_norm.yaml.



Model Card

Name Description
MiniMax-H3-Fun-Controlnet-Union-2.0.safetensors ControlInternet-Union-2.0 department weights for MiniMax-H3. Holds solely the management department (control_proj_in plus 10 control_blocks, about 13.5 GB) and is loaded on high of the bottom MiniMax-H3 transformer. One checkpoint helps 8 management situations (Canny, Depth, HED, MLSD, Pose, Scribble, Layout, Gray) and video inpainting.



Model Features

  • Union management over 8 situations: one checkpoint handles Canny, Depth, HED, MLSD, Pose, Scribble, Layout and Gray management movies for video-to-video technology — no per-condition checkpoint switching.
  • Denser management injection: the management department attaches to 10 of the 50 transformer blocks (layers 0, 5, 10, 15, 20, 25, 30, 35, 40, 45); each management skip is added to the primary department via a zero-gated projection. This is roughly 2× the injection factors of v1 and offers tighter structural adherence.
  • Guidance-distilled: run with guidance_scale = 1.0, one ahead cross per step, no classifier-free steering wanted.
  • Inpainting is supported, with the post_norm recipe: the management enter is widened to control_in_dim = 49 (latent + masked latent + masks channels). Unlike v1, the masked pixels are zeroed after the ImageNet normalization (holes sit at 0 / mid-gray) fairly than earlier than it (holes landed close to −2 / excessive darkish), which improves how crammed areas mix with stored areas. Use examples/minimax_h3_fun/predict_v2v_control_inpaint.py.
  • control_context_scale scales each management skip earlier than it’s added to the primary department: 1.0 provides the strongest management (used for all outcomes beneath), values beneath 1.0 weaken the steering of the management video, 0.0 switches the management department off.
  • The technology follows the management video: the body depend snaps right down to the biggest 17 * n + 5 the video VAE can decode (period capped at 15 seconds), the canvas retains the management video’s personal facet ratio on the top * width pixel finances (each multiples of 32), at a hard and fast 24 fps.
  • Detailed prompts give higher stability; we advocate describing the scene, the topic and the digital camera within the immediate.



Supported management situations

Condition Control sign New in 2.0?
Canny Canny edge map
Depth Monocular depth map
HED HED edge detection
MLSD Line-segment detection
Pose DWPose skeleton
Scribble Free-hand / sketch traces
Layout Bounding-box format
Gray Grayscale (luminance) video

The Layout management movies comply with the format technology recipe of Wan2.1-VACE: per-subject bounding containers (detected/tracked or given straight) are rendered as color-coded containers on a white background, producing an abnormal RGB video that situations the mannequin. You can reuse the VACE-Annotators preprocessing instruments (e.g. vace_preproccess.py --task layout_track ...) to provide format movies from a reference video or a pair of bboxes.



Results

All samples beneath are generated with num_inference_steps = 40, guidance_scale = 1.0, control_context_scale = 1.00, seed 43, canvas mode management at a 704×1280 pixel finances, 24 fps. In every pair the highest row is the management video, the underside row is the output.

Canny Depth HED MLSD
Pose Scribble ✨ Layout ✨ Gray ✨



Inpainting (post_norm)

A masked area of the supply video is re-drawn from the immediate whereas the remainder of the body is preserved. The masks video is white the place the content material ought to be re-generated and black the place it ought to be stored.

Source video Mask Inpaint output



Inference

Go to the VideoX-Fun repository for extra particulars.

Please clone the VideoX-Fun repository and create the required directories:


git clone 


cd VideoX-Fun


mkdir -p fashions/Diffusion_Transformer

Then obtain the bottom MiniMax-H3 mannequin and this checkpoint into fashions/Diffusion_Transformer.

📦 fashions/
├──  Diffusion_Transformer/
│   ├── 📂 MiniMax-H3/
│   └──  MiniMax-H3-Fun-Controlnet-Union-2.0/
│       └──  MiniMax-H3-Fun-Controlnet-Union-2.0.safetensors

Then edit the settings on the high of examples/minimax_h3_fun/predict_v2v_control.py (or predict_v2v_control_inpaint.py for inpainting) and run it.

model_name          = "models/Diffusion_Transformer/MiniMax-H3"
config_path         = "config/minimax_h3/minimax_h3_control_inpaint_post_norm.yaml"
transformer_path    = "models/Diffusion_Transformer/MiniMax-H3-Fun-Controlnet-Union-2.0/MiniMax-H3-Fun-Controlnet-Union-2.0.safetensors"
control_video       = "your_control_video.mp4"
immediate              = "your prompt"
python examples/minimax_h3_fun/predict_v2v_control.py

Notes:

  • config_path should be config/minimax_h3/minimax_h3_control_inpaint_post_norm.yaml. It builds the management department precisely because the checkpoint expects (control_blocks_places: [0, 5, 10, 15, 20, 25, 30, 35, 40, 45], control_in_dim: 49, control_apply_audio: false, inpaint_masked_pixel_mode: post_norm); the v1 minimax_h3_control.yaml (5 blocks) will silently drop half the management weights.
  • For pure management (no inpaint enter) the pipeline zero-pads the masks channels, so this inpaint checkpoint nonetheless runs plain Canny/Depth/… management appropriately.
  • The checkpoint is guidance-distilled: hold guidance_scale = 1.0; a worth above 1 applies steering twice and degrades the output.
  • The management checkpoint carries solely the management department; the bottom MiniMax-H3 weights should be current in model_name.
  • For the Layout situation, generate the management video with the Wan2.1-VACE format pipeline (see Supported control conditions); different control-video codecs are unchanged from v1.
  • Memory: the transformer (about 62 GB) plus the Qwen3-VL textual content encoder (about 62 GB) don’t match one 80 GB GPU totally loaded; use model_group_offload (quickest) or model_cpu_offload_and_qfloat8 on a single 80 GB GPU.



License

This mannequin is a by-product of MiniMax-H3 and is launched beneath the MiniMax H3 Community License Agreement. Please learn the license rigorously, particularly the territorial restrictions and the Acceptable Use Policy, earlier than use.


This web page was created programmatically, to learn the article in its authentic location you’ll be able to go to the hyperlink bellow:
https://huggingface.co/alibaba-pai/MiniMax-H3-Fun-Controlnet-Union-2.0
and if you wish to take away this text from our web site please contact us

fooshya

Share
Published by
fooshya

Recent Posts

Discovery Cube OC’s ‘Pumpkin Palooza’ has dancing, tunes, sweet, and science enjoyable – NBC Los Angeles

This web page was created programmatically, to learn the article in its unique location you'll…

21 seconds ago

Man challenges 150-year-old liquor ban, hopes Supreme Court takes his case

This web page was created programmatically, to learn the article in its unique location you…

4 minutes ago

Jordan Rossi: “Joy Is Political in Its Own Way” — Blind Journal

This web page was created programmatically, to learn the article in its unique location you…

7 minutes ago

SEC Releases New 7 Day Swimming & Diving Conference Championship Format

This web page was created programmatically, to learn the article in its unique location you…

12 minutes ago

Mustangs eye ninth consecutive win as they journey to Lubbock Christian

This web page was created programmatically, to learn the article in its authentic location you…

15 minutes ago