├── README.md
├── assets
├── image3_1.jpg
├── img_0.png
├── img_1.png
├── img_2.png
├── overview.jpg
├── page1.png
├── page10.png
├── page11.jpg
├── page4.png
├── page8.png
└── vis.jpg
├── gradio
├── app.py
├── assets
│ ├── img_0.png
│ ├── img_1.png
│ └── img_2.png
└── requirements.txt
├── infer
├── infer_CSGO.py
└── infer_csgo.ipynb
├── ip_adapter
├── __init__.py
├── attention_processor.py
├── ip_adapter.py
├── resampler.py
└── utils.py
└── requirements.txt
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
CSGO: Content-Style Composition in Text-to-Image Generation
3 |
4 | [**Peng Xing**](https://github.com/xingp-ng)
12* · [**Haofan Wang**](https://haofanwang.github.io/)
1* · [**Yanpeng Sun**](https://scholar.google.com.hk/citations?user=a3FI8c4AAAAJ&hl=zh-CN&oi=ao/)
2 · [**Qixun Wang**](https://github.com/wangqixun)
1 · [**Xu Bai**](https://huggingface.co/baymin0220)
13 · [**Hao Ai**](https://github.com/aihao2000)
14 · [**Renyuan Huang**](https://github.com/DannHuang)
15
5 | [**Zechao Li**](https://zechao-li.github.io/)
2✉
6 |
7 |
1InstantX Team ·
2Nanjing University of Science and Technology ·
3Xiaohongshu ·
4Beihang University ·
5Peking University
8 |
9 |
*equal contributions,
✉corresponding authors
10 |
11 |

12 |

13 | [](https://huggingface.co/InstantX/CSGO)
14 | [](https://huggingface.co/spaces/xingpng/CSGO/)
15 | [](https://github.com/instantX-research/CSGO)
16 |
17 |
18 |
19 | ## Updates 🔥
20 |
21 | [//]: # (- **`2024/07/19`**: ✨ We support 🎞️ portrait video editing (aka v2v)! More to see [here](assets/docs/changelog/2024-07-19.md).)
22 |
23 | [//]: # (- **`2024/07/17`**: 🍎 We support macOS with Apple Silicon, modified from [jeethu](https://github.com/jeethu)'s PR [#143](https://github.com/KwaiVGI/LivePortrait/pull/143).)
24 |
25 | [//]: # (- **`2024/07/10`**: 💪 We support audio and video concatenating, driving video auto-cropping, and template making to protect privacy. More to see [here](assets/docs/changelog/2024-07-10.md).)
26 |
27 | [//]: # (- **`2024/07/09`**: 🤗 We released the [HuggingFace Space](https://huggingface.co/spaces/KwaiVGI/liveportrait), thanks to the HF team and [Gradio](https://github.com/gradio-app/gradio)!)
28 | [//]: # (Continuous updates, stay tuned!)
29 | - **`2024/09/04`**: 🔥 We released the gradio code. You can simply configure it and use it directly.
30 | - **`2024/09/03`**: 🔥 We released the online demo on [Hugggingface](https://huggingface.co/spaces/xingpng/CSGO/).
31 | - **`2024/09/03`**: 🔥 We released the [pre-trained weight](https://huggingface.co/InstantX/CSGO).
32 | - **`2024/09/03`**: 🔥 We released the initial version of the inference code.
33 | - **`2024/08/30`**: 🔥 We released the technical report on [arXiv](https://arxiv.org/pdf/2408.16766)
34 | - **`2024/07/15`**: 🔥 We released the [homepage](https://csgo-gen.github.io).
35 |
36 | ## Plan 💪
37 | - [x] technical report
38 | - [x] inference code
39 | - [x] pre-trained weight [4_16]
40 | - [x] pre-trained weight [4_32]
41 | - [x] online demo
42 | - [ ] pre-trained weight_v2 [4_32]
43 | - [ ] IMAGStyle dataset
44 | - [ ] training code
45 | - [ ] more pre-trained weight
46 |
47 | ## Introduction 📖
48 | This repo, named **CSGO**, contains the official PyTorch implementation of our paper [CSGO: Content-Style Composition in Text-to-Image Generation](https://arxiv.org/pdf/).
49 | We are actively updating and improving this repository. If you find any bugs or have suggestions, welcome to raise issues or submit pull requests (PR) 💖.
50 |
51 | ## Pipeline 💻
52 |