← 开源
jianzongwu

DiffSensei

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

ApplicationsContent creationPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
925
Star
102
Fork
+0
本周
1
贡献者
创建于 2024-12-03 · 更新于 2026-10-15 · 今日第 12601 名
主要开发者
jianzongwu

jianzongwu/DiffSensei 排名第 12,601,有 925 个星标。

同类别比较

jianzongwu/DiffSensei 排名第 12,601,此处有 8 个同类条目;hzy46/fast-neural-style-tensorflow 排名第 12,600。

同类别比较
名称排名指标
nihui/realcugan-ncnn-vulkan12,583
语言:
C
星标数:
929
分叉数:
58
简介:
real-cugan converter ncnn version, runs fast on intel / amd / nvidia / apple-silicon GPU with vulkan
umputun/revdiff12,585
语言:
Go
星标数:
929
分叉数:
96
简介:
TUI for reviewing diffs, files, and documents with inline annotations
eclaire-labs/eclaire12,598
语言:
TypeScript
星标数:
925
分叉数:
99
简介:
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
语言:
Python
星标数:
925
分叉数:
357
简介:
A tensorflow implementation for fast neural style!
miantiao-me/ssh-ai-chat12,609
语言:
TypeScript
星标数:
923
分叉数:
69
简介:
Chat with AI over SSH.
Dicklesworthstone/claude_code_agent_farm12,611
语言:
Shell
星标数:
922
分叉数:
108
简介:
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
星标数:
922
分叉数:
118
简介:
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
语言:
Kotlin
星标数:
922
分叉数:
45
简介:
Identify bird sounds in real time with this Android version of BirdNET. Bird sound recognition for more than 6,000 species worldwide.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Content creation
关键词Image production
星标数925
分叉数102
贡献者1
创建日期2024-12-03
更新日期2026-10-15
1 天星标数0
7 天星标数0
排名12,601
上次排名12,518
排名变化-83
7 天星标排名13,504
上次 7 天星标排名10,483
7 天星标排名变化-3,021
总星标排名11,816
上次总星标排名11,797
总星标排名变化-19
国家China
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 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.

常见问题

记录了多少星标和分叉?

jianzongwu/DiffSensei 有 925 个星标和 102 个分叉。

仓库排名是多少?

jianzongwu/DiffSensei 排名第 12,601。

记录的语言和类别是什么?

jianzongwu/DiffSensei 有 925 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

jianzongwu/DiffSensei 与 hzy46/fast-neural-style-tensorflow 比较,后者排名第 12,600,有 925 个星标。

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},
}

排名相邻
同类项目