Skip to content
프로젝트

소개

TheaterGen: Character Management with LLM for Consistent Multi-turn Image Generation

창작 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
0

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Theatergen: Character Management with LLM for Consistent Multi-turn Image Generation

[📄Paper]   [🚩Project Page]

Teaser figure

Model Architecture

Teaser figure

Introduction

We propose Theatergen, a tuning-free method for consistent multi-turn image generation. The key idea is to utilize LLM for character management with layout and id and customize each character to avoid attention leakage. We further propose the CMIGBench for evaluating the consistency in multi-turn image generation.

TODO

  • Deployment with GPT interface
  • Release Benchmark
  • Release code

:fire: News

  • [2024.04.26] We have released our code and benchmark

Setup

🔧 Requirements

To install requirements:

pip install -r requirements.txt

🚀 Generate

Generate with CMIGBench or replace with your own demo

python generate.py --task story --sd_version '1.5' --dataset_path CMIGBench

🧪 Evaluate

Prepare the output in the following format

├── output_dir
|   ├── dialogue 1
|      ├── turn1.png 
|      ├── turn2.png 
|      ├── turn3.png 
|      └── turn4.png 
|   ├── dialogue 2
|      ...

Evalutate the generated results of CMIGBench

python CMIGBench/eval/eval.py 
python CMIGBench/eval/eval_extra.py 

👀 Contact Us

If you have any questions, please feel free to email us at [email protected].

🌟🌟🌟(I am an undergraduate student actively seeking opportunities for a Ph.D. program in 25 fall.)🌟🌟🌟

💡Acknowledgement

Our work is based on stable diffusion, Grounded-SAM, T2I-Adapter, and IP-Adapter. We appreciate their outstanding contributions.

Citation

If you found this code helpful, please consider citing:

@article{cheng2024theatergen,
  title={TheaterGen: Character Management with LLM for Consistent Multi-turn Image Generation},
  author={Cheng, Junhao and Yin, Baiqiao and Cai, Kaixin and Huang, Minbin and Li, Hanhui and He, Yuxin and Lu, Xi and Li, Yue and Li, Yifei and Cheng, Yuhao and others},
  journal={arXiv preprint arXiv:2404.18919},
  year={2024}
}

관련 프로젝트 살펴보기

불러오는 중…