Instructions to use diffusers/FLUX.1-Depth-dev-nf4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/FLUX.1-Depth-dev-nf4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/FLUX.1-Depth-dev-nf4", 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
|
@@ -61,7 +61,7 @@ def load_conditions():
|
|
| 61 |
|
| 62 |
def main(four_bit: bool = False):
|
| 63 |
ckpt_id = "sayakpaul/FLUX.1-Depth-dev-nf4"
|
| 64 |
-
pipe = load_pipeline(
|
| 65 |
prompt, control_image = load_conditions()
|
| 66 |
image = pipe(
|
| 67 |
prompt=prompt,
|
|
|
|
| 61 |
|
| 62 |
def main(four_bit: bool = False):
|
| 63 |
ckpt_id = "sayakpaul/FLUX.1-Depth-dev-nf4"
|
| 64 |
+
pipe = load_pipeline(four_bit=four_bit)
|
| 65 |
prompt, control_image = load_conditions()
|
| 66 |
image = pipe(
|
| 67 |
prompt=prompt,
|