Instructions to use rohanath/flux-kontext-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use rohanath/flux-kontext-dev 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("rohanath/flux-kontext-dev", 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
Upload 5 files
Browse files
transformer/diffusion_pytorch_model-00001-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5414f9ba3d3945512769b1b5ecd41122c8bcfebb7ec906a3ac60daf371d38946
|
| 3 |
+
size 9983040304
|
transformer/diffusion_pytorch_model-00002-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6fa67a12833c30040f794365a187cac8eef2e467152b84319034ae2828d9d03
|
| 3 |
+
size 9949328904
|
transformer/diffusion_pytorch_model-00003-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:464f5343b6b06a2337d8c34b72ebec38219ebbfb7aafecbc9b342dc031417e7a
|
| 3 |
+
size 3870584832
|
transformer/diffusion_pytorch_model.safetensorsindex.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|