Downloads · 30 days
1.2K
1% of all-time downloads
Kwai-Kolors/Kolors-IP-Adapter-Plus
Kolors-IP-Adapter-Plus is a text-to-image model from Kwai-Kolors. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
<div align="center" style="display: flex; justify-content: center; flex-wrap: wrap;" <a href="https://github.com/Kwai-Kolors/Kolors"<img src="https://img.shields.io/static/v1?label=Kolors Code&message=Github&color=blu…
Downloads · 30 days
1.2K
1% of all-time downloads
All-time downloads
171K
Public
Repo size
6.7 GB
Likes
119
Public
Click a slice to open those files.
.bin2.7 GB · 100%
From the Hugging Face model README
We provide IP-Adapter-Plus weights and inference code based on Kolors-Basemodel. Examples of Kolors-IP-Adapter-Plus results are as follows: <img src="demo.png">
Our improvements
For evaluation, we create a test set consisting of over 200 reference images and text prompts. We invite several image experts to provide fair ratings for the generated results of different models. The experts rate the generated images based on four criteria: visual appeal, text faithfulness, image faithfulness, and overall satisfaction. Image faithfulness measures the semantic preservation ability of IP-Adapter on reference images, while the other criteria follow the evaluation standards of BaseModel. The specific results are summarized in the table below, where Kolors-IP-Adapter-Plus achieves the highest overall satisfaction score.
| Model | Average Overall Satisfaction | Average Image Faithfulness | Average Visual Appeal | Average Text Faithfulness |
|---|---|---|---|---|
| SDXL-IP-Adapter-Plus | 2.29 | 2.64 | 3.22 | 4.02 |
| Midjourney-v6-CW | 2.79 | 3.0 | 3.92 | 4.35 |
| Kolors-IP-Adapter-Plus | 3.04 | 3.25 | 4.45 | 4.30 |
<font color=gray style="font-size:12px">The ip_scale parameter is set to 0.3 in SDXL-IP-Adapter-Plus, while Midjourney-v6-CW utilizes the default cw scale.</font>
<img src="compare_demo.png"><font color=gray style="font-size:12px">Kolors-IP-Adapter-Plus employs chinese prompts, while other methods use english prompts.</font>
The dependencies and installation are basically the same as the Kolors-BaseModel.
apt-get install git-lfs
git clone https://github.com/Kwai-Kolors/Kolors
cd Kolors
conda create --name kolors python=3.8
conda activate kolors
pip install -r requirements.txt
python3 setup.py install
huggingface-cli download --resume-download Kwai-Kolors/Kolors-IP-Adapter-Plus --local-dir weights/Kolors-IP-Adapter-Plus
or
git lfs clone https://huggingface.co/Kwai-Kolors/Kolors-IP-Adapter-Plus weights/Kolors-IP-Adapter-Plus
python ipadapter/sample_ipadapter_plus.py ./ipadapter/https://raw.githubusercontent.com/junqiangwu/Kolors/master/ipadapter/asset/test_ip.jpg "穿着黑色T恤衫,上面中文绿色大字写着“可图”"
python ipadapter/sample_ipadapter_plus.py ./ipadapter/https://raw.githubusercontent.com/junqiangwu/Kolors/master/ipadapter/asset/test_ip2.png "一只可爱的小狗在奔跑"
# The image will be saved to "scripts/outputs/"
Note
The IP-Adapter-FaceID model based on Kolors will also be released soon!