Instructions to use GeneralAwareness/MirrorMask with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use GeneralAwareness/MirrorMask with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("GeneralAwareness/MirrorMask", 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
Commit ·
5f0b3b6
1
Parent(s): 73764e7
Update README.md
Browse files
README.md
CHANGED
|
@@ -62,7 +62,7 @@ You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/op
|
|
| 62 |
```python
|
| 63 |
from diffusers import StableDiffusionPipeline
|
| 64 |
import torch
|
| 65 |
-
model_id = "GeneralAwareness/
|
| 66 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 67 |
pipe = pipe.to("cuda")
|
| 68 |
prompt = "a woman by mirrormask"
|
|
|
|
| 62 |
```python
|
| 63 |
from diffusers import StableDiffusionPipeline
|
| 64 |
import torch
|
| 65 |
+
model_id = "GeneralAwareness/MirrorMask"
|
| 66 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 67 |
pipe = pipe.to("cuda")
|
| 68 |
prompt = "a woman by mirrormask"
|