simple how to diffusers
#3
by
radames
- opened
README.md
CHANGED
@@ -37,6 +37,22 @@ if you enjoy this consider buying me a coffee (ノ◕ヮ◕)ノ*:・゚✧
|
|
37 |
<a href='https://ko-fi.com/S6S6FUYKY' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
38 |
|
39 |
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
# license
|
42 |
This model is licensed under a modified CreativeML OpenRAIL-M license.
|
|
|
37 |
<a href='https://ko-fi.com/S6S6FUYKY' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
38 |
|
39 |
----
|
40 |
+
## Use with diffusers
|
41 |
+
|
42 |
+
How to use it with [diffusers](https://github.com/huggingface/diffusers)
|
43 |
+
|
44 |
+
```python
|
45 |
+
|
46 |
+
import torch
|
47 |
+
from diffusers import StableDiffusionPipeline, DDIMScheduler
|
48 |
+
|
49 |
+
scheduler = DDIMScheduler.from_pretrained("proximasanfinetuning/fantassified_icons_v2", subfolder="scheduler")
|
50 |
+
pipe = StableDiffusionPipeline.from_pretrained("proximasanfinetuning/fantassified_icons_v2", scheduler=scheduler).to("cuda")
|
51 |
+
prompt = "A lemont themed high quality hamburguer"
|
52 |
+
images = pipe(prompt, num_images_per_prompt=6, num_inference_steps=25).images
|
53 |
+
images[0]
|
54 |
+
|
55 |
+
```
|
56 |
|
57 |
# license
|
58 |
This model is licensed under a modified CreativeML OpenRAIL-M license.
|