Skip to content

Commit 89f4fe6

Browse files
Merge pull request #2523 from NikhilBartwal:update_release_note6
PiperOrigin-RevId: 335584640
2 parents 6a319f8 + 4bcc593 commit 89f4fe6

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

tensorflow_datasets/image_classification/diabetic_retinopathy_detection.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ def __init__(self, target_pixels=None, **kwargs):
5555
**kwargs: keyword arguments forward to super.
5656
"""
5757
super(DiabeticRetinopathyDetectionConfig, self).__init__(
58-
version=tfds.core.Version(
59-
"3.0.0",
60-
"New split API (https://tensorflow.org/datasets/splits)"),
58+
version=tfds.core.Version("3.0.0"),
59+
release_notes={
60+
"3.0.0": "New split API (https://tensorflow.org/datasets/splits)",
61+
},
6162
**kwargs)
6263
self._target_pixels = target_pixels
6364

tensorflow_datasets/image_classification/horses_or_humans.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
class HorsesOrHumans(tfds.core.GeneratorBasedBuilder):
4242
"""Horses or Humans dataset."""
4343

44-
VERSION = tfds.core.Version(
45-
"3.0.0", "New split API (https://tensorflow.org/datasets/splits)")
44+
VERSION = tfds.core.Version("3.0.0")
45+
RELEASE_NOTES = {
46+
"3.0.0": "New split API (https://tensorflow.org/datasets/splits)",
47+
}
4648

4749
def _info(self):
4850
return tfds.core.DatasetInfo(

tensorflow_datasets/image_classification/imagenet2012_corrupted.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ def __init__(self, *, corruption_type=None, severity=1, **kwargs):
100100

101101

102102
_VERSION = tfds.core.Version('3.1.0')
103-
104-
# Version history:
105-
# 3.1.0: Implement missing corruptions. Fix crop/resize ordering, file encoding
106-
# 0.0.1: Initial dataset.
103+
_RELEASE_NOTES = {
104+
'0.0.1': 'Initial dataset',
105+
'3.1.0':
106+
'Implement missing corruptions. Fix crop/resize ordering, file encoding',
107+
}
107108

108109

109110
def _make_builder_configs():
@@ -125,6 +126,7 @@ def _make_builder_configs():
125126
Imagenet2012CorruptedConfig(
126127
name=name_str,
127128
version=_VERSION,
129+
release_notes=_RELEASE_NOTES,
128130
description=description_str,
129131
corruption_type=each_corruption,
130132
severity=each_severity,

tensorflow_datasets/image_classification/imagenet2012_real.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@
5858
class Imagenet2012Real(tfds.core.GeneratorBasedBuilder):
5959
"""ImageNet validation images with ReaL labels."""
6060

61-
VERSION = tfds.core.Version('1.0.0', 'Initial release.')
61+
VERSION = tfds.core.Version('1.0.0')
62+
RELEASE_NOTES = {
63+
'1.0.0': 'Initial release',
64+
}
6265

6366
MANUAL_DOWNLOAD_INSTRUCTIONS = """\
6467
manual_dir should contain `ILSVRC2012_img_val.tar` file.

tensorflow_datasets/image_classification/imagenet2012_subset.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ class Imagenet2012Subset(Imagenet2012):
7171
tfds.core.BuilderConfig( # pylint: disable=g-complex-comprehension
7272
name=subset_size,
7373
description='{} of total ImageNet training set.'.format(subset_size),
74-
version=tfds.core.Version(
75-
'5.0.0', ''),
74+
version=tfds.core.Version('5.0.0'),
7675
) for subset_size in SUBSET2FILES
7776
]
7877

@@ -151,4 +150,3 @@ def _generate_examples(self, archive, subset=None, validation_labels=None):
151150
'label': label,
152151
}
153152
yield image_fname, record
154-

0 commit comments

Comments
 (0)