File size: 813 Bytes
646985b
 
a56464b
 
 
 
 
 
 
5933835
 
f8b80ef
 
5933835
 
 
 
 
 
1bb2387
 
 
f8b80ef
 
 
1bb2387
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: creativeml-openrail-m
task_categories:
- text-generation
language:
- en
pretty_name: SDP-2.47M
size_categories:
- 1M<n<10M
---

## Source

Combined text-only dataset from
- poloclub/diffusiondb
- Gustavosta/Stable-Diffusion-Prompts
- bartman081523/stable-diffusion-discord-prompts
- FredZhang7/krea-ai-prompts

For preprocessing methods, please see [Fast GPT2 PromptGen](https://huggingface.co/FredZhang7/distilgpt2-stable-diffusion-v2).


## Python

Download and save the dataset to `all_prompts.txt` locally.
```bash
pip install datasets
```
```python
import datasets

dataset = datasets.load_dataset("FredZhang7/stable-diffusion-prompts-2.47M")

train = dataset["train"]
prompts = train["text"]

with open("all_prompts.txt", "w") as f:
    for prompt in prompts:
        f.write(prompt + "\n")
```