datasets icon indicating copy to clipboard operation
datasets copied to clipboard

Fix for bug 2889 - Loading SUN397 crashed.

Open jfb54 opened this issue 2 years ago • 0 comments

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 an if 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

jfb54 avatar May 24 '22 20:05 jfb54