MCPcopy Index your code
hub / github.com/bilibili/Index-anisora

github.com/bilibili/Index-anisora @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
23,277 symbols 78,540 edges 2,133 files 4,056 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

   🖥️  <a href="https://github.com/bilibili/Index-anisora/tree/main">GitHub</a> &nbsp&nbsp  |  &nbsp&nbsp🤗 <a href=https://huggingface.co/IndexTeam/Index-anisora>Hugging Face</a>&nbsp&nbsp |  &nbsp&nbsp🤖 <a href=https://www.modelscope.cn/organization/bilibili-index>Model Scope</a>&nbsp&nbsp | 📑 <a href='http://arxiv.org/abs/2412.10255'><img src='https://img.shields.io/badge/ArXiv-2412.10255-red'></a> &nbsp&nbsp |  📑 <a href='http://arxiv.org/abs/2504.10044'><img src='https://img.shields.io/badge/ArXiv-2504.10044-red'></a> &nbsp&nbsp

English | 中文简体


Index-AniSora:The Ultimate Open-Source Anime Video Generation Model

This Project presenting Bilibili's gift to the anime world - Index-AniSora, the most powerful open-source animated video generation model. It enables one-click creation of video shots across diverse anime styles including series episodes, Chinese original animations, manga adaptations, VTuber content, anime PVs, mad-style parodies(鬼畜动画), and more! Powered by our IJCAI'25-accepted work AniSora: Exploring the Frontiers of Animation Video Generation in the Sora Era

📣 Updates

  • 2025/10/31 🔥 we have released the anisora-anymask model weights, supporting image-to-video generation with temporal and spatial masks. Huggingface Model Scope
  • 2025/09/25 🔥The 12GB VRAM available version of V3.1 has been uploaded to ModelScope. Model Scope Download
  • 2025/09/23 🔥We have released V3.2 weights, which is trained on the stronger wan2.2 model and can reduce the number of inference steps to 8. Just like version 3.1, it has added arbitrary-frame inference and character 3D video generation. Huggingface Model Scope
  • 2025/09/04 🔥We have released V3.1 weights, which provide enhanced motion range capabilities. For optimal results, we strongly recommend using the v3.1 weights with a motion score setting of 2.0–4.0. Huggingface Model Scope
  • 2025/08/27 🔥🔥Anisora V3 weights are now licensed under Apache 2.0 and publicly available for download on ModelScope and Hugging Face. The new version supports arbitrary-frame inference, character 3D video generation, Video style transfer, Multimodal Guidance, Ultra-Low-Resolution Video Super-Resolution, delivering greater overall dynamics and more natural motion. The V3 model can generate 5 sec 360p video shot within 8 sec.
  • 2025/08/27 🔥🔥We have submitted our work on agent-related research AniMe to arXiv. Stay tuned for further updates!
  • 2025/07/11 🔥Anisora V2 weights are now licensed under Apache 2.0 and publicly available for download on ModelScope and Hugging Face.
  • 2025/07/10 Fix Anisora V1 inference bug, which may case video artifacts.
  • 2025/07/02 🔥🔥AniSora V3 Preview is updated, we will share our new progress in Siggraph Day 07/11. Join Us!
  • 2025/05/12 🔥🔥Everything we build is open-source. Check Out Now!!!
  • 2025/05/10 🔥Our paper is accepted by IJCAI25. Camera Ready Version is updated.
  • 2024/12/19 We submitted our paper on arXiv and released our project with evaluation benchmark.

📣 Join Us

This github project is the only official homepage of the Anisora project. Any websites not listed on the official homepage are not affiliated with the project team.

Access benchmark or all videos generated by AniSoraV1 and AniSoraV2 on the benchmark, fill the form and send PDF format to jiangyudong@bilibili.com or yangsiqian@bilibili.com or xubaohan@bilibili.com (links provided after agreeing with Bilibili). The signature must be handwritten and include the name of the affiliated company or academic institution. Join us! Send your CV to jiangyudong@bilibili.com If you want to learn more about AniSora, join the group chat.

Project Guide

AniMe

Long Animation Demos Powered by AniMe and AniSora

