Downscaling images does not work properly with uppercase suffixes
Opened this issue · 2 comments
JasperSteringa commented
Describe the bug
When using a mix of lower- and uppercase suffixes in the image dataset, the copying of images to downscaled directories will terminate once reaching a uppercase suffix.
To Reproduce
Steps to reproduce the behavior:
- Create dataset with variation of '.jpg' and '.JPG' files
- Run
ns-process-data images
on this dataset - Verify the content of images, as well as images_x created by
ns-process-data images
. - All files are present in images, but in images_x all files are missing after the first file with uppercase suffix.
ns-train
will throw a FileNotFoundError, since one or more image files are missing.
Expected behavior
The downscaling by ffmpeg should be performed on files with both upper- and lowercase suffixes.
Alternative fix
ns-process-data
could force the suffixes to lowercase before downscaling, i.e. when copying/renaming files to the images directory.
JasperSteringa commented
@brentyi As this is closed, has a fix been implemented?
brentyi commented
Sorry, I didn't intend to close this!!