datasets
datasets copied to clipboard
Fix for bug 2889 - Loading SUN397 crashed.
Thank you for your contribution!
Please read https://www.tensorflow.org/datasets/contribute#pr_checklist to make sure your PR follows the guidelines.
Fixed issue 2889 - Loading SUN397 crashed
- Dataset Name: sun397
- Issue Reference: Issue 2889
Description
A very small, surgical fix that allows the sun397 dataset to be downloaded and installed without issue. I made two small changes:
- I added a file that could not be decoded to the pre-existing
_SUN397_IGNORE_IMAGES
list. - Even though the list
_SUN397_IGNORE_IMAGES
was present in the code, it was never referred to. So all I did was add anif
statement in the main decoding loop that would ignore any file in the_SUN397_IGNORE_IMAGES
list.
Checklist
- [x] Run
download_and_prepare
successfully - [x] Lint code