← Open Source
jianzongwu

DiffSensei

Implementation of [CVPR 2025] "DiffSensei: Bridging Multi-Modal LLMs and Diffusion Models for Customized Manga Generation".

ApplicationsContent creationPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
925
Stars
102
Forks
+0
This week
1
Contributors
Created 2024-12-03 · Updated 2026-10-15 · #12601 today
Top developers
jianzongwu

jianzongwu/DiffSensei is ranked 12,601 with 925 stars.

Same-category comparison

jianzongwu/DiffSensei is ranked 12,601 among these 8 peers; hzy46/fast-neural-style-tensorflow is ranked 12,600.

Same-category comparison
NameRankMetrics
nihui/realcugan-ncnn-vulkan12,583
Language:
C
Stars:
929
Forks:
58
Description:
real-cugan converter ncnn version, runs fast on intel / amd / nvidia / apple-silicon GPU with vulkan.
umputun/revdiff12,585
Language:
Go
Stars:
929
Forks:
96
Description:
TUI for reviewing diffs, files, and documents with inline annotations.
eclaire-labs/eclaire12,598
Language:
TypeScript
Stars:
925
Forks:
99
Description:
Local-first, open-source AI assistant for your data. Unify tasks, notes, docs, photos, and bookmarks. Private, self-hosted, and extensible via APIs.
hzy46/fast-neural-style-tensorflow12,600
Language:
Python
Stars:
925
Forks:
357
Description:
A tensorflow implementation for fast neural style.
miantiao-me/ssh-ai-chat12,609
Language:
TypeScript
Stars:
923
Forks:
69
Description:
Chat with AI over SSH.
Dicklesworthstone/claude_code_agent_farm12,611
Language:
Shell
Stars:
922
Forks:
108
Description:
Orchestration framework for running 20+ Claude Code agents in parallel: automated bug fixing, best-practices sweeps, lock-based coordination, and real-time tmux monitoring.
conversationai/perspectiveapi12,612
Stars:
922
Forks:
118
Description:
Perspective is an API that uses machine learning models to score the perceived impact a comment might have on a conversation. See https://developers.perspectiveapi.com for more information.
woheller69/whoBIRD12,618
Language:
Kotlin
Stars:
922
Forks:
45
Description:
Identify bird sounds in real time with this Android version of BirdNET. Bird sound recognition for more than 6,000 species worldwide.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryApplications
SubcategoryContent creation
KeywordsImage production
Stars925
Forks102
Contributors1
Created date2024-12-03
Updated date2026-10-15
Stars in 1 day0
Stars in 7 days0
Rank12,601
Previous rank12,518
Rank change-83
7-day stars rank13,504
Previous 7-day stars rank10,483
7-day stars rank change-3,021
Total stars rank11,816
Previous total stars rank11,797
Total stars rank change-19
CountryChina
README summary

DiffSensei: Bridging Multi-Modal LLMs and Diffusion Models for Customized Manga Generation More demos are in our project page. A story about LeCun, Hinton, and Benjio winning the Novel Prize. 🚀 TL;DR DiffSensei can generate controllable black-and-white manga panels with flexible character adaptation. **Key Features:** 🌟 Varied-resolution manga panel generation (64-2048 edge size! ) 🖼️ One input character image, create various appearances ✨ Versatile applications: customized manga generation, real human manga creation 🎉 News [2025-2-5] The reference training code

is released (t2i + condition + mllm)! [2024-12-13] A new version of gradio demo without MLLM is released (Much fewer memory usage)! [2024-12-10] Checkpoint, dataset, and inference code are released! 🛠️ Quick Start Installation Model Download Download our DiffSensei model from huggingface and place it in the folder like this: If you plan not to use the MLLM component, you can download the model without the MLLM component and use the to produce your results. Inference with Gradio We

provide gradio demo for inferencing DiffSensei. We also offer a version without MLLM, designed for lower memory usage. If you choose this version, you can skip downloading the MLLM component in the checkpoint, significantly reducing memory consumption. (Can be run on a single 24GB 4090 GPU with batch-size=1 for small or medium panel sizes). While this version may have slightly reduced text compatibility, the overall quality remains largely unaffected. Try more prompts, characters, and random seeds, and download

your favored manga panels! 🤗 The MangaZero Dataset For license issues, we cannot directly share the images. Instead, we provide the manga image urls (in MangaDex) and annotations of our MangaZero dataset. Note that the released version of MangaZero is about 3/4 of the full dataset used for training. The missing images is because some urls are not available. For similar usage for manga data, we strongly encourage everyone who is interested to collect their dataset freely from MangaDex, following

the instruction of MangaDex API. Please download MangaZero from Huggingface. After downloading the annotation file, please place the annotation file in and run to download and organize the images. Reference Training Code We release the reference training code for t2i training, condition training, and MLLM training. This code is made publicly available to support future research efforts. However, please note that the code is still in the testing phase and cannot be guaranteed to run without adjustments. We recommend modifying

the code to suit your own dataset and specific requirements. Before training, please download the checkpoints from IP-Adaptor, SDXL, and SEED-X (For MLLM training only. ) The reference code for stage 1 (t2i training) is at . The reference code for stage 2 (condition training) is at The reference code for stage 3 (MLLM training) is at The config files in each script command contain the checkpoint paths.

