Instructions to use black-forest-labs/FLUX.1-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use black-forest-labs/FLUX.1-dev with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
convert flux from diffusers to safetensores
#76
by kigy1 - opened
helo, i need both way to convert safetensores to diffusers and from diffusers to safetensore.
thanks.
hi,have you solved your problem, could you please share to me
hi,have you solved your problem, could you please share to me
I'm only know how to convert from flux to diffusers
use this
https://github.com/huggingface/diffusers/blob/main/scripts/convert_flux_to_diffusers.py
hello ,After a morning of searching, i find the way to convert from diffusers to flux single model
https://github.com/kohya-ss/sd-scripts/blob/sd3/tools/convert_diffusers_to_flux.py