The implement of the paper Free-Lunch Color-Texture Disentanglement for Stylized Image Generation (SADis).
- Color-Texture Disentanglement: Separates color and texture attributes for flexible control.
- Training-Free: No need for additional training, enabling fast and efficient stylization.
- Customizable Outputs: Customize color and texture elements to generate your desired artistic images.
- Support ControlNet-Based Image-to-Image Stylization
- TODO: Gradio demo
- TODO: huggingface demo
# git clone this repository
git clone https://github.com/deepffff/SADis.git
cd SADis
# download ip-adapter weights into ./models from: https://huggingface.co/h94/IP-Adapter/tree/main/models
# download weights of sdxl into ./sdxl_models from https://huggingface.co/h94/IP-Adapter/tree/main/sdxl_modelsEnsure the directory structure includes the following paths:
- 'models/image_encoder'
- 'sdxl_models/ip-adapter-plus_sdxl_vit-h.bin'
# create new anaconda env
conda env create -f environment.yml
conda activate color_texturepython infer_style_plus_color_texture.py
# Note: Adjust hyperparameters as recommended in the comments to achieve better performance.python infer_style_controlnet_color_texture.py
# Note: Adjust hyperparameters as recommended in the comments to achieve better performance.If you find the project useful, please cite the papers and give a star, thanks!
@misc{qin2025freelunchcolortexturedisentanglementstylized,
title={Free-Lunch Color-Texture Disentanglement for Stylized Image Generation},
author={Jiang Qin and Senmao Li and Alexandra Gomez-Villa and Shiqi Yang and Yaxing Wang and Kai Wang and Joost van de Weijer},
year={2025},
eprint={2503.14275},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2503.14275},
}
Our work is mainly based on the following projects:

