Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- Diffutoon-2
|
| 5 |
+
- MiniMax-H3
|
| 6 |
+
- ControlNet
|
| 7 |
+
- anime
|
| 8 |
+
- video stylization
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
> Mirror of [DiffSynth-Studio/Diffutoon-2](https://modelscope.ai/models/DiffSynth-Studio/Diffutoon-2) from ModelScope. All credit to the original authors (DiffSynth-Studio / ModelScope). Not an official release from them. License unchanged (Apache-2.0); a copy of the license text is included as `LICENSE`. All model and asset files are unmodified; only this README's metadata header was adapted for Hugging Face and this note added.
|
| 12 |
+
|
| 13 |
+
# Diffutoon-2
|
| 14 |
+
|
| 15 |
+
[](https://github.com/modelscope/DiffSynth-Studio) [](https://modelscope.cn/models/DiffSynth-Studio/Diffutoon-2) [](http://arxiv.org/abs/2611.30945)
|
| 16 |
+
|
| 17 |
+
<video src="assets/cover.mp4" controls autoplay muted loop playsinline width="100%"></video>
|
| 18 |
+
|
| 19 |
+
## Introduction
|
| 20 |
+
|
| 21 |
+
**Diffutoon-2** transforms real-world videos into anime-style cartoons, building upon [MiniMax-H3](https://modelscope.cn/models/MiniMax/MiniMax-H3).
|
| 22 |
+
|
| 23 |
+
The method employs **two ControlNet branches**:
|
| 24 |
+
|
| 25 |
+
- **Line-art module**: preserves the structural layout and outlines of the source video.
|
| 26 |
+
- **Color module**: transfers color and lighting cues from a Gaussian-blurred copy of the source video.
|
| 27 |
+
|
| 28 |
+
Together, these branches keep the motion and layout consistent with the input, while the base video model renders the cel-shaded anime appearance. For long clips, inference adopts a sliding-window strategy with a **clean latent pin** (5 frames / 2 latents), which ensures continuous transitions across window boundaries without relying on FL2VA keyframes.
|
| 29 |
+
|
| 30 |
+
## Showcase
|
| 31 |
+
|
| 32 |
+
### People
|
| 33 |
+
|
| 34 |
+
<table width="100%">
|
| 35 |
+
<tr><th width="50%">Input</th><th width="50%">Output</th></tr>
|
| 36 |
+
<tr>
|
| 37 |
+
<td width="50%" valign="top"><video src="./assets/demo_people/cat-girl/input.mp4" controls style="width:100%;max-width:100%;"></video></td>
|
| 38 |
+
<td width="50%" valign="top"><video src="./assets/demo_people/cat-girl/output.mp4" controls style="width:100%;max-width:100%;"></video></td>
|
| 39 |
+
</tr>
|
| 40 |
+
<tr>
|
| 41 |
+
<td width="50%" valign="top"><video src="./assets/demo_people/stroller/input.mp4" controls style="width:100%;max-width:100%;"></video></td>
|
| 42 |
+
<td width="50%" valign="top"><video src="./assets/demo_people/stroller/output.mp4" controls style="width:100%;max-width:100%;"></video></td>
|
| 43 |
+
</tr>
|
| 44 |
+
</table>
|
| 45 |
+
|
| 46 |
+
### Animals
|
| 47 |
+
|
| 48 |
+
<table width="100%">
|
| 49 |
+
<tr><th width="50%">Input</th><th width="50%">Output</th></tr>
|
| 50 |
+
<tr>
|
| 51 |
+
<td width="50%" valign="top"><video src="./assets/demo_animals/koala/input.mp4" controls style="width:100%;max-width:100%;"></video></td>
|
| 52 |
+
<td width="50%" valign="top"><video src="./assets/demo_animals/koala/output.mp4" controls style="width:100%;max-width:100%;"></video></td>
|
| 53 |
+
</tr>
|
| 54 |
+
<tr>
|
| 55 |
+
<td width="50%" valign="top"><video src="./assets/demo_animals/libby/input.mp4" controls style="width:100%;max-width:100%;"></video></td>
|
| 56 |
+
<td width="50%" valign="top"><video src="./assets/demo_animals/libby/output.mp4" controls style="width:100%;max-width:100%;"></video></td>
|
| 57 |
+
</tr>
|
| 58 |
+
</table>
|
| 59 |
+
|
| 60 |
+
## Model files
|
| 61 |
+
|
| 62 |
+
| File | Role |
|
| 63 |
+
|-|-|
|
| 64 |
+
| `line-art_module.safetensors` | Line-art ControlNet for structural guidance |
|
| 65 |
+
| `color_module.safetensors` | Color ControlNet for Gaussian-blur-based color guidance |
|
| 66 |
+
|
| 67 |
+
The following components are also required at runtime:
|
| 68 |
+
|
| 69 |
+
- MiniMax-H3 FL2VA (text encoder, DiT, video/audio VAE, and processor)
|
| 70 |
+
- Turbo LoRA: `lightx2v/Minimax-h3-Turbo` (`minimax_h3_fl2v_turbo_4step_v1.0_768p_bf16.safetensors`)
|
| 71 |
+
|
| 72 |
+
## Inference code
|
| 73 |
+
|
| 74 |
+
Install [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio) from a branch or pull request that includes Diffutoon-2 support:
|
| 75 |
+
|
| 76 |
+
```shell
|
| 77 |
+
git clone https://github.com/modelscope/DiffSynth-Studio.git
|
| 78 |
+
cd DiffSynth-Studio
|
| 79 |
+
pip install -e .
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
Run the official example:
|
| 83 |
+
|
| 84 |
+
```shell
|
| 85 |
+
python examples/minimax_h3/model_inference/MiniMax-H3-Diffutoon-2.py
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
For environments with limited VRAM, run:
|
| 89 |
+
|
| 90 |
+
```shell
|
| 91 |
+
python examples/minimax_h3/model_inference_low_vram/MiniMax-H3-Diffutoon-2.py
|
| 92 |
+
```
|