File size: 1,762 Bytes
bbeeccb
 
 
 
 
 
 
 
 
 
70275d5
 
bbeeccb
8e3da86
 
 
d952196
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbeeccb
 
979c61d
 
bbeeccb
 
 
 
01a4210
 
 
 
bbeeccb
d146709
01a4210
bbeeccb
 
 
 
36bdb04
 
 
 
 
 
 
bbeeccb
 
45f763a
bbeeccb
 
d146709
 
 
 
 
 
 
45f763a
d146709
87c6c17
 
d146709
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
license: creativeml-openrail-m
tags:
- pytorch
- diffusers
- stable-diffusion
- text-to-image
- diffusion-models-class
- dreambooth-hackathon
- wildcard
datasets:
- TrpFrog/trpfrog-icons
widget:
- text: a photo of trpfrog
  output:
    url: output3.png
- text: a photo of trpfrog in spring
  output:
    url: spring.png
- text: a photo of trpfrog in summer
  output:
    url: summer.png
- text: a photo of trpfrog in autumn
  output:
    url: autumn.png
- text: a photo of trpfrog in winter
  output:
    url: winter.png
- text: a photo of trpfrog in fire
  output:
    url: output.png
- text: a photo of trpfrog growing shiitake mushrooms
  output:
    url: output2.png

---

# TrpFrog Diffusion
<Gallery />

This is a Stable Diffusion model fine-tuned on the trpfrog concept with DreamBooth. It can be used by modifying the `instance_prompt`: **a photo of trpfrog**

## Description
TrpFrog ([@Trpfrog](https://twitter.com/trpfrog?s=21&t=GcDGy74adYhOBYxX9HloOg)) is a famous Japanese Twitter comedian.

Below is a screenshot of the site he is creating.
![](trpfrog.png)

This is a fine-tuned model of Stable Diffusion with the powerful help of Dreambooth. 
The model is made specifically for TrpFrog and faithfully reproduces its appearance.



## Usage
First install the necessary packages.

```bash
pip install diffusers transformers accelerate scipy safetensors
```

The image can then be generated with the following script.

```python
import torch
from diffusers import StableDiffusionPipeline

keyword = "trpfrog"
prompt = f"a photo of {keyword}"

model_id = "Prgckwb/trpfrog-diffusion"

pipe = StableDiffusionPipeline.from_pretrained(
    model_id, torch_dtype=torch.float16
).to("cuda")

image = pipe(prompt).images[0]
image.save("trpfrog.jpg")
```