Fiction to Video 2D Cartoon Adaptation 3D Cartoon Adaptation Comic to Video
Fiction to Video 2D Cartoon Adaptation 3D Cartoon Adaptation Comic to Video

AniSoraV3

Find in 📁 anisoraV3

<video src="https://github.com/user-attachments/assets/a207d43e-26f6-445b-883e-9b28c129607f" controls width="30%" poster=""></video>
  • Character 3D video generation

Given a front-facing character illustration, generate a 360-degree rotation video to achieve multi-angle consistent visual modeling of the character. This assists in maintaining consistency across different shot angles and supports 3D modeling, among other applications.

Demo1 Demo2 Demo3 Demo4 Demo5
  • Arbitrary-frame inference
first frame mid frame last frame Video
Demo
Demo
  • Video style transfer

By leveraging image generation from the first and last frames combined with line art-based video generation, original videos can be transformed into videos of any desired style.

origin frame transferred frame video input video transfer
  • Multimodal Guidance

Pose, depth, line art, and audio guidance: Enable precise control over generated video motions through multiple guidance mechanisms.

input prompt Video
The boy in red and the girl in red are fencing in the scene.
A worn-out red robot flings its arm away, only to have it fly back and reassemble with a new arm holding a sword.
Audio + img -
  • Ultra-Low-Resolution Video Super-Resolution

Supports upscaling from 90p to 720p/1080p, enabling the generation of videos with richer details using fewer sampling steps.

generated low-resolution video high-resolution video(1080p) GT

AniSoraV2.0

Find in 📁 anisoraV2_gpu, anisoraV2_npu

Powered by the enhanced Wan2.1-14B foundation model for superior stability. - Distillation-accelerated inference without quality compromise, faster and cheaper - Full training/inference code release - Native support Huawei Ascend 910B NPUs (entirely trained on domestic chips) 📁 anisoraV2_npu. - High quality video shots generation, covers 90% of application scenarios

AniSoraV1.0

Find in 📁 anisoraV1_infer

<video src="https://github.com/user-attachments/assets/4351fc5e-f7fd-456b-807e-82fdcb321de2" controls width="30%" poster=""></video>

Trained on the CogVideoX-5B foundation model, with full training and inference code released. - Localized region guidance for video control - Temporal guidance (first/last frame guidance, keyframe interpolation, multi-frame guidance) - Full training and inference code release. Find in 📁 anisoraV1_train_npu - Cost-effective deployment on RTX 4090 - Covers 80% of application scenarios

Ecosystem Tools

Find in 📁 data_pipeline

End-to-end dataset pipeline for rapid training data expansion. - Animate data cleaning pipeline.

Anime-optimized Benchmark System

Find in 📁 reward

Specialized evaluation models and scoring algorithms for anime video generation, includes reward models suitable for reinforcement learning and benchmarking. - Tailored evaluation framework for animation generation - Standard test dataset aligned with ACG aesthetics - Human Preference Alignment

The benchmark dataset contains 948 animation video clips are collected and labeled with different actions. Each label contains 10-30 video clips. The corresponding text prompt is generated by Qwen-VL2 at first, then is corrected manually to guarantee the text-video alignment.

AniSoraV1.0_RL

Find in 📁 anisora_rl

The first RLHF framework for anime video generation. - RL-optimized AniSoraV1.0 for enhanced anime-style output - Methodology detailed in our preprint: Aligning Anime Video Generation with Human Feedback


💡 Abstract

Animation has gained significant interest in the recent film and TV industry. Despite the success of advanced video generation models like Sora, Kling, and CogVideoX in generating natural videos, they lack the same effectiveness in handling animation videos. Evaluating animation video generation is also a great challenge due to its unique artist styles, violating the laws of physics and exaggerated motions. In this paper, we present a comprehensive system, AniSora, designed for animation video generation, which includes a data processing pipeline, a controllable generation model, and an evaluation dataset. Supported by the data processing pipeline with over 10M high-quality data, the generation model incorporates a spatiotemporal mask module to facilitate key animation production functions such as image-to-video generation, frame interpolation, and localized image-guided animation. We also collect an evaluation benchmark of 948 various animation videos, the evaluation on VBench and human double-blind test demonstrates consistency in character and motion, achieving state-of-the-art results in animation video generation.

