Spaces:
Running on Zero

File size: 3,103 Bytes
7485439
b41065f
 
 
7485439
 
b41065f
 
7485439
 
b41065f
 
 
 
 
 
 
 
 
 
7485439
 
b41065f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
title: Diffutoon-2
emoji: 🎞️
colorFrom: yellow
colorTo: gray
sdk: gradio
sdk_version: "6.30.0"
python_version: "3.12"
app_file: app.py
pinned: false
license: other
license_name: minimax-h3-community-license
license_link: LICENSE
short_description: Turn real videos into anime-style cartoons
models:
  - ml-resources/Diffutoon-2
  - MiniMaxAI/MiniMax-H3
  - lightx2v/Minimax-h3-Turbo
  - mrfakename/diffutoon-2-assets
  - lllyasviel/Annotators
---

**Powered by MiniMax H3.**

Video-to-anime with [Diffutoon-2](https://huggingface.co/ml-resources/Diffutoon-2). The input is reduced to a line-art
track and a blurred colour track, and two ControlNets on the [MiniMax H3](https://huggingface.co/MiniMaxAI/MiniMax-H3)
FL2VA video model redraw it as a cel-shaded cartoon. Long videos are made in overlapping windows, and the input's
soundtrack is put back on the result. Outputs are AI-generated.

## How it runs

- Inference code: [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio) at commit `59e064d`, the official
  Diffutoon-2 implementation, with its long-video windowing (5 overlapping frames, cross-faded).
- 4 steps with the [lightx2v Turbo](https://huggingface.co/lightx2v/Minimax-h3-Turbo) LoRA
  (`minimax_h3_fl2v_turbo_4step_v1.0_768p_bf16`), merged into the transformer.
- The transformer and both ControlNets are weight-only int8
  ([mrfakename/diffutoon-2-assets](https://huggingface.co/mrfakename/diffutoon-2-assets)). The VAEs come unchanged from
  MiniMax H3.
- The text encoder isn't loaded: the style presets use prompt embeddings computed once with it and stored in the assets
  repo.
- Every model repo is pinned to a commit.

## Measurements (one H200, 96 GB memory cap)

| | bf16 + LoRA | This Space (int8) |
|---|---|---|
| Weights in GPU memory | 96 GB | 52 GB |
| Peak memory, 480p | 106 GB | 62 GB |
| Peak memory, 720p (124-frame windows) | | 65 GB |
| Time for a 90-frame 896x480 window | 18.9 s | 18.5 s |

- Compared with the bf16 model on the cat-girl demo clip (same seed), the int8 output scores 21.8 dB PSNR and
  0.84 SSIM, and looks the same by eye. As a yardstick, two bf16 runs with different seeds score 12.4 dB and 0.38.
- Speed is about 6 s of GPU time per output second at 480p and about 13 s at 720p, including line art.
- Videos are made in 124-frame windows (about 5 s), which was the fastest per frame. 328-frame windows ran out of
  memory at 720p under the 96 GB cap.
- Lengths are capped at 30 s (480p) and 15 s (720p), so a call ends within its GPU time limit.

## Licence and attribution

Diffutoon-2 by DiffSynth-Studio / ModelScope, Apache-2.0. MiniMax H3 by MiniMax.

MiniMax H3 is licensed under the MiniMax H3 Community License Agreement, Copyright © 2026 MiniMax. All Rights Reserved.
See [LICENSE](LICENSE), including the Acceptable Use Policy in Exhibit A, and [NOTICE](NOTICE). The int8 weights and
prompt embeddings are modified versions of the MiniMax H3 and Diffutoon-2 files; the assets repo describes the changes.
Only upload footage you own or have the rights to. The example clips come from the Diffutoon-2 demo.