Instructions to use ChenHe727/EdgeDiffuse_r4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ChenHe727/EdgeDiffuse_r4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ChenHe727/EdgeDiffuse_r4", 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 Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
### To Start
|
| 2 |
|
| 3 |
from diffusers import StableDiffusionPipeline
|
|
|
|
| 4 |
import torch
|
| 5 |
|
| 6 |
pipe = StableDiffusionPipeline.from_pretrained("ChenHe727/EdgeDiffuse_r4", torch_dtype=torch.float16)
|
|
|
|
| 7 |
pipe = pipe.to("cuda")
|
| 8 |
|
| 9 |
image = pipe("a photo of a cat", num_inference_steps=4, guidance_scale=0.0).images[0]
|
|
|
|
| 1 |
### To Start
|
| 2 |
|
| 3 |
from diffusers import StableDiffusionPipeline
|
| 4 |
+
|
| 5 |
import torch
|
| 6 |
|
| 7 |
pipe = StableDiffusionPipeline.from_pretrained("ChenHe727/EdgeDiffuse_r4", torch_dtype=torch.float16)
|
| 8 |
+
|
| 9 |
pipe = pipe.to("cuda")
|
| 10 |
|
| 11 |
image = pipe("a photo of a cat", num_inference_steps=4, guidance_scale=0.0).images[0]
|