Instructions to use Mohan-diffuser/lora_platypus_sd_15 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Mohan-diffuser/lora_platypus_sd_15 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Mohan-diffuser/lora_platypus_sd_15") prompt = "platypus" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -46,6 +46,8 @@ prompt = "platypus"
|
|
| 46 |
image = pipeline(prompt).images[0]
|
| 47 |
```
|
| 48 |
|
|
|
|
|
|
|
| 49 |
## Varying The LoRA Scale
|
| 50 |
```python
|
| 51 |
gen_images=[]
|
|
@@ -71,6 +73,8 @@ for i,ax in enumerate(axes):
|
|
| 71 |
ax.axis('off')
|
| 72 |
plt.show()
|
| 73 |
```
|
|
|
|
|
|
|
| 74 |
|
| 75 |
## Effect of different prompts
|
| 76 |
|
|
@@ -110,3 +114,5 @@ for i,ax in enumerate(axes):
|
|
| 110 |
ax.axis('off')
|
| 111 |
plt.show()
|
| 112 |
```
|
|
|
|
|
|
|
|
|
| 46 |
image = pipeline(prompt).images[0]
|
| 47 |
```
|
| 48 |
|
| 49 |
+
|
| 50 |
+
|
| 51 |
## Varying The LoRA Scale
|
| 52 |
```python
|
| 53 |
gen_images=[]
|
|
|
|
| 73 |
ax.axis('off')
|
| 74 |
plt.show()
|
| 75 |
```
|
| 76 |
+
### Result
|
| 77 |
+

|
| 78 |
|
| 79 |
## Effect of different prompts
|
| 80 |
|
|
|
|
| 114 |
ax.axis('off')
|
| 115 |
plt.show()
|
| 116 |
```
|
| 117 |
+
### Result
|
| 118 |
+

|