Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ def __init__(self, target_pixels=None, **kwargs):
**kwargs: keyword arguments forward to super.
"""
super(DiabeticRetinopathyDetectionConfig, self).__init__(
version=tfds.core.Version(
"3.0.0",
"New split API (https://tensorflow.org/datasets/splits)"),
version=tfds.core.Version("3.0.0"),
release_notes="New split API (https://tensorflow.org/datasets/splits)",
**kwargs)
self._target_pixels = target_pixels

Expand Down
6 changes: 4 additions & 2 deletions tensorflow_datasets/image_classification/horses_or_humans.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
class HorsesOrHumans(tfds.core.GeneratorBasedBuilder):
"""Horses or Humans dataset."""

VERSION = tfds.core.Version(
"3.0.0", "New split API (https://tensorflow.org/datasets/splits)")
VERSION = tfds.core.Version("3.0.0")
RELEASE_NOTES = {
"3.0.0": "New split API (https://tensorflow.org/datasets/splits)",
}

def _info(self):
return tfds.core.DatasetInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,8 @@ def __init__(self, *, corruption_type=None, severity=1, **kwargs):
self.corruption_type = corruption_type
self.severity = severity


_VERSION = tfds.core.Version('3.1.0')

# Version history:
# 3.1.0: Implement missing corruptions. Fix crop/resize ordering, file encoding
# 0.0.1: Initial dataset.


_VERSION = tfds.core.Version('3.1.0')

def _make_builder_configs():
"""Construct a list of BuilderConfigs.

Expand Down Expand Up @@ -159,6 +153,11 @@ def _decode_and_center_crop(image_bytes):
class Imagenet2012Corrupted(Imagenet2012):
"""Corrupted ImageNet2012 dataset."""
BUILDER_CONFIGS = _make_builder_configs()
RELEASE_NOTES = {
"0.0.1": "Initial dataset",
"3.1.0":
"Implement missing corruptions. Fix crop/resize ordering, file encoding",
}

def _info(self):
"""Basic information of the dataset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
class Imagenet2012Real(tfds.core.GeneratorBasedBuilder):
"""ImageNet validation images with ReaL labels."""

VERSION = tfds.core.Version('1.0.0', 'Initial release.')
VERSION = tfds.core.Version('1.0.0')
RELEASE_NOTES = {
'1.0.0': 'Initial release',
}

MANUAL_DOWNLOAD_INSTRUCTIONS = """\
manual_dir should contain `ILSVRC2012_img_val.tar` file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ class Imagenet2012Subset(Imagenet2012):
tfds.core.BuilderConfig( # pylint: disable=g-complex-comprehension
name=subset_size,
description='{} of total ImageNet training set.'.format(subset_size),
version=tfds.core.Version(
'5.0.0', ''),
version=tfds.core.Version('5.0.0'),
) for subset_size in SUBSET2FILES
]

Expand Down Expand Up @@ -151,4 +150,3 @@ def _generate_examples(self, archive, subset=None, validation_labels=None):
'label': label,
}
yield image_fname, record