File size: 472 Bytes
124b91d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
---
license: creativeml-openrail-m
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
inference: true
---
To use the mode for inference, just load it like a normal stable diffusion pipeline:
```python
from diffusers import StableDiffusionPipeline
model_path = "johnowhitaker/rainbowdiffusion"
pipe = StableDiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16)
pipe.to("cuda")
image = pipe(prompt="A cat").images[0]
image
``` |