File size: 3,653 Bytes
4e1dfd8
6fea0e6
f6f471c
 
 
 
4e1dfd8
f6f471c
d65970e
4e4d99e
0601eaf
f6f471c
 
4e4d99e
f6f471c
 
 
4e4d99e
f6f471c
 
 
4e4d99e
f6f471c
 
 
4e4d99e
f6f471c
 
 
4e4d99e
f6f471c
 
 
4e4d99e
f6f471c
 
 
4e4d99e
f6f471c
 
 
4e4d99e
f6f471c
 
 
 
4e4d99e
f6f471c
 
4e4d99e
f6f471c
4e4d99e
 
 
f6f471c
 
 
 
4e4d99e
f6f471c
 
 
4e1dfd8
f6f471c
 
 
 
 
4e4d99e
8cadfaf
4e4d99e
8cadfaf
f6f471c
4e4d99e
4e1dfd8
 
 
 
 
 
 
 
 
 
 
 
 
 
563b749
 
 
 
6fea0e6
 
563b749
 
4e1dfd8
 
6fea0e6
f748012
 
 
4e1dfd8
 
758b4e6
 
4e1dfd8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563b749
4e4d99e
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
---
elsaEU--ELSA1M_track1:
  description: ''
  citation: ''
  homepage: ''
  license: ''
  features:
    image:
      decode: true
      id: null
      dtype: Image
    id:
      dtype: string
      id: null
      _type: Value
    original_prompt:
      dtype: string
      id: null
      _type: Value
    positive_prompt:
      dtype: string
      id: null
      _type: Value
    negative_prompt:
      dtype: string
      id: null
      _type: Value
    model:
      dtype: string
      id: null
      _type: Value
    nsfw:
      dtype: string
      id: null
      _type: Value
    url_real_image:
      dtype: string
      id: null
      _type: Value
    filepath:
      dtype: string
      id: null
      _type: Value
    aspect_ratio:
      feature:
        dtype: int64
        id: null
        _type: Value
      length: -1
      id: null
      _type: Sequence
  post_processed: null
  supervised_keys: null
  task_templates: null
  builder_name: imagefolder
  config_name: default
  version:
    version_str: 0.0.0
    description: null
    major: 0
    minor: 0
    patch: 0
  splits:
    train:
      name: train
      num_bytes: 445926712527.43
      num_examples: 992655
      dataset_name: ELSA1M_track1
  download_checksums: null
  download_size: 223034360161
  post_processing_size: null
  dataset_size: 445926712527.43
  size_in_bytes: 668961072688.4299
license: cc-by-4.0
---

# ELSA - Multimedia use case

![elsa_slow.gif](https://cdn-uploads.huggingface.co/production/uploads/6380ccd084022715e0d49d4e/k_Zs325tahEteMx_Df1fW.gif)

**ELSA Multimedia is a large collection of Deep Fake images, generated using diffusion models**

### Dataset Summary

This dataset was developed as part of the EU project ELSA. Specifically for the Multimedia use-case.
Official webpage: https://benchmarks.elsa-ai.eu/
This dataset aims to develop effective solutions for detecting and mitigating the spread of deep fake images in multimedia content. Deep fake images, which are highly realistic and deceptive manipulations, pose significant risks to privacy, security, and trust in digital media. This dataset can be used to train robust and accurate models that can identify and flag instances of deep fake images.

### ELSA versions

| Name  | Description | Link |
| ------------- | ------------- | ---------------------| 
| ELSA1M_track1  | Dataset of 1M images generated using diffusion model  | https://huggingface.co/datasets/elsaEU/ELSA1M_track1 |
| ELSA500k_track2  | Dataset of 500k images generated using diffusion model with diffusion attentive attribution maps [1]  | https://huggingface.co/datasets/elsaEU/ELSA500k_track2 |


```python
from datasets import load_dataset
elsa_data = load_dataset("elsaEU/ELSA1M_track1", split="train", streaming=True)
for sample in elsa_data:
  image = sample.pop("image")
  metadata = sample
```

Using <a href="https://huggingface.co/docs/datasets/stream">streaming=True</a> lets you work with the dataset without downloading it.

## Dataset Structure

Each parquet file contains nearly 1k images and a JSON file with metadata.

The Metadata for generated images are:

- ID: Laion image ID
- original_prompt: Laion Prompt
- positive_prompt: positive prompt used for image generation
- negative_prompt: negative prompt used for image generation
- model: model used for the image generation
- nsfw: nsfw tag from Laion
- url_real_image: Url of the real image associated to the same prompt
- filepath: filepath of the fake image
- aspect_ratio: aspect ratio of the generated image


### Dataset Curators

- Leonardo Labs (rosario.dicarlo.ext@leonardo.com)
- UNIMORE (https://aimagelab.ing.unimore.it/imagelab/)