File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tensorflow_datasets/image_classification Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 43
43
)
44
44
_NUM_CORRUPT_IMAGES = 1738
45
45
_DESCRIPTION = (
46
- "A large set of images of cats and dogs. "
47
- "There are %d corrupted images that are dropped." % _NUM_CORRUPT_IMAGES
46
+ f "A large set of images of cats and dogs. "
47
+ f "There are { _NUM_CORRUPT_IMAGES } corrupted images that are dropped."
48
48
)
49
49
50
50
_NAME_RE = re .compile (r"^PetImages[\\/](Cat|Dog)[\\/]\d+\.jpg$" )
@@ -127,7 +127,7 @@ def _generate_examples(self, archive):
127
127
128
128
if num_skipped != _NUM_CORRUPT_IMAGES :
129
129
raise ValueError (
130
- "Expected %d corrupt images, but found %d "
131
- % ( _NUM_CORRUPT_IMAGES , num_skipped )
130
+ f "Expected { _NUM_CORRUPT_IMAGES } corrupt images, but found"
131
+ f" { num_skipped } ."
132
132
)
133
133
logging .warning ("%d images were corrupted and were skipped" , num_skipped )
You can’t perform that action at this time.
0 commit comments