Instructions to use AlSr/HugFace01 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AlSr/HugFace01 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AlSr/HugFace01", 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
|
@@ -30,7 +30,6 @@ The authors released the following checkpoints:
|
|
| 30 |
|
| 31 |
## Usage examples in 🧨 diffusers
|
| 32 |
|
| 33 |
-
First make sure you have installed all the dependencies:
|
| 34 |
|
| 35 |
```bash
|
| 36 |
pip install transformers accelerate -q
|
|
@@ -50,7 +49,7 @@ pipe = ShapEPipeline.from_pretrained(repo).to("cuda")
|
|
| 50 |
|
| 51 |
|
| 52 |
guidance_scale = 15.0
|
| 53 |
-
prompt = "
|
| 54 |
images = pipe(
|
| 55 |
prompt,
|
| 56 |
guidance_scale=guidance_scale,
|
|
|
|
| 30 |
|
| 31 |
## Usage examples in 🧨 diffusers
|
| 32 |
|
|
|
|
| 33 |
|
| 34 |
```bash
|
| 35 |
pip install transformers accelerate -q
|
|
|
|
| 49 |
|
| 50 |
|
| 51 |
guidance_scale = 15.0
|
| 52 |
+
prompt = "3D object which resembles an alien"
|
| 53 |
images = pipe(
|
| 54 |
prompt,
|
| 55 |
guidance_scale=guidance_scale,
|