update
Browse files
README.md
CHANGED
@@ -11,3 +11,20 @@ Test the concept via A1111 Colab [fast-Colab-A1111](https://colab.research.googl
|
|
11 |
|
12 |
Sample pictures of this concept:
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
Sample pictures of this concept:
|
13 |
|
14 |
+
|
15 |
+
### 🧨 Diffusers
|
16 |
+
|
17 |
+
This model can be used just like any other Stable Diffusion model. For more information,
|
18 |
+
please have a look at the [Stable Diffusion Pipeline](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
|
19 |
+
|
20 |
+
```python
|
21 |
+
from diffusers import StableDiffusionPipeline
|
22 |
+
import torch
|
23 |
+
model_id = "Falah/islamicdiffusion"
|
24 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
25 |
+
pipe = pipe.to("cuda")
|
26 |
+
prompt = "photo, a home church in the middle of a field of crops, bright cinematic lighting, gopro, fisheye lens style islamicdiffusion"
|
27 |
+
image = pipe(prompt).images[0]
|
28 |
+
image.save("./result.jpg")
|
29 |
+
```
|
30 |
+
|