kohya-ss / kohya-ss/sd-scripts
JPEGXL images not cropping/bucketing correctly
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.2k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
All JPEGXL images gets placed into the same bucket regardless of image size or bucket settings with a mean of 0.0.
Without --bucket_no_upscale the bucket has my selected resolution of 768,768.
With --bucket_no_upscale the bucket has the resolution of the negative size of the bucket_reso_steps, -128,-128.
After running some testing and training, images are not cropped but are stretched to fit.
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is identified; start by reproducing JPEGXL training with the reported bucket settings, including --bucket_no_upscale, bucket_reso_steps, and 768,768 resolution. Trace the image bucketing and cropping path, then verify that JPEGXL images receive size-appropriate buckets, report a nonzero mean where expected, and are cropped rather than stretched.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100