huggingface / huggingface/diffusers
Generated image is cropped when using smaller output size to reduce VRAM and processing time in Flux Kontext
Open
stale
- Dominant language
- Python
- Stars
- 34.5k
- Forks
- 7.3k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 91
Description
Use `max_area` in FluxKontextPipeline, default `max_area=1024**2`. I set `max_area=768**2`, and output is cropped
Original image:

Output with `max_area=1024**2`:
Output with `max_area=768**2`:
Contributor guide
Research direction
Start with FluxKontextPipeline and reproduce the reported behavior using max_area=1024**2 and max_area=768**2. Compare the generated outputs with the original image and trace how the smaller max_area is applied; done means the reduced-size output is not unexpectedly cropped.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100