Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# How to use
|
2 |
+
|
3 |
+
***To prompt you can use the following code***
|
4 |
+
|
5 |
+
```python
|
6 |
+
from diffusers import StableDiffusionPipeline
|
7 |
+
|
8 |
+
model_path = "Dipl0/pepe-diffuser"
|
9 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16)
|
10 |
+
pipe.to("cuda")
|
11 |
+
|
12 |
+
prompt = "pepe surfing on the moon"
|
13 |
+
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
|
14 |
+
image.save(prompt.replace(" ","_") + ".png")
|
15 |
+
```
|