How does bucketing actually work? If I turn it off will it cropped my image? #2861
Unanswered
askladd-anon
asked this question in
Q&A
Replies: 1 comment
-
If you don't turn on buckets, everything gets cropped to the same size and 1:1 ratio. I combed through the bucketing code and came up with these guidelines for how to make sure your image will get cropped correctly to make the best LoRA: https://civitai.com/articles/7777/detailed-flux-training-guide-dataset-preparation#cropping-and-aspect-ratios-skae1og5m That same guide should also answer your questions about batching and how it works with bucketing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't actually understand how bucketing work. All my images is formatted with sdxl training resolution native size, which is
Yet, when I activate bucketing it will still put my image into buckets that is not in these resolutions for some reason. So I decided to turn off bucketing, since from this sentence below from the documentation, I assume it will not do anything to my image, if for each aspect ratio, all the images have the same reso.
But I notice, that if i use batch size more than 1, the resulting lora will output the subject out of frame for some reason. I didn't notice it when using batch size=1. So, If i don't turn on bucketing, will kohya crop all my images to 1:1, or not? How do i make sure kohya do not touch my images at all? How does batching work, if some aspect ratio only have one images for example, will it crop another images to fit to its aspect ratio, if i turn off bucketing?
Beta Was this translation helpful? Give feedback.
All reactions