🖥️ Method

The overview of Index-anisora is shown as follows.

Features:

  1. We develop a comprehensive video processing system that significantly enhances preprocessing for video generation.

  2. We propose a unified framework designed for animation video generation with a spatiotemporal mask module, enabling tasks such as image-to-video generation, frame interpolation, and localized image-guided animation.

  3. We release a benchmark dataset specifically for evaluating animation video generation.

📑 Evaluation

Evaluation results on Vbench:

Method Motion Smoothness Motion Score Aesthetic Quality Imaging Quality I2V Subject I2V Background Overall Consistency Subject Consistency
Opensora-Plan(V1.3) 99.13 76.45 53.21 65.11 93.53 94.71 21.67 88.86
Opensora(V1.2) 98.78 73.62 54.30 68.44 93.15 91.09 22.68 87.71
Vidu 97.71 77.51 53.68 69.23 92.25 93.06 20.87 88.27
Covideo(5B-V1) 97.67 71.47 54.87 68.16 90.68 91.79 21.87 90.29
MiniMax 99.20 66.53 54.56 71.67 95.95 95.42 21.82 93.62
AniSora 99.34 45.59 54.31 70.58 97.52 95.04 21.15 96.99
AniSora-K

Extension points exported contracts — how you extend this code

Logger (Interface)
(no doc) [1 implementers]
reward/character/samurai/sam2/demo/frontend/src/common/logger/Logger.ts
ITracker (Interface)
(no doc) [1 implementers]
reward/character/samurai/sam2/demo/frontend/src/common/tracker/Tracker.ts
MP4MediaTrackEdit (Interface)
(no doc)
reward/character/samurai/sam2/demo/frontend/src/types/mp4box/index.d.ts
MP4MediaTrack (Interface)
(no doc)
reward/character/samurai/sam2/demo/frontend/src/types/mp4box/index.d.ts
MP4VideoData (Interface)
(no doc)
reward/character/samurai/sam2/demo/frontend/src/types/mp4box/index.d.ts

Core symbols most depended-on inside this repo

cat
called by 2082
reward/character/samurai/sam2/sam2/utils/amg.py
print
called by 1436
anisoraV1_infer/sat/examples/mae/util/misc.py
append
called by 1329
anisoraV1_infer/sat/tokenization/glm/tokenization.py
size
called by 1298
anisoraV1_infer/process_group_mesh.py
to
called by 1100
anisoraV2_gpu/fastvideo/distill/solver.py
to
called by 966
anisoraV1_infer/fastercache/modules/attn.py
split
called by 703
anisoraV1_infer/fastercache/modules/attn.py
print
called by 569
reward/character/BLIP/utils.py

Shape

Method 13,242
Function 5,609
Class 4,356
Interface 34
Route 34
Enum 2

Languages

Python97%
TypeScript3%
C++1%

Modules by API surface

anisoraV1_infer/videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py131 symbols
anisoraV1_infer/cogvideox/embeddings.py119 symbols
anisora_rl/sat/sgm/modules/autoencoding/magvit2_pytorch.py114 symbols
anisoraV1_train_npu/sgm/modules/autoencoding/magvit2_pytorch.py114 symbols
anisoraV1_train_npu/sat/sgm/modules/autoencoding/magvit2_pytorch.py114 symbols
anisoraV1_train_gpu/sgm/modules/autoencoding/magvit2_pytorch.py114 symbols
anisoraV1_train_gpu/sat/sgm/modules/autoencoding/magvit2_pytorch.py114 symbols
anisoraV1_infer/fastercache/models/cogvideox/sgm/modules/autoencoding/magvit2_pytorch.py114 symbols
anisoraV1_infer/fastercache/models/vchitect/modeling_t5.py96 symbols
reward/mantis/models/idefics2/modeling_idefics2.py95 symbols
anisoraV1_infer/fastercache/models/vchitect/attention.py89 symbols
anisoraV1_infer/videosys/models/transformers/open_sora_plan_v110_transformer_3d.py88 symbols

For agents

$ claude mcp add Index-anisora \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page