Update README.md
Browse files
README.md
CHANGED
|
@@ -40,6 +40,7 @@ pip install diffusers transformers accelerate scipy safetensors
|
|
| 40 |
The image can then be generated with the following script.
|
| 41 |
|
| 42 |
```python
|
|
|
|
| 43 |
from diffusers import StableDiffusionPipeline
|
| 44 |
|
| 45 |
keyword = "trpfrog"
|
|
@@ -49,7 +50,7 @@ model_id = "Prgckwb/trpfrog-diffusion"
|
|
| 49 |
|
| 50 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 51 |
model_id, torch_dtype=torch.float16
|
| 52 |
-
).to(
|
| 53 |
|
| 54 |
image = pipe(prompt).images[0]
|
| 55 |
image.save("trpfrog.jpg")
|
|
|
|
| 40 |
The image can then be generated with the following script.
|
| 41 |
|
| 42 |
```python
|
| 43 |
+
import torch
|
| 44 |
from diffusers import StableDiffusionPipeline
|
| 45 |
|
| 46 |
keyword = "trpfrog"
|
|
|
|
| 50 |
|
| 51 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 52 |
model_id, torch_dtype=torch.float16
|
| 53 |
+
).to("cuda")
|
| 54 |
|
| 55 |
image = pipe(prompt).images[0]
|
| 56 |
image.save("trpfrog.jpg")
|