Skip to content

Commit

Permalink
Merge pull request #2523 from NikhilBartwal:update_release_note6
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 335584640
  • Loading branch information
copybara-github committed Oct 6, 2020
2 parents 6a319f8 + 4bcc593 commit 89f4fe6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ 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={
"3.0.0": "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 @@ -100,10 +100,11 @@ def __init__(self, *, corruption_type=None, severity=1, **kwargs):


_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.
_RELEASE_NOTES = {
'0.0.1': 'Initial dataset',
'3.1.0':
'Implement missing corruptions. Fix crop/resize ordering, file encoding',
}


def _make_builder_configs():
Expand All @@ -125,6 +126,7 @@ def _make_builder_configs():
Imagenet2012CorruptedConfig(
name=name_str,
version=_VERSION,
release_notes=_RELEASE_NOTES,
description=description_str,
corruption_type=each_corruption,
severity=each_severity,
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

0 comments on commit 89f4fe6

Please sign in to comment.