Currently, if there is an error while reading an image during precache, such as due to PIL.Image.DecompressionBombError, the entire training run fails with an unhelpful error that doesn't even say which file failed. This patch changes the loader to skip images which can't be loaded.
Issue ticket number and link (if applicable)
Checklist before requesting a review
[ + ] This is based on the /dev branch (Or a fork of it)
[ + ] This was created or at least validated using a proper IDE
[ + ] I have tested this code and validated any modified functions
[ N/A ] I have added the appropriate documentation and hint strings if adding or changing a user-facing feature
Describe your changes
Currently, if there is an error while reading an image during precache, such as due to PIL.Image.DecompressionBombError, the entire training run fails with an unhelpful error that doesn't even say which file failed. This patch changes the loader to skip images which can't be loaded.
Issue ticket number and link (if applicable)
Checklist before requesting a review