Skip to content

Jiexuanz/AlignedGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

[NeurIPS 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

 
 
 

Contributors

Languages