# AnyInsertion dataset ## Summary This is the dataset proposed in our paper [**Insert Anything: Image Insertion via In-Context Editing in DiT**](https://arxiv.org/html/2504.15009) 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. AnyInsertion dataset covers diverse categories including human subjects, daily necessities, garments, furniture, and various objects.  ## Directory ``` data/ ├── train/ │ ├── accessory/ │ │ ├── ref_image/ # Reference image containing the element to be inserted │ │ ├── ref_mask/ # The mask corresponding to the inserted element │ │ ├── tar_image/ # Ground truth │ │ ├── tar_mask/ # The mask corresponding to the edited area of target image │ │ ├── add/ # The image after removing the inserted element in the tar_image │ │ ├── replace_different/ # The image after performing a replacement operation with a different shape on the inserted object in the tar_image │ │ └── replace_same/ # The image after performing a replacement operation with the same shape on the inserted object in the tar_image │ ├── object/ │ │ ├── ref_image/ │ │ ├── ref_mask/ │ │ ├── tar_image/ │ │ ├── tar_mask/ │ │ ├── add/ │ │ └── replace/ # The image after performing a replacement operation on the inserted object in the tar_image │ └── person/ │ ├── ref_image/ │ ├── ref_mask/ │ ├── tar_image/ │ ├── tar_mask/ │ ├── add/ │ └── replace/ └── test/ ├── garment/ │ ├── ref_image/ │ ├── ref_mask/ │ ├── tar_image/ │ ├── tar_mask/ │ └── src_image/ # The image after performing a replacement operation on the inserted object in the tar_image ├── object/ │ ├── ref_image/ │ ├── ref_mask/ │ ├── tar_image/ │ ├── tar_mask/ │ ├── src_image/ # The image after removing the inserted element in the tar_image └── person/ ├── simple_scene/ │ ├── ref_image/ │ ├── ref_mask/ │ ├── tar_image/ │ ├── tar_mask/ └── complex_scene/ ├── ref_image/ ├── ref_mask/ ├── tar_image/ ├── tar_mask/ ``` ## Example