Enhance model card with metadata, introduction, usage, and citation

#2
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +42 -1
README.md CHANGED
@@ -1,6 +1,47 @@
1
  ---
2
  license: apache-2.0
 
 
3
  ---
 
 
 
 
 
 
 
 
4
  This repository contains the model used in [InstanceAssemble: Layout-Aware Image Generation via Instance Assembling Attention](https://arxiv.org/abs/2509.16691).
5
 
6
- Code: https://github.com/FireRedTeam/InstanceAssemble.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pipeline_tag: text-to-image
4
+ library_name: diffusers
5
  ---
6
+
7
+ # InstanceAssemble
8
+ > Official implementation of "InstanceAssemble: Layout-Aware Image Generation via Instance Assembling Attention" (NeurIPS 2025).
9
+
10
+ <p align="center">
11
+ <img src="https://github.com/FireRedTeam/InstanceAssemble/raw/main/fig/teaser.jpg" alt="Teaser of InstanceAssemble" width="800">
12
+ </p>
13
+
14
  This repository contains the model used in [InstanceAssemble: Layout-Aware Image Generation via Instance Assembling Attention](https://arxiv.org/abs/2509.16691).
15
 
16
+ ## Introduction
17
+
18
+ InstanceAssemble is a lightweight framework for Layout-to-Image generation that enables precise spatial control. We also introduce DenseLayout and Layout Grounding Score (LGS) for rigorous evaluation, where InstanceAssemble achieves state-of-the-art performance on both sparse and dense layouts.
19
+
20
+ For the official code and more details, please refer to the GitHub repository: [https://github.com/FireRedTeam/InstanceAssemble](https://github.com/FireRedTeam/InstanceAssemble).
21
+
22
+ ## Usage
23
+
24
+ ### Inference
25
+ ```bash
26
+ # sd3 based
27
+ python inference.py --model_type sd3 --input_json ./demo/bigchair.json
28
+ # flux based
29
+ python inference.py --model_type fluxdev --input_json ./demo/bigchair.json
30
+ python inference.py --model_type fluxschnell --input_json ./demo/bigchair.json
31
+ ```
32
+
33
+ ### Streamlit demo
34
+ ```bash
35
+ streamlit run demo.py
36
+ ```
37
+
38
+ ## Citation
39
+
40
+ ```
41
+ @article{xiang2025instanceassemble,
42
+ title={InstanceAssemble: Layout-Aware Image Generation via Instance Assembling Attention},
43
+ author={Qiang Xiang and Shuang Sun and Binglei Li and Dejia Song and Huaxia Li and Nemo Chen and Xu Tang and Yao Hu and Junping Zhang},
44
+ journal={arXiv preprint arXiv:2509.16691},
45
+ year={2025},
46
+ }
47
+ ```