Instructions to use black-forest-labs/FLUX.1-Fill-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-Fill-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-Fill-dev", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Diffusion Single File
How to use black-forest-labs/FLUX.1-Fill-dev with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Outpainting Continuity Issue in Flux Fill Pro
Hey everyone,
I'm experiencing an issue with Flux Fill Pro when using the outpainting function from the original model. Instead of smoothly extending the image, the AI generates two completely different scenes instead of naturally continuing the background.
Interestingly, when we use x1.5 and x2 scaling, the expansion works correctly without breaking the continuity. However, when selecting Right, Top, Left, or Bottom, the AI seems to lose coherence and creates new elements that don't follow the original composition.
We've tried several adjustments to fix the issue, including:
Modifying the prompt to ensure the AI maintains the lighting, colors, and composition of the original image: "Extend the image while maintaining the lighting, colors and composition. Continue existing elements without adding new scenes."
Adjusting guidance (from 60 to high and low levels) to balance adherence and flexibility.
Changing diffusion steps to test differences in detail levels.
Using a mask with smooth transitions to avoid abrupt cuts.
Reducing the expansion area and making small iterations instead of a single large expansion.
Despite these efforts, the problem still occurs when using Right, Top, Left, or Bottom.
Has anyone else encountered this issue? Any ideas on how to fix it? π
Thanks in advance for your help!
