--- license: other license_name: minimax-h3-community-license-agreement license_link: LICENSE base_model: MiniMaxAI/MiniMax-H3 pipeline_tag: video-to-video tags: - lora - video-editing - video-inpainting - minimax-h3 - comfyui - reframe - reframevideo --- # ReFrameVideo H3 LoRA A LoRA for **MiniMax H3 (Ref2VA)** that turns a roughly edited video into a finished clip. **[ReFrameVideo](https://github.com/VoidEclipseAI/ReFrameVideo)** is an open-source personal project made up of this LoRA and a companion video editor. In the editor, the elements of a video become layers that you move, scale or delete as in Photoshop, or you change the aspect ratio, with reference images to control the final shot; this LoRA then lets H3 regenerate the whole clip and fill in the gaps the edit left. > Powered by MiniMax H3. This LoRA is a modification of MiniMax H3 and is distributed under the MiniMax H3 Community License Agreement (see [License](#license)). ## What it does ReFrameVideo prepares two inputs from your edit: - a **rough cut**: every subject is placed in its new position, and the areas left empty are painted flat **grey (RGB 128)**; - a **per-pixel redraw mask**: the empty areas plus a thin blending band. Without this LoRA, H3 tends to treat the grey areas as part of the picture and keeps or copies them. **The LoRA teaches H3 that grey 128 means "empty, fill me"**: it fills those areas with background or scene content that fits the surrounding shot, keeps the moved subjects, and blends their edges into their new surroundings. A first-frame reference image is optional. The LoRA works without one, but the background can sometimes drift during the clip; a clean first frame keeps it much more stable. ## Files | File | Description | |---|---| | `ReFrameVideo-H3-LoRA-v1.safetensors` | The LoRA (v1). Put it in `ComfyUI/models/loras/`. | | `LICENSE` | MiniMax H3 Community License Agreement (applies to this LoRA). | | `NOTICE` | Required notice for MiniMax H3 derivatives. | A mirror is on [ModelScope](https://modelscope.cn/models/VoidEclipseAI/ReFrameVideo-LoRA) (faster downloads in mainland China). ## Recommended setup | Setting | Value | |---|---| | Base model | `minimax_h3_ref2va_int8_convrot.safetensors` (MiniMax H3 Ref2VA) | | ReFrameVideo LoRA | `ReFrameVideo-H3-LoRA-v1.safetensors` @ **1.0** | | Speed-up LoRA | `pika_h3_flex_ref2va_v1_bf16.safetensors` @ **1.0** ([Pika H3 Flex](https://huggingface.co/Pika-Labs/Pika-H3-Flex); a ComfyUI copy is in [Comfy-Org/MiniMax-H3](https://huggingface.co/Comfy-Org/MiniMax-H3)) | | Steps | **6** (with the speed-up LoRA) | | Resolution | 768p (short side 768, e.g. 1344×768 for 16:9) | On an RTX 4090 a ~5 s clip takes roughly 4–5 minutes with these settings. ## How to use ### With ReFrameVideo (recommended) ReFrameVideo builds every input this LoRA expects: the rough cut, the pixel mask, the reference images and the prompt. It then queues the workflow in ComfyUI for you. 1. Install ReFrameVideo and its ComfyUI node pack ([installation guide](https://github.com/VoidEclipseAI/ReFrameVideo/blob/main/docs/安装.md)). 2. Download this LoRA into `ComfyUI/models/loras/`. 3. In ReFrameVideo's **Generate** panel, add the LoRA (and the speed-up LoRA) and set the steps. 4. Edit your shot and click **Generate video**. The [README](https://github.com/VoidEclipseAI/ReFrameVideo#readme) walks through a complete example with screenshots. ### In your own ComfyUI workflow The LoRA was trained on inputs prepared the same way ReFrameVideo prepares them, so results are best when you match that setup: - **Rough cut** as the noised base video: subjects in their new positions, empty areas exactly RGB 128. - **Redraw mask** converted to H3's latent grid with the `ReframeH3InpaintMask` node from ReFrameVideo's `ComfyUI-Reframe` node pack (store the mask losslessly, e.g. PNG-encoded `.mov`, so 255 stays 255). - **`