mmcv
mmcv copied to clipboard
Add try-catch logic to handle image loading failure in LoadImageFromFile
Describe the feature When loading an unreadable image file, the loading transform should
- catch the failure
- log the failure and the corresponding image path somewhere
- return None
Motivation It is common that the image files are broken in the dataset. To continue training after loading such unreadable image files. The loading transform should handle this failure.
I am submitting a pull request in order to fix this!