ToonCrafterOptions
Options & Configuration · AiDotNet.Video.Options
Configuration options for ToonCrafter cartoon/anime video frame interpolation.
Inheritance: ModelOptions → NeuralNetworkOptions → ToonCrafterOptions
For Beginners
Regular frame interpolation is designed for real-world videos and fails on cartoons/anime because animated characters move in exaggerated, non-realistic ways. ToonCrafter is specially trained on animation content to produce natural-looking in-between frames for cartoons.
How It Works
ToonCrafter (2024) specializes in cartoon and anime frame interpolation:
- Cartoon-aware diffusion: adapts a video diffusion model specifically for cartoon/anime
content, where motion is typically non-physical (e.g., smear frames, anticipation poses) and cannot be captured by standard optical flow methods
- Style-preserving generation: uses CLIP-based style conditioning to maintain consistent
art style, line weight, and coloring throughout the interpolated sequence
- Large motion handling: the diffusion backbone can generate plausible in-betweens even
for extreme pose changes common in hand-drawn animation
- Sketch-guided control: optional sketch/line art conditioning for artist control over
intermediate poses and motion trajectories
Constructors
| Constructor | Summary |
|---|---|
ToonCrafterOptions() |
Initializes a new instance with default values. |
ToonCrafterOptions(ToonCrafterOptions other) |
Initializes a new instance by copying from another instance. |
Properties
| Property | Summary |
|---|---|
OnnxModelOptions OnnxOptions { get; set; } |
Gets or sets the ONNX runtime options. |
VideoModelVariant Variant { get; set; } |
Gets or sets the model variant. |
double DropoutRate { get; set; } |
Gets or sets the dropout rate. |
double GuidanceScale { get; set; } |
Gets or sets the guidance scale for classifier-free guidance. |
double LearningRate { get; set; } |
Gets or sets the learning rate. |
int NumDiffusionSteps { get; set; } |
Gets or sets the number of diffusion denoising steps. |
int NumFeatures { get; set; } |
Gets or sets the number of feature channels. |
int NumHeads { get; set; } |
Gets or sets the number of attention heads. |
int NumResBlocks { get; set; } |
Gets or sets the number of U-Net residual blocks per level. |
string ModelPath { get; set; } |
Gets or sets the path to the ONNX model file. |