File size: 1,742 Bytes
77a500b
 
 
 
 
 
 
 
 
 
 
 
 
 
3478909
 
 
 
 
 
 
 
 
 
 
 
 
 
77a500b
 
 
 
 
3478909
 
77a500b
3478909
 
 
 
77a500b
 
 
 
3478909
 
77a500b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
license: mit
tags:
- generated_from_trainer
model-index:
- name: ArtPrompter
  results: []
---

<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# ArtPrompter

A [gpt2](https://huggingface.co/gpt2) powered predictive keyboard for making descriptive text prompts for A.I. image generators (e.g. MidJourney, Stable Diffusion, ArtBot, etc). The model was trained on a database of over 268K MidJourney images corresponding to 113K unique prompts.

```python
from transformers import pipeline

ai = pipeline('text-generation',model='pearsonkyle/ArtPrompter', tokenizer='gpt2')

texts = ai('The', max_length=30, num_return_sequences=5)

for i in range(5):
    print(texts[i]['generated_text']+'\n')
```

[![Art Prompter](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1HQOtD2LENTeXEaxHUfIhDKUaPIGd6oTR?usp=sharing)



## Intended uses & limitations

Build prompts and generate images on Discord!


[![](https://cincydiscord.com/wp-content/uploads/2019/02/CINCYDISCORDJOIN.png)](https://discord.gg/3S8Taqa2Xy)


[![](https://pearsonkyle.github.io/Art-Prompter/images/discord_bot.png)](https://discord.gg/3S8Taqa2Xy)


## Training procedure

~1 hour of finetuneing on RTX2080 with 113K unique prompts

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 16
- eval_batch_size: 4
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 50

### Framework versions

- Transformers 4.25.1
- Pytorch 1.13.1
- Tokenizers 0.13.2