kohya_ss icon indicating copy to clipboard operation
kohya_ss copied to clipboard

Images with uppercase extension don't get processed

Open Phrosh opened this issue 2 years ago • 3 comments

While training LoRA and having images with .jpg and .JPEG, all images count to "num train images" and "patches per epoch" but the files with an uppercase extension are ignored in the LoRA steps. They are ignored for the important part.

Phrosh avatar Feb 21 '23 14:02 Phrosh

Yeah... this is because the kohya_ss trainer code (and mine by extension) only check for lowercase extension... I could fix my code but kohya_ss will also need to fix his... I guess I could do my part ;-) Will add it to the list of things to do.

bmaltais avatar Feb 24 '23 12:02 bmaltais

I will wait for kohya to fix the issue in his code before updating mine... to be consistent.

bmaltais avatar Feb 25 '23 01:02 bmaltais

Would it not be "better" to just have, for example the "prepare folders" preprocessing just rename these to an extension that will work?

JS3910 avatar Feb 25 '23 16:02 JS3910