Diffutoon: High-Resolution Editable Toon Shading via Diffusion Models
Zhongjie Duan, Chengyu Wang, Cen Chen, Weining Qian, Jun Huang
TL;DR
Diffutoon presents a diffusion-model-based framework for high-resolution toon shading of photorealistic videos into anime style. It decomposes toon shading into four subproblems and introduces a dual-pipeline architecture: a main toon shading stream and an editing branch, enabling both high-quality rendering of long videos and prompt-driven content edits. The method leverages ControlNet signals for outlines and colors, AnimateDiff-based motion modules for temporal coherence, and a sliding-window latent-diffusion strategy with memory-efficient flash attention to achieve resolutions up to $1536\times1536$. Experimental results on a 10-video dataset, including human evaluations, show clear improvements over baselines in aesthetics and consistency, with qualitative case studies and ablations supporting design choices. The work provides code and example videos on Github, highlighting practical impact for high-fidelity NPR rendering and controllable video editing.
Abstract
Toon shading is a type of non-photorealistic rendering task of animation. Its primary purpose is to render objects with a flat and stylized appearance. As diffusion models have ascended to the forefront of image synthesis methodologies, this paper delves into an innovative form of toon shading based on diffusion models, aiming to directly render photorealistic videos into anime styles. In video stylization, extant methods encounter persistent challenges, notably in maintaining consistency and achieving high visual quality. In this paper, we model the toon shading problem as four subproblems: stylization, consistency enhancement, structure guidance, and colorization. To address the challenges in video stylization, we propose an effective toon shading approach called \textit{Diffutoon}. Diffutoon is capable of rendering remarkably detailed, high-resolution, and extended-duration videos in anime style. It can also edit the content according to prompts via an additional branch. The efficacy of Diffutoon is evaluated through quantitive metrics and human evaluation. Notably, Diffutoon surpasses both open-source and closed-source baseline approaches in our experiments. Our work is accompanied by the release of both the source code and example videos on Github (Project page: https://ecnu-cilab.github.io/DiffutoonProjectPage/).
