FredZhang7/anime-prompts-180K
收藏Hugging Face2024-06-07 更新2024-03-04 收录
下载链接:
https://hf-mirror.com/datasets/FredZhang7/anime-prompts-180K
下载链接
链接失效反馈官方服务:
资源简介:
---
license: creativeml-openrail-m
task_categories:
- text-generation
language:
- en
size_categories:
- 100K<n<1M
viewer: false
tags:
- not-for-all-audiences
---
For more info on data collection and the preprocessing algorithm, please see [Fast Anime PromptGen](https://huggingface.co/FredZhang7/anime-anything-promptgen-v2).
## 80K unique prompts
- `safebooru_clean`: Cleaned prompts with upscore ≥ 8 from the Safebooru API
---
For disclaimers about the Danbooru data, please see [Danbooru Tag Generator](https://huggingface.co/FredZhang7/danbooru-tag-generator).
## 100K unique prompts (each)
- `danbooru_raw`: Raw prompts with upscore ≥ 3 from Danbooru API
- `danbooru_clean`: Cleaned prompts with upscore ≥ 3 from Danbooru API
---
## Python
Download and save the dataset to anime_prompts.csv locally.
```bash
pip install datasets
```
```python
import csv
import datasets
dataset = datasets.load_dataset("FredZhang7/anime-prompts-180K")
train = dataset["train"]
safebooru_clean = train["safebooru_clean"]
danbooru_clean = train["danbooru_clean"]
danbooru_raw = train["danbooru_raw"]
with open("anime_prompts.csv", "w") as f:
writer = csv.writer(f)
writer.writerow(["safebooru_clean", "danbooru_clean", "danbooru_raw"])
for i in range(len(safebooru_clean)):
writer.writerow([safebooru_clean[i], danbooru_clean[i], danbooru_raw[i]])
```
提供机构:
FredZhang7
原始信息汇总
数据集概述
基本信息
- 许可证: creativeml-openrail-m
- 任务类别: 文本生成
- 语言: 英语
- 数据集大小: 10万<n<100万
数据集内容
- 80K独特提示:
safebooru_clean: 来自Safebooru API的清理后提示,upscore ≥ 8
- 100K独特提示 (每种):
danbooru_raw: 来自Danbooru API的原始提示,upscore ≥ 3danbooru_clean: 来自Danbooru API的清理后提示,upscore ≥ 3
数据集使用
- 数据集下载后保存为
anime_prompts.csv本地文件。 - 使用Python和
datasets库加载数据集,并可选择将数据集导出为CSV格式。



