Instructions to use jasperai/Flux.1-dev-Controlnet-Depth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use jasperai/Flux.1-dev-Controlnet-Depth with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("jasperai/Flux.1-dev-Controlnet-Depth", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
base_model:
|
| 3 |
- black-forest-labs/FLUX.1-dev
|
| 4 |
pipeline_tag: image-to-image
|
| 5 |
library_name: diffusers
|
| 6 |
tags:
|
| 7 |
-
-
|
| 8 |
---
|
| 9 |
# ⚡ Flux.1-dev: Depth ControlNet ⚡
|
| 10 |
|
|
|
|
| 1 |
---
|
| 2 |
+
license_name: flux-1-dev-non-commercial-license
|
| 3 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 4 |
base_model:
|
| 5 |
- black-forest-labs/FLUX.1-dev
|
| 6 |
pipeline_tag: image-to-image
|
| 7 |
library_name: diffusers
|
| 8 |
tags:
|
| 9 |
+
- ControlNet
|
| 10 |
---
|
| 11 |
# ⚡ Flux.1-dev: Depth ControlNet ⚡
|
| 12 |
|