kdhht2334 commited on
Commit
be3a64d
•
1 Parent(s): d2ca9d2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +196 -0
README.md CHANGED
@@ -1,3 +1,199 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: cc0-1.0
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ layout: default
3
+ title: Home
4
+ nav_order: 1
5
+ has_children: false
6
+ annotations_creators:
7
+ - no-annotation
8
+ language:
9
+ - en
10
+ language_creators:
11
+ - found
12
+ pretty_name: DiffusionEmotion
13
+ size_categories:
14
+ - n<500MB
15
+ source_datasets:
16
+ - original
17
  license: cc0-1.0
18
+ tags:
19
+ - stable diffusion
20
+ - prompt engineering
21
+ - prompts
22
+ - research paper
23
+ - facial expression recognition
24
+ - emotion recognition
25
+ task_categories:
26
+ - text-to-image
27
+ task_ids:
28
+ - image-captioning
29
+ - face-detection
30
  ---
31
+
32
+ ## Dataset Description
33
+
34
+ - **Homepage:** [DiffusionEmotion homepage](https://kdhht2334.github.io/)
35
+ - **Repository:** [DiffusionEmotion repository](https://github.com/kdhht2334/Facial-Expression-Recognition-Zoo)
36
+ - **Distribution:** [DiffusionEmotion Hugging Face Dataset](https://huggingface.co/datasets/kdhht2334/DiffusionEmotion)
37
+ - **Point of Contact:** [Daeha Kim](mailto:kdhht5022@gmail.com)
38
+
39
+
40
+ ### Summary
41
+
42
+ DiffusionEmotion is the large-scale text-to-image prompt database for face-related tasks. It contains about **1M(ongoing)** images generated by [Stable Diffusion](https://github.com/camenduru/stable-diffusion-webui-colab) using prompt(s) and other parameters.
43
+
44
+ DiffusionEmotion is available at [🤗 Hugging Face Dataset](https://huggingface.co/datasets/kdhht2334/DiffusionEmotion).
45
+
46
+
47
+ ### Downstream Tasks and Leaderboards
48
+
49
+ This DiffusionEmotion dataset can be utilized for the following downstream tasks.
50
+ - Face detection
51
+ - Facial expression recognition
52
+ - Text-to-emotion prompting
53
+
54
+ In addition, the virtual subjects included in this dataset provide opportunities to perform various vision tasks related to face privacy.
55
+
56
+
57
+ ### Data Loading
58
+
59
+ DiffusionEmotion can be loaded via both Python and Git. Please refer Hugging Face [`Datasets`](https://huggingface.co/docs/datasets/quickstart).
60
+
61
+ ```python
62
+ from datasets import load_dataset
63
+
64
+ dataset = load_dataset("kdhht2334/DiffusionEmotion")
65
+ ```
66
+
67
+ ```bash
68
+ git lfs install
69
+ git clone https://huggingface.co/datasets/kdhht2334/DiffusionEmotion
70
+ ```
71
+
72
+
73
+ ### Sample Gallery
74
+
75
+ â–¼Happy
76
+
77
+ ![Gallery(happy)](https://drive.google.com/uc?id=10YW9XHXFJ9cjutis9Pwpgd0ld6JI84P3)
78
+
79
+
80
+ â–¼Angry
81
+
82
+ ![Gallery(happy)](https://drive.google.com/uc?id=14qbmOgzqqXGxkatjMfqaUmf0xYwDz--g)
83
+
84
+
85
+ ### Subsets
86
+
87
+ DiffusionEmotion supports a total of three distinct splits. And, each split additionally provides a face region cropped by [face detector](https://github.com/timesler/facenet-pytorch).
88
+ - DifussionEmotion_S (small), DifussionEmotion_M (medium), DifussionEmotion_L (large).
89
+
90
+ |Subset|Num of Images|Size|Image Directory |
91
+ |:--|--:|--:|--:|
92
+ |DifussionEmotion_S (original) | 1.5K | 647M | `DifussionEmotion_S/` |
93
+ |DifussionEmotion_S (cropped) | 1.5K | 322M | `DiffusionEmotion_S_cropped/` |
94
+ |DifussionEmotion_M (original) | N/A | N/A | `DifussionEmotion_M/` |
95
+ |DifussionEmotion_M (cropped) | N/A | N/A | `DiffusionEmotion_M_cropped/` |
96
+ |DifussionEmotion_L (original) | N/A | N/A | `DifussionEmotion_L/` |
97
+ |DifussionEmotion_L (cropped) | N/A | N/A | `DiffusionEmotion_L_cropped/` |
98
+
99
+
100
+ ## Dataset Structure
101
+
102
+ We provide DiffusionEmotion using a modular file structure. `DiffusionEmotion_S`, the smallest scale, contains about 1,500 images and is divided into folders of a total of 7 emotion classes. The class labels of all these images are included in `dataset_sheet.csv`.
103
+ - In `dataset_sheet.csv`, not only 7-emotion class but also _valence-arousal_ value are annotated.
104
+
105
+ ```bash
106
+ # Small version of DB
107
+ ./
108
+ ├── DifussionEmotion_S
109
+ │   ├── angry
110
+ │   │   ├── aaaaaaaa_6.png
111
+ │   │   ├── andtcvhp_6.png
112
+ │   │   ├── azikakjh_6.png
113
+ │   │   ├── [...]
114
+ │   ├── fear
115
+ │   ├── happy
116
+ │   ├── [...]
117
+ │   └── surprise
118
+ └── dataset_sheet.csv
119
+ ```
120
+
121
+ ```bash
122
+ # Medium version of DB
123
+ (ongoing)
124
+ ```
125
+
126
+ ```bash
127
+ # Large version of DB
128
+ (ongoing)
129
+ ```
130
+
131
+
132
+ ### Prompt Format
133
+
134
+ Basic format is as follows: "`Emotion`, `Race` `Age` style, a realistic portrait of `Style` `Gender`, upper body, `Others`".
135
+
136
+ - ex) neutral emotion, white middle-aged style, a realistic portrait of man, upper body
137
+
138
+ Examples of format categories are listed in the table below.
139
+
140
+ | Category | Prompt(s) |
141
+ | --- | --- |
142
+ | `Emotion` | neutral emotion<br>happy emotion, with open mouth<br>sad emotion with tears, lowered head, droopy eyebrows<br>surprise emotion, open mouth<br>fear emotion, fear expression, haunted<br>disgust emotion, angry expression with open mouth<br>angry emotion with open mouth, frown eyebrow |
143
+ | `Race` | white<br>black<br>latin |
144
+ | `Age` | teen<br>middle-aged<br>old |
145
+ | `Gender` | man<br>woman |
146
+ | `Style` | gentle<br>handsome<br>pretty<br>cute<br>punky<br>medieval Europe<br>Cyberpunk<br>Camping<br>... |
147
+ | `Others` | beautiful crystal eyes<br>big eyes<br>small nose<br>... |
148
+
149
+
150
+ ### Prompt Engineering
151
+
152
+ You can improve the performance and quality of generating default prompts with the settings below.
153
+
154
+ ```
155
+ {
156
+ "negative prompt": "sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, (outdoor:1.6), manboobs, backlight, (ugly:1.331), (duplicate:1.331), (morbid:1.21), (mutilated:1.21), mutated hands, (poorly drawn hands:1.331), (bad anatomy:1.21), (bad proportions:1.331), extra limbs, (disfigured:1.331), (more than 2 nipples:1.331), (missing arms:1.331), (extra legs:1.331), (fused fingers:1.61051), (too many fingers:1.61051), (unclear eyes:1.331), bad hands, missing fingers, extra digit, (futa:1.1)",
157
+ "steps": 50,
158
+ "sampling method": "DPM++ 2M Karras"
159
+ "Width": "512",
160
+ "Height": "512",
161
+ "CFG scale": 12.0,
162
+ "seed": -1,
163
+ }
164
+ ```
165
+
166
+ ### Annotations
167
+
168
+ The DiffusionEmotion contains annotation process both 7-emotion classes and valence-arousal values.
169
+
170
+ #### Annotation process
171
+
172
+ This process was carried out inspired by the theory of the two research papers below.
173
+
174
+ - JA Russell, [A circumplex model of affect](https://d1wqtxts1xzle7.cloudfront.net/38425675/Russell1980-libre.pdf?1439132613=&response-content-disposition=inline%3B+filename%3DRussell1980.pdf&Expires=1678595455&Signature=UtbPsezND6w8vbISBiuL-ECk6hDI0etLcJSE7kJMC~hAkMSu9YyQcPKdVpdHSSq7idfcQ~eEKsqptvYpy0199DX0gi-nHJwhsciahC-zgDwylEUo6ykhP6Ab8VWCOW-DM21jHNvbYLQf7Pwi66fGvm~5bAXPc1o4HHpQpk-Cr7b0tW9lYnl3qgLoVeIICg6FLu0elbtVztgH5OS1uL6V~QhiP2PCwZf~WCHuJRQrWdPt5Kuco0lsNr1Qikk1~d7HY3ZcUTRZcMNDdem8XAFDH~ak3QER6Ml~JDkNFcLuygz~tjL4CdScVhByeAuMe3juyijtBFtYWH2h30iRkUDalg__&Key-Pair-Id=APKAJLOHF5GGSLRBV4ZA)
175
+ - A Mollahosseini et al., [AffectNet](https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=8013713&casa_token=C3QmhmiB6Y8AAAAA:1CiUll0bhIq06M17YwFIvxuse7GOosEN9G1A8vxVzR8Vb5eaFp6ERIjg7xhSIQlf008KLsfJ-w&tag=1)
176
+
177
+ #### Who are the annotators?
178
+
179
+ [Daeha Kim](mailto:kdhht5022@gmail.com) and [Dohee Kang](mailto:asrs777@naver.com)
180
+
181
+
182
+ ## Additional Information
183
+
184
+ ### Dataset Curators
185
+
186
+ DiffusionEmotion is created by [Daeha Kim](https://kdhht2334.github.io/) and [Dohee Kang](https://github.com/KangDohee2270).
187
+
188
+ ### Acknowledgments
189
+
190
+ This repository is heavily inspired by [DiffusionDB](https://huggingface.co/datasets/poloclub/diffusiondb), with some format references. Thank you for your interest in [DiffusionDB](https://huggingface.co/datasets/poloclub/diffusiondb).
191
+
192
+ ### Licensing Information
193
+
194
+ The DiffusionEmotion is available under the [CC0 1.0 License](https://creativecommons.org/publicdomain/zero/1.0/).
195
+
196
+ ### Contributions
197
+
198
+ If you have any questions, feel free to [open an issue](https://github.com/kdhht2334/Facial-Expression-Recognition-Zoo/issues/new) or contact [Daeha Kim](https://kdhht2334.github.io/).
199
+