Instructions to use Falah/islamicdiffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Falah/islamicdiffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Falah/islamicdiffusion", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
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 |
+
|