vera365 commited on
Commit
af05226
1 Parent(s): e19d07a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -2
README.md CHANGED
@@ -36,7 +36,92 @@ dataset_info:
36
  num_examples: 12294
37
  download_size: 5194348793
38
  dataset_size: 9035891694.51
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  ---
40
- # Dataset Card for "lexica_dataset"
41
 
42
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  num_examples: 12294
37
  download_size: 5194348793
38
  dataset_size: 9035891694.51
39
+ license: cc-by-4.0
40
+ task_categories:
41
+ - text-to-image
42
+ - image-to-text
43
+ language:
44
+ - en
45
+ tags:
46
+ - prompts
47
+ - engineering
48
+ - research paper
49
+ pretty_name: LexicaDataset
50
+ size_categories:
51
+ - 10K<n<100K
52
  ---
 
53
 
54
+ ## Dataset Description
55
+
56
+ - **Repository:** [Github repository](https://github.com/verazuo/prompt-stealing-attack)
57
+ - **Distribution:** [LexicaDataset on HuggingFace](https://huggingface.co/datasets/vera365/lexica_dataset)
58
+ - **Paper:** [Prompt Stealing Attacks Against Text-to-Image Generation Models](https://arxiv.org/abs/2302.09923)
59
+ - **Point of Contact:** [Xinyue Shen](xinyue.shen@cispa.de)
60
+
61
+ ### Dataset Summary
62
+
63
+ LexicaDataset is a large-scale text-to-image prompt dataset shared in [[USENIX'24] Prompt Stealing Attacks Against Text-to-Image Generation Models](https://arxiv.org/abs/2302.09923).
64
+ It contains **61,467 prompt-image pairs** collected from [Lexica](https://lexica.art/).
65
+ All prompts are curated by real users and images are generated by Stable Diffusion.
66
+ Data collection details can be found in the paper.
67
+
68
+ ### Data Splits
69
+
70
+ For LexicaDataset, we randomly sample 80% of a dataset as the training dataset and the rest 20% as the testing dataset.
71
+
72
+
73
+ ### Loading LexicaDataset
74
+
75
+
76
+ You can use the Hugging Face [`Datasets`](https://huggingface.co/docs/datasets/quickstart) library to easily load prompts and images from LexicaDataset.
77
+
78
+ ```python
79
+ import numpy as np
80
+ from datasets import load_dataset
81
+
82
+ trainset = load_dataset('vera365/lexica_dataset', split='train')
83
+ testset = load_dataset('vera365/lexica_dataset', split='test')
84
+ ```
85
+
86
+ ### Metadata Schema
87
+
88
+ `trainset` and `testset` share the same schema.
89
+
90
+ | Column | Type | Description |
91
+ | :------------------ | :--------- | :----------------------------------------------------------- |
92
+ | `image` | `image` | The generated image |
93
+ | `prompt` | `string` | The text prompt used to generate this image |
94
+ | `id` | `string` | Image UUID |
95
+ | `promptid` | `string` | Prompt UUID |
96
+ | `width` | `uint16` | Image width |
97
+ | `height` | `uint16` | Image height |
98
+ | `seed` | `uint32` | Random seed used to generate this image. |
99
+ | `grid` | `bool` | Whether the image is composed of multiple smaller images arranged in a grid |
100
+ | `model` | `string` | Model used to generate the image |
101
+ | `nsfw` | `string` | Whether the image is NSFW |
102
+ | `subject` | `string` | the subject/object depicted in the image, extracted from the prompt |
103
+ | `modifier10` | `sequence` | Modifiers in the prompt that appear more than 10 times in the whole dataset. We regard them as labels to train the modifier detector |
104
+ | `modifier10_vector` | `sequence` | One-hot vector of `modifier10` |
105
+
106
+
107
+ ## Ethics & Disclosure
108
+
109
+ According to the [terms and conditions of Lexica](https://lexica.art/terms), images on the website are available under the Creative Commons Noncommercial 4.0 Attribution International License. We strictly followed Lexica’s Terms and Conditions, utilized only the official Lexica API for data retrieval, and disclosed our research to Lexica. We also responsibly disclosed our findings to related prompt marketplaces.
110
+
111
+ ## Licensing Information
112
+
113
+ The LexicaDataset dataset is available under the [CC0 4.0 License](https://creativecommons.org/licenses/by/4.0/).
114
+
115
+ ## Citation Information
116
+
117
+ If you find this useful in your research, please consider citing:
118
+
119
+ ```bibtex
120
+ @inproceedings{SQBZ24,
121
+ author = {Xinyue Shen and Yiting Qu and Michael Backes and Yang Zhang},
122
+ title = {{Prompt Stealing Attacks Against Text-to-Image Generation Models}},
123
+ booktitle = {{USENIX Security Symposium (USENIX Security)}},
124
+ publisher = {USENIX},
125
+ year = {2024}
126
+ }
127
+ ```