Instructions to use mlii0117/sd1.5_MPECT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mlii0117/sd1.5_MPECT with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mlii0117/sd1.5_MPECT", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,7 +38,7 @@ from diffusers import StableDiffusionInstructPix2PixPipeline
|
|
| 38 |
import torch
|
| 39 |
|
| 40 |
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(
|
| 41 |
-
"
|
| 42 |
).to("cuda")
|
| 43 |
generator = torch.Generator("cuda").manual_seed(0)
|
| 44 |
```
|
|
|
|
| 38 |
import torch
|
| 39 |
|
| 40 |
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(
|
| 41 |
+
"mlii0117/sd1.5_MPECT", torch_dtype=torch.float16
|
| 42 |
).to("cuda")
|
| 43 |
generator = torch.Generator("cuda").manual_seed(0)
|
| 44 |
```
|