Instructions to use mit-han-lab/nunchaku-flux.1-kontext-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mit-han-lab/nunchaku-flux.1-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("mit-han-lab/nunchaku-flux.1-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
Tutorial/guide how to use it
#12 opened about 1 year ago
by
GardensOfBabylon29
Create README.md
#11 opened about 1 year ago
by
li-ocean
add INT8 variant please.
#9 opened about 1 year ago
by
pikkaa
Create README.md
#7 opened about 1 year ago
by
derder
Single model file not working in Comfyui
1
#6 opened about 1 year ago
by
slisarmspy
Updating to the latest version causes Load Image nodes to not display the image.
#5 opened about 1 year ago
by
josan78
Create README.md
#4 opened about 1 year ago
by
Alvin0926