Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

[NeurIPS 2025 🔥] Official impl. of "AlignedGen: Aligning Style Across Generated Images". An ultra-simple, user-friendly yet state-of-the-art codebase for style-aligned image generation!

License

Notifications You must be signed in to change notification settings

golitter/AlignedGen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

环境: RTX 5090 32G

1024分辨率可以一次跑两个prompts

展示:

提示词为{"Globe in 3D realism style.", "iPhone in 3D realism style."}

提示词为{"Apple in 3D realism style.", "iPhone in 3D realism style."}

提示词为{"A Huawei smartphone in a 3D realistic style.", "An Apple iPhone in a 3D realistic style."}

提示词为{"A Linux-themed anime-style beautiful girl.", "A Windows-themed anime-style beautiful girl."}

[NIPS 2025🔥] AlignedGen: Aligning Style Across Generated Images

Project Website arXiv

Jiexuan Zhang, Yiheng Du, Qian Wang, Yu Gu, Weiqi Li, Jian Zhang

School of Electronic and Computer Engineering, Peking University


🔥 Introduction

AlignedGen generates a set of images with a consistent style from a set of prompts.

For example, given the prompts: {Anchor, Clock, Globe, Bicycle} in 3D realism style., AlignedGen will produce the results shown below. For more details on how to run the model, please see the Inference section. Additional examples are available on our project website.

🚩 News

  • 09.23 Released paper and code.

🔧 Dependencies and Installation

conda create -n aligned python=3.10
conda activate aligned
conda install pytorch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 -c pytorch
pip install diffusers transformers sentencepiece protobuf==3.19.0

⚡ Inference

Before running, please ensure FLUX.1-dev model is accessible to the script. Then, run the inference script with the following command:

python inference.py --model_path black-forest-labs/FLUX.1-dev --style_lambda 1.1

This will generate the image shown at the beginning of this README.

Note on VRAM: If you encounter out-of-memory errors, try reducing the number of prompts or enabling the offload option within the pipeline.

📊 Compare With Other Methods

🌟 User-Provided Image As Style Reference

🤔 Control & DreamBooth

✏️ To Do List

  • Release the paper and code
  • Release ControlNet Code
  • Release DreamBooth Code
  • Release Attention Map Visualization Code
  • Release User-Provided Image As Style Inference Code
  • Support Qwen-Image
  • Support ComfyUI
  • Support Gradio demo

Acknowledgement

We appreciate the releasing codes of StyleAligned and Diffusers.

Citation

If our work assists your research, feel free to give us a star ⭐ or cite us using:

@article{zhang2025alignedgen,
  title={AlignedGen: Aligning Style Across Generated Images},
  author={Zhang, Jiexuan and Du, Yiheng and Wang, Qian and Li, Weiqi and Gu, Yu and Zhang, Jian},
  journal={arXiv preprint arXiv:2509.17088},
  year={2025}
}

About

[NeurIPS 2025 🔥] Official impl. of "AlignedGen: Aligning Style Across Generated Images". An ultra-simple, user-friendly yet state-of-the-art codebase for style-aligned image generation!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Shell 0.8%