j-min commited on
Commit
17e8c0c
·
verified ·
1 Parent(s): 6dd151b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +100 -3
README.md CHANGED
@@ -1,3 +1,100 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - text-to-image
5
+ language:
6
+ - en
7
+ configs:
8
+ - config_name: default
9
+ data_files:
10
+ - split: combinations_common
11
+ path:
12
+ - combinations_layouts_common.json
13
+ - split: combinations_uncommon
14
+ path:
15
+ - combinations_layouts_uncommon.json
16
+ - split: count_2_4
17
+ path:
18
+ - count_layouts_2_4.json
19
+ - split: count_5_7
20
+ path:
21
+ - count_layouts_5_7.json
22
+ - split: count_8_10
23
+ path:
24
+ - count_layouts_8_10.json
25
+ - split: position_boundary
26
+ path:
27
+ - position_layouts_boundary.json
28
+ - split: position_center
29
+ path:
30
+ - position_layouts_center.json
31
+ - split: size_large
32
+ path:
33
+ - size_layouts_large.json
34
+ - split: size_small
35
+ path:
36
+ - size_layouts_small.json
37
+ pretty_name: LayoutBench-COCO
38
+ ---
39
+
40
+ # LayoutBench-COCO
41
+
42
+ Release of LayoutBench-COCO dataset from [Diagnostic Benchmark and Iterative Inpainting for Layout-Guided Image Generation (CVPR 2024 Workshop)](https://layoutbench.github.io/)
43
+
44
+ [[Project Page](https://layoutbench.github.io/)]
45
+ [[Paper](https://arxiv.org/abs/2304.06671)]
46
+
47
+ Authors:
48
+ [Jaemin Cho](https://j-min.io),
49
+ [Linjie Li](https://www.microsoft.com/en-us/research/people/linjli/),
50
+ [Zhengyuan Yang](https://zyang-ur.github.io/),
51
+ [Zhe Gan](https://zhegan27.github.io/),
52
+ [Lijuan Wang](https://www.microsoft.com/en-us/research/people/lijuanw/),
53
+ [Mohit Bansal](https://www.cs.unc.edu/~mbansal/)
54
+
55
+ ## Summary
56
+
57
+ LayoutBench-COCO is a diagnostic benchmark that examines layout-guided image generation models on arbitrary, unseen layouts.
58
+ Instead of [LayoutBench](https://huggingface.co/datasets/j-min/layoutbench), LayoutBench-COCO consists of OOD layouts of real objects and suports zero-shot evaluation.
59
+ LayoutBench-COCO measures 4 skills (Number, Position, Size, Combination), whose objects are from [MS COCO](https://cocodataset.org/).
60
+ The new 'combination’ split consists of layouts with two objects in different spatial relations, and the remaining three splits are similar to those of LayoutBench.
61
+
62
+ ## Skill Details
63
+
64
+ ### Skill 1: Number.
65
+
66
+ We define two layouts for 2∼10 objects and use 40 COCO objects, resulting in 720 total layouts (= 2×9×40). We name the layouts with 2∼4 and 8∼10 objects as few and many splits. The layouts are paired with captions with a template `“a photo of [N] [objects]”`.
67
+
68
+ ### Skill 2: Position.
69
+
70
+ For each of boundary and center splits, we define four layouts with 40 COCO objects, resulting in 320 total layouts (= 2 × 4 × 40). The layouts are paired with captions with a template `“a photo of [N] [objects]”`.
71
+
72
+ ### Skill 3: Size.
73
+
74
+ For each of tiny and large splits, we define nine layouts with 40 COCO objects, resulting in 720 total layouts (= 9×2×40). The layouts are paired with captions with a template `“a photo of [N] [objects]”`.
75
+
76
+ ### Skill 4: Combination.
77
+
78
+ This skill measures whether a model can generate two objects that commonly or uncommonly appear in the real world. For each of the three spatial relations (holding, next to, sitting on), we define three layouts without specifying objects. For each of the three relations, we manually define 20 object pairs of COCO objects for common and uncommon splits. For example, (1) ‘person sitting on chair’ is more common than (2) ‘elephant sitting on banana’ in real life. This results in 360 total layouts (= 2×3×3×20). The layouts are paired with captions with a template `“[objA] [relation] [objB]”`.
79
+
80
+ # Use of LayoutBench-COCO
81
+
82
+ Step 1. Download LayoutBench-COCO and Generate Images from Layouts
83
+
84
+ Please see [Step 1 README](https://github.com/j-min/LayoutBench-COCO/image_generation/README.md) for instructions on downloading LayoutBench-COCO and generating images from layouts.
85
+
86
+ Step 2. Run Evaluation
87
+
88
+ Please see [Step 2 README](https://github.com/j-min/LayoutBench-COCO/yolov7/README.md) for instructions on running evaluation on LayoutBench-COCO.
89
+
90
+
91
+ ## Citation
92
+
93
+ ```bibtex
94
+ @inproceedings{Cho2024LayoutBench,
95
+ author = {Jaemin Cho and Linjie Li and Zhengyuan Yang and Zhe Gan and Lijuan Wang and Mohit Bansal},
96
+ title = {Diagnostic Benchmark and Iterative Inpainting for Layout-Guided Image Generation},
97
+ booktitle = {The First Workshop on the Evaluation of Generative Foundation Models},
98
+ year = {2024},
99
+ }
100
+ ```