Buckets:
| dataset_info: | |
| features: | |
| - name: image | |
| dtype: image | |
| - name: safety_label | |
| dtype: string | |
| - name: category | |
| dtype: string | |
| - name: source | |
| dtype: string | |
| - name: text | |
| dtype: string | |
| splits: | |
| - name: train | |
| num_bytes: 305172679.395 | |
| num_examples: 8109 | |
| - name: test | |
| num_bytes: 101269697.576 | |
| num_examples: 2037 | |
| download_size: 938538316 | |
| dataset_size: 406442376.97099996 | |
| task_categories: | |
| - image-classification | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: data/train-* | |
| - split: test | |
| path: data/test-* | |
| extra_gated_heading: "Acknowledge license to accept the repository" | |
| extra_gated_description: "Our team may take 1-2 days to process your request" | |
| extra_gated_prompt: "This dataset is released under a **Data Use Agreement (DUA)**. By requesting access, you agree to the following conditions: (1) The dataset is for **research/education purposes and responsible commercial use**. (2) Any kind of misuse is strictly prohibited." | |
| extra_gated_fields: | |
| Name: text | |
| Organization: text | |
| I want to use this dataset for: | |
| type: select | |
| options: | |
| - Research | |
| - Education | |
| - label: Other | |
| value: other | |
| extra_gated_button_content: "Acknowledge license" | |
| # Dataset Card for Dataset Name | |
| [Update]: we added the caption/prompt information (if there is one) in case other researchers need it. It is not used in our study though. | |
| <!-- Provide a quick summary of the dataset. --> | |
| The dataset consists of 10K safe/unsafe images of 11 different types of unsafe content and two sources (real-world VS AI-generated). | |
| ## Dataset Details | |
| | Source | # Safe | # Unsafe | # All | | |
| |----------|--------|----------|-------| | |
| | LAION-5B (real-world) | 3,228 | 1,832 | 5,060 | | |
| | Lexica (AI-generated) | 2,870 | 2,216 | 5,086 | | |
| | All | 6,098 | 4,048 | 10,146 | | |
| ## Uses | |
| <!-- Address questions around how the dataset is intended to be used. --> | |
| ``` | |
| from datasets import load_dataset | |
| dataset = load_dataset("yiting/UnsafeBench")["train"] | |
| print(dataset[0]) | |
| ``` | |
| ``` | |
| {'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=1600x1435 at 0x7FB291227D90>, | |
| 'safety_label': 'Safe', | |
| 'category': 'Hate', | |
| 'source': 'Laion5B', | |
| 'text': "xxx"} | |
| ``` | |
| ### Out-of-Scope Use | |
| <!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. --> | |
| **This dataset is intended for research/education/responsible industrial evaluation. Any misuse is strictly prohibited.** | |
| ## Citation [optional] | |
| <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. --> | |
| ``` | |
| @inproceedings{QSWBZZ24, | |
| author = {Yiting Qu and Xinyue Shen and Yixin Wu and Michael Backes and Savvas Zannettou and Yang Zhang}, | |
| title = {{UnsafeBench: Benchmarking Image Safety Classifiers on Real-World and AI-Generated Images}}, | |
| booktitle = {{ACM SIGSAC Conference on Computer and Communications Security (CCS)}}, | |
| publisher = {ACM}, | |
| year = {2025} | |
| } | |
| ``` | |
| ## Dataset Card Contact | |
| yiting.qu@cispa.de |
Xet Storage Details
- Size:
- 3.05 kB
- Xet hash:
- 1c4c4e202fcf8d7281f7736be4e977e23bdeaf90b48d147de3086a3b63ea0257
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.