File size: 4,195 Bytes
ce1a51e
 
 
 
 
 
 
522f13e
ce1a51e
522f13e
b944e77
610748c
 
 
522f13e
 
 
 
 
b944e77
 
 
685aefe
 
 
522f13e
 
 
 
 
 
 
b944e77
 
 
 
 
 
 
 
 
 
 
 
522f13e
 
 
 
 
ce1a51e
 
 
522f13e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b8caad4
522f13e
 
 
 
 
 
b8caad4
522f13e
 
 
 
 
 
 
273175c
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
license: cc
pretty_name: Semi-Truths
size_categories:
- 10K<n<100K
---

# Semi-Truths: The Evaluation Sample #

**Recent efforts have developed AI-generated image detectors claiming robustness against various augmentations, but their effectiveness remains unclear. Can these systems detect varying degrees of augmentation?**

<center><img src="https://github.com/J-Kruk/SemiTruths/blob/main/figures/maintenance_sign.png?raw=true" alt="maintenance notice until December 10 2024" width="500"/></center>


To address these questions, we introduce **Semi-Truths**, featuring 27,600 real images, 245,300 masks, and 850,200 AI-augmented images featuring varying degrees of targeted and localized edits, created using diverse augmentation methods, diffusion models, and data distributions. 
Each augmented image includes detailed metadata for standardized, targeted evaluation of detector robustness. 

πŸš€ Leverage the Semi-Truths dataset to understand the sensitivities of the latest AI-augmented image detectors, to various sizes of edits and semantic changes!

πŸ“‚ **NOTE:** *This is a subset of the Semi-Truths dataset created for ease of evaluation of AI-Augmented image detectors. For users with memory contraints or initial exploration of Semi-Truths, we recommend using this dataset.
For the full dataset, please see `semi-truths/Semi-Truths`.*

<!-- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/666454f1f99defe86aca3882/AaKKr-VDqcsml4sDcYLrh.png) -->
<centering><img src="https://cdn-uploads.huggingface.co/production/uploads/666454f1f99defe86aca3882/AaKKr-VDqcsml4sDcYLrh.png" alt="head_figure" width="800"/></centering>

<!-- ## Loading Dataset ##

```
from datasets import load_dataset
dataset = load_dataset('hoffman-lab/SkyScenes',name="H_35_P_45 images")
``` -->

## Directions ##

πŸŒ… **I want to use the Semi-Truths dataset to evaluate my detector!**

* The `metadata.csv` file organizes all image file information under columns `image_id` and `image_path`.
* Leverage this information to pass both real and fake images to the detector you're evaluating.
* Append the detector predictions to the metadata file.
* Our metadata contains data attributes and various change metrics that describe the kind of augmentation that occured.
* By grouping predictions and computing metrics on images defined by a type of augmentation, you can gauge the specific strengths and weakness of the detecor!

To leverage our evaluation and analysis protocols, please visit our Github at: [Coming Soon! ⏳]

## Dataset Structure ##

The general structure of the Semi-Truths Dataset is as follows:
 - The original, real image and mask data can be found in the folder `original`
 - Augmented images created with Diffusion Inpainting are in `inpainting`
 - Prompt-edited images are in the folder `p2p`
 - Prompt-edited image masks, computed post-augmentation, are in the folder `p2p_masks`
 - All metadata can be found in `metadata.csv`, including labels, datasets, entities, augmentation methods, diffusion models, change metrics, and so on.

```
β”œβ”€β”€ metadata.csv (Image, Mask, and Change Information)
β”œβ”€β”€ original (Real Images/Mask Pairs)
β”‚   β”œβ”€β”€ images
β”‚   β”‚   β”œβ”€β”€ ADE20K
β”‚   β”‚   β”œβ”€β”€ CelebAHQ
β”‚   β”‚   β”œβ”€β”€ CityScapes
β”‚   β”‚   β”œβ”€β”€ HumanParsing
β”‚   β”‚   β”œβ”€β”€ OpenImages
β”‚   β”‚   └── SUN_RGBD
β”‚   └── masks
β”‚       β”œβ”€β”€ ADE20K
β”‚       β”œβ”€β”€ CelebAHQ
β”‚       β”œβ”€β”€ CityScapes
β”‚       β”œβ”€β”€ HumanParsing
β”‚       β”œβ”€β”€ OpenImages
β”‚       └── SUN_RGBD
β”œβ”€β”€ inpainting (inpainted augmented images)
β”‚   β”œβ”€β”€ ADE20K
β”‚   β”œβ”€β”€ CelebAHQ
β”‚   β”œβ”€β”€ CityScapes
β”‚   β”œβ”€β”€ HumanParsing
β”‚   β”œβ”€β”€ OpenImages
β”‚   └── SUN_RGBD
└── p2p (prompt-based augmented images)
    β”œβ”€β”€ ADE20K
    β”œβ”€β”€ CelebAHQ
    β”œβ”€β”€ CityScapes
    β”œβ”€β”€ HumanParsing
    β”œβ”€β”€ OpenImages
    └── SUN_RGBD
```


# How to download Semi Truths?

  You can download the whole dataset Semi Truths by cloning the dataset using the command:

      git clone https://huggingface.co/datasets/semi-truths/Semi-Truths-Evalset