This repo, named
CSGO
, contains the official PyTorch implementation of our paper
CSGO: Content-Style Composition in Text-to-Image Generation
.
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) 💖.
Detail ✨
We currently release two model weights.
Mode
content token
style token
Other
csgo.bin
4
16
-
csgo_4_32.bin
4
32
Deepspeed zero2
Pipeline 💻
Capabilities 🚅
🔥 Our CSGO achieves
image-driven style transfer, text-driven stylized synthesis, and text editing-driven stylized synthesis
.
git clone https://github.com/instantX-research/CSGO
cd CSGO
# create env using conda
conda create -n CSGO python=3.9
conda activate CSGO
# install dependencies with pip# for Linux and Windows users
pip install -r requirements.txt
2. Download pretrained weights(coming soon)
The easiest way to download the pretrained weights is from HuggingFace:
# first, ensure git-lfs is installed, see: https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage
git lfs install
# clone and move the weights
git clone https://huggingface.co/InstanX/CSGO CSGO
This project is developed by InstantX Team, all copyright reserved.
Citation 💖
If you find CSGO useful for your research, welcome to 🌟 this repo and cite our work using the following BibTeX:
@article{xing2024csgo,
title={CSGO: Content-Style Composition in Text-to-Image Generation},
author={Peng Xing and Haofan Wang and Yanpeng Sun and Qixun Wang and Xu Bai and Hao Ai and Renyuan Huang and Zechao Li},
year={2024},
journal = {arXiv 2408.16766},
}
CSGO huggingface.co is an AI model on huggingface.co that provides CSGO's model effect (), which can be used instantly with this InstantX CSGO model. huggingface.co supports a free trial of the CSGO model, and also provides paid use of the CSGO. Support call CSGO model through api, including Node.js, Python, http.
CSGO huggingface.co is an online trial and call api platform, which integrates CSGO's modeling effects, including api services, and provides a free online trial of CSGO, you can try CSGO online for free by clicking the link below.
CSGO is an open source model from GitHub that offers a free installation service, and any user can find CSGO on GitHub to install. At the same time, huggingface.co provides the effect of CSGO install, users can directly use CSGO installed effect in huggingface.co for debugging and trial. It also supports api for free installation.