Frequently asked questions

How many stars and forks are recorded?

jianzongwu/DiffSensei has 925 stars and 102 forks.

What is the repository rank?

jianzongwu/DiffSensei is ranked 12,601.

What language and category are recorded?

jianzongwu/DiffSensei has 925 stars, uses Python and belongs to Applications.

Which repository is closest in rank?

jianzongwu/DiffSensei is compared with hzy46/fast-neural-style-tensorflow, ranked 12,600 with 925 stars.

README

DiffSensei: Bridging Multi-Modal LLMs and Diffusion Models for Customized Manga Generation

More demos are in our project page.

A story about LeCun, Hinton, and Benjio winning the Novel Prize...

🚀 TL;DR

DiffSensei can generate controllable black-and-white manga panels with flexible character adaptation.

Key Features:

  • 🌟 Varied-resolution manga panel generation (64-2048 edge size!)
  • 🖼️ One input character image, create various appearances
  • ✨ Versatile applications: customized manga generation, real human manga creation

🎉 News

  • [2025-2-5] The reference training code is released (t2i + condition + mllm)!
  • [2024-12-13] A new version of gradio demo without MLLM is released (Much fewer memory usage)!
  • [2024-12-10] Checkpoint, dataset, and inference code are released!

🛠️ Quick Start

Installation

# Create a new environment with Conda
conda create -n diffsensei python=3.11
conda activate diffsensei
# Install Pytorch and Diffusers related packages
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
conda install -c conda-forge diffusers transformers accelerate
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu121
# Install other dependencies
pip install -r requirements.txt
# Third-party repo for running the gradio demo
pip install gradio-image-prompter

Model Download

Download our DiffSensei model from huggingface and place it in the checkpoints folder like this:

If you plan not to use the MLLM component, you can download the model without the MLLM component and use the gradio_wo_mllm.py to produce your results.

checkpoints
  |- diffsensei
    |- image_generator
      |- ...
    |- mllm
      |- ...

Inference with Gradio

We provide gradio demo for inferencing DiffSensei.

CUDA_VISIBLE_DEVICES=0 \
python -m scripts.demo.gradio \
  --config_path configs/model/diffsensei.yaml \
  --inference_config_path configs/inference/diffsensei.yaml \
  --ckpt_path checkpoints/diffsensei

We also offer a version without MLLM, designed for lower memory usage. If you choose this version, you can skip downloading the MLLM component in the checkpoint, significantly reducing memory consumption. (Can be run on a single 24GB 4090 GPU with batch-size=1 for small or medium panel sizes). While this version may have slightly reduced text compatibility, the overall quality remains largely unaffected.

CUDA_VISIBLE_DEVICES=0 \
python -m scripts.demo.gradio_wo_mllm \
  --config_path configs/model/diffsensei.yaml \
  --inference_config_path configs/inference/diffsensei.yaml \
  --ckpt_path checkpoints/diffsensei

Please be patient. Try more prompts, characters, and random seeds, and download your favored manga panels! 🤗

The MangaZero Dataset

For license issues, we cannot directly share the images. Instead, we provide the manga image urls (in MangaDex) and annotations of our MangaZero dataset. Note that the released version of MangaZero is about 3/4 of the full dataset used for training. The missing images is because some urls are not available. For similar usage for manga data, we strongly encourage everyone who is interested to collect their dataset freely from MangaDex, following the instruction of MangaDex API.

Please download MangaZero from Huggingface.

After downloading the annotation file, please place the annotation file in data/mangazero/annotations.json and run scripts/dataset/download_mangazero.py to download and organize the images.

python -m scripts.dataset.download_mangazero \
  --ann_path data/mangazero/annotations.json \
  --output_image_root data/mangazero/images

Reference Training Code

We release the reference training code for t2i training, condition training, and MLLM training. This code is made publicly available to support future research efforts. However, please note that the code is still in the testing phase and cannot be guaranteed to run without adjustments. We recommend modifying the code to suit your own dataset and specific requirements.

Before training, please download the checkpoints from IP-Adaptor, SDXL, and SEED-X (For MLLM training only.)

The reference code for stage 1 (t2i training) is at scripts/train/trian_t2i.py.

accelerate launch \
  --multi_gpu \
  -m scripts.train.train_t2i.yaml \
  --config_path configs/train/diffsensei/t2i.yaml \

The reference code for stage 2 (condition training) is at scripts/train/train.py

accelerate launch \
  --multi_gpu \
  -m scripts.train.train \
  --config_path configs/train/diffsensei/self_0.5.yaml

The reference code for stage 3 (MLLM training) is at scripts/train/train_mllm.py

accelerate launch \
  --multi_gpu \
  -m scripts.train.train_mllm \
  --config_path configs/train/diffsensei/mllm.yaml

The config files in each script command contain the checkpoint paths.

Citation

article{wu2024diffsensei,
  title={DiffSensei: Bridging Multi-Modal LLMs and Diffusion Models for Customized Manga Generation},
  author={Jianzong Wu, Chao Tang, Jingbo Wang, Yanhong Zeng, Xiangtai Li, and Yunhai Tong},
  journal={arXiv preprint arXiv:2412.07589},
  year={2024},
}

Nearby in the ranking
Similar items