WensongSong commited on
Commit
740ebe2
·
verified ·
1 Parent(s): 29f7fd3

Upload root file: README.md

Browse files
Files changed (1) hide show
  1. README.md +107 -3
README.md CHANGED
@@ -1,3 +1,107 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AnyInsertion dataset
2
+
3
+ ## Summary
4
+ This is the dataset proposed in our paper [**Insert Anything: Image Insertion via In-Context Editing in DiT**](https://arxiv.org/html/2504.15009)
5
+
6
+ AnyInsertion dataset consists of training and testing subsets. The training set includes 159,908 samples across two prompt types: 58,188 mask-prompt image pairs and 101,720 text-prompt image pairs;the test set includes 158 data pairs: 120 mask-prompt pairs and 38 text-prompt pairs.
7
+
8
+ AnyInsertion dataset covers diverse categories including human subjects, daily necessities, garments, furniture, and various objects.
9
+
10
+
11
+ ![alt text](dataset_categories.png)
12
+
13
+
14
+ ## Directory
15
+
16
+ ```
17
+
18
+
19
+ data/
20
+ ├── train/
21
+ │ ├── accessory/
22
+ │ │ ├── ref_image/ # Reference image containing the element to be inserted
23
+ │ │ ├── ref_mask/ # The mask corresponding to the inserted element
24
+ │ │ ├── tar_image/ # Ground truth
25
+ │ │ ├── tar_mask/ # The mask corresponding to the edited area of target image
26
+ │ │ ├── add/ # The image after removing the inserted element in the tar_image
27
+ │ │ ├── replace_different/ # The image after performing a replacement operation with a different shape on the inserted object in the tar_image
28
+ │ │ └── replace_same/ # The image after performing a replacement operation with the same shape on the inserted object in the tar_image
29
+ │ ├── object/
30
+ │ │ ├── ref_image/
31
+ │ │ ├── ref_mask/
32
+ │ │ ├── tar_image/
33
+ │ │ ├── tar_mask/
34
+ │ │ ├── add/
35
+ │ │ └── replace/ # The image after performing a replacement operation on the inserted object in the tar_image
36
+ │ └── person/
37
+ │ ├── ref_image/
38
+ │ ├── ref_mask/
39
+ │ ├── tar_image/
40
+ │ ├── tar_mask/
41
+ │ ├── add/
42
+ │ └── replace/
43
+ └── test/
44
+ ├── garment/
45
+ │ ├── ref_image/
46
+ │ ├── ref_mask/
47
+ │ ├── tar_image/
48
+ │ ├── tar_mask/
49
+ │ └── src_image/ # The image after performing a replacement operation on the inserted object in the tar_image
50
+ ├── object/
51
+ │ ├── ref_image/
52
+ │ ├── ref_mask/
53
+ │ ├── tar_image/
54
+ │ ├── tar_mask/
55
+ │ ├── src_image/ # The image after removing the inserted element in the tar_image
56
+ └── person/
57
+ ├── simple_scene/
58
+ │ ├── ref_image/
59
+ │ ├── ref_mask/
60
+ │ ├── tar_image/
61
+ │ ├── tar_mask/
62
+ └── complex_scene/
63
+ ├── ref_image/
64
+ ├── ref_mask/
65
+ ├── tar_image/
66
+ ├── tar_mask/
67
+
68
+
69
+ ```
70
+
71
+
72
+
73
+ ## Example
74
+
75
+ <div style="display: flex; text-align: center; align-items: center; justify-content: space-between;">
76
+   <figure style="margin: 10px; width: calc(25% - 20px);">
77
+     <img src="train/accessory/ref_image/2.png" alt="Ref_image" style="width: 100%;">
78
+     <figcaption>Ref_image</figcaption>
79
+   </figure>
80
+   <figure style="margin: 10px; width: calc(25% - 20px);">
81
+     <img src="train/accessory/ref_mask/2.png" alt="Ref_mask" style="width: 100%;">
82
+     <figcaption>Ref_mask</figcaption>
83
+   </figure>
84
+   <figure style="margin: 10px; width: calc(25% - 20px);">
85
+     <img src="train/accessory/tar_image/2.png" alt="Tar_image" style="width: 100%;">
86
+     <figcaption>Tar_image</figcaption>
87
+   </figure>
88
+   <figure style="margin: 10px; width: calc(25% - 20px);">
89
+     <img src="train/accessory/tar_mask/2.png" alt="Tar_mask" style="width: 100%;">
90
+     <figcaption>Tar_mask</figcaption>
91
+   </figure>
92
+ </div>
93
+
94
+ <div style="display: flex; text-align: center; align-items: center; justify-content: space-between;">
95
+   <figure style="margin: 10px; width: calc(33.33% - 20px);">
96
+     <img src="train/accessory/add/src_image/2.png" alt="Add" style="width: 100%;">
97
+     <figcaption>Add</figcaption>
98
+   </figure>
99
+   <figure style="margin: 10px; width: calc(33.33% - 20px);">
100
+     <img src="train/accessory/replace_different/src_image/2.png" alt="Replace_different" style="width: 100%;">
101
+     <figcaption>Replace_different</figcaption>
102
+   </figure>
103
+   <figure style="margin: 10px; width: calc(33.33% - 20px);">
104
+     <img src="train/accessory/replace_same/src_image/2.png" alt="Replace_same" style="width: 100%;">
105
+     <figcaption>Replace_same</figcaption>
106
+   </figure>
107
+ </div>