AnyInsertion / README.md
WensongSong's picture
Upload root file: README.md
740ebe2 verified
|
raw
history blame
4.84 kB

AnyInsertion dataset

Summary

This is the dataset proposed in our paper Insert Anything: Image Insertion via In-Context Editing in DiT

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.

alt text

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

 
    Ref_image    
Ref_image
 
 
    Ref_mask    
Ref_mask
 
 
    Tar_image    
Tar_image
 
 
    Tar_mask    
Tar_mask
 
 
    Add    
Add
 
 
    Replace_different    
Replace_different
 
 
    Replace_same    
Replace_same