tfds-nightly 4.9.9.dev202507160045__py3-none-any.whl → 4.9.9.dev202507170045__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tensorflow_datasets/core/dataset_builders/croissant_builder.py +5 -0
- tensorflow_datasets/core/dataset_builders/croissant_builder_test.py +9 -0
- {tfds_nightly-4.9.9.dev202507160045.dist-info → tfds_nightly-4.9.9.dev202507170045.dist-info}/METADATA +1 -1
- {tfds_nightly-4.9.9.dev202507160045.dist-info → tfds_nightly-4.9.9.dev202507170045.dist-info}/RECORD +9 -9
- {tfds_nightly-4.9.9.dev202507160045.dist-info → tfds_nightly-4.9.9.dev202507170045.dist-info}/WHEEL +0 -0
- {tfds_nightly-4.9.9.dev202507160045.dist-info → tfds_nightly-4.9.9.dev202507170045.dist-info}/entry_points.txt +0 -0
- {tfds_nightly-4.9.9.dev202507160045.dist-info → tfds_nightly-4.9.9.dev202507170045.dist-info}/licenses/AUTHORS +0 -0
- {tfds_nightly-4.9.9.dev202507160045.dist-info → tfds_nightly-4.9.9.dev202507170045.dist-info}/licenses/LICENSE +0 -0
- {tfds_nightly-4.9.9.dev202507160045.dist-info → tfds_nightly-4.9.9.dev202507170045.dist-info}/top_level.txt +0 -0
@@ -48,6 +48,7 @@ from tensorflow_datasets.core import dataset_info
|
|
48
48
|
from tensorflow_datasets.core import download
|
49
49
|
from tensorflow_datasets.core import split_builder as split_builder_lib
|
50
50
|
from tensorflow_datasets.core import splits as splits_lib
|
51
|
+
from tensorflow_datasets.core.features import audio_feature
|
51
52
|
from tensorflow_datasets.core.features import bounding_boxes
|
52
53
|
from tensorflow_datasets.core.features import feature as feature_lib
|
53
54
|
from tensorflow_datasets.core.features import features_dict
|
@@ -177,6 +178,10 @@ def datatype_converter(
|
|
177
178
|
feature = bounding_boxes.BBoxFeature(
|
178
179
|
doc=field.description, bbox_format=None
|
179
180
|
)
|
181
|
+
elif field_data_type == mlc.DataType.AUDIO_OBJECT:
|
182
|
+
feature = audio_feature.Audio(
|
183
|
+
doc=field.description, sample_rate=field.source.sampling_rate
|
184
|
+
)
|
180
185
|
else:
|
181
186
|
raise ValueError(f'Unknown data type: {field_data_type}.')
|
182
187
|
|
@@ -20,6 +20,7 @@ import pytest
|
|
20
20
|
from tensorflow_datasets import testing
|
21
21
|
from tensorflow_datasets.core import file_adapters
|
22
22
|
from tensorflow_datasets.core.dataset_builders import croissant_builder
|
23
|
+
from tensorflow_datasets.core.features import audio_feature
|
23
24
|
from tensorflow_datasets.core.features import bounding_boxes
|
24
25
|
from tensorflow_datasets.core.features import features_dict
|
25
26
|
from tensorflow_datasets.core.features import image_feature
|
@@ -150,6 +151,14 @@ def test_simple_datatype_converter(
|
|
150
151
|
image_feature.Image,
|
151
152
|
None,
|
152
153
|
),
|
154
|
+
(
|
155
|
+
mlc.Field(
|
156
|
+
data_types=mlc.DataType.AUDIO_OBJECT,
|
157
|
+
description="Audio feature",
|
158
|
+
),
|
159
|
+
audio_feature.Audio,
|
160
|
+
None,
|
161
|
+
),
|
153
162
|
(
|
154
163
|
mlc.Field(
|
155
164
|
data_types=mlc.DataType.BOUNDING_BOX,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tfds-nightly
|
3
|
-
Version: 4.9.9.
|
3
|
+
Version: 4.9.9.dev202507170045
|
4
4
|
Summary: tensorflow/datasets is a library of datasets ready to use with TensorFlow.
|
5
5
|
Home-page: https://github.com/tensorflow/datasets
|
6
6
|
Download-URL: https://github.com/tensorflow/datasets/tags
|
{tfds_nightly-4.9.9.dev202507160045.dist-info → tfds_nightly-4.9.9.dev202507170045.dist-info}/RECORD
RENAMED
@@ -141,8 +141,8 @@ tensorflow_datasets/core/data_sources/python_test.py,sha256=O3yqMPx40JlHN0uFfZPN
|
|
141
141
|
tensorflow_datasets/core/dataset_builders/__init__.py,sha256=StTA3euephqDZdpTzJQgfWNqB5inZosrAhaWg2BOeio,1945
|
142
142
|
tensorflow_datasets/core/dataset_builders/adhoc_builder.py,sha256=QVE8wWGPOgILPTC27Q28QZ3KIi5N64OGOfKpTq4W4_0,9216
|
143
143
|
tensorflow_datasets/core/dataset_builders/adhoc_builder_test.py,sha256=yhRwrznK78MvHeWGRggnMTiyx_SlR1z30iD5VU3Gweo,13096
|
144
|
-
tensorflow_datasets/core/dataset_builders/croissant_builder.py,sha256=
|
145
|
-
tensorflow_datasets/core/dataset_builders/croissant_builder_test.py,sha256=
|
144
|
+
tensorflow_datasets/core/dataset_builders/croissant_builder.py,sha256=d1LoRlxHYE55FUCsN2zvAuZ8HN3zPIoGa9oFnCdgyOI,16137
|
145
|
+
tensorflow_datasets/core/dataset_builders/croissant_builder_test.py,sha256=MaLnIg0MGpnzOcVWmZWi_xlNfdXMsPZJjECkj9HNVaI,10807
|
146
146
|
tensorflow_datasets/core/dataset_builders/huggingface_dataset_builder.py,sha256=Loq3qeGk1Ias-d2oT_dK47BRNgTA4LKJchNGh7aA4a0,18313
|
147
147
|
tensorflow_datasets/core/dataset_builders/huggingface_dataset_builder_test.py,sha256=6N3DLsry9LhDqhpleaoXrrhaGiLJMBgUlwDnAji-1fI,4389
|
148
148
|
tensorflow_datasets/core/dataset_builders/view_builder.py,sha256=eaCtjN5Vg4rK8JD3auA4PhF9mjH5HvQ9dslDX8LbwyM,11907
|
@@ -2468,10 +2468,10 @@ tensorflow_datasets/vision_language/wit/wit_test.py,sha256=PXS8DMNW-MDrT2p5oy4Ic
|
|
2468
2468
|
tensorflow_datasets/vision_language/wit_kaggle/__init__.py,sha256=vGwSGeM8WE4Q-l0-eEE1sBojmk6YT0l1OO60AWa4Q40,719
|
2469
2469
|
tensorflow_datasets/vision_language/wit_kaggle/wit_kaggle.py,sha256=q-vX_FBzIwsFxL4sY9vuyQ3UQD2PLM4yhUR4U6l-qao,16903
|
2470
2470
|
tensorflow_datasets/vision_language/wit_kaggle/wit_kaggle_test.py,sha256=ZymHT1NkmD-pUnh3BmM3_g30c5afsWYnmqDD9dVyDSA,1778
|
2471
|
-
tfds_nightly-4.9.9.
|
2472
|
-
tfds_nightly-4.9.9.
|
2473
|
-
tfds_nightly-4.9.9.
|
2474
|
-
tfds_nightly-4.9.9.
|
2475
|
-
tfds_nightly-4.9.9.
|
2476
|
-
tfds_nightly-4.9.9.
|
2477
|
-
tfds_nightly-4.9.9.
|
2471
|
+
tfds_nightly-4.9.9.dev202507170045.dist-info/licenses/AUTHORS,sha256=nvBG4WwfgjuOu1oZkuQKw9kg7X6rve679ObS-YDDmXg,309
|
2472
|
+
tfds_nightly-4.9.9.dev202507170045.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
2473
|
+
tfds_nightly-4.9.9.dev202507170045.dist-info/METADATA,sha256=PKbFqI0M1cqRNWGuVlz1bakWea01GdnLyvWl-ImEE2g,11694
|
2474
|
+
tfds_nightly-4.9.9.dev202507170045.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
2475
|
+
tfds_nightly-4.9.9.dev202507170045.dist-info/entry_points.txt,sha256=eHEL7nF5y1uCY2FgkuYIdE062epJXlAQTSdq89px4p4,73
|
2476
|
+
tfds_nightly-4.9.9.dev202507170045.dist-info/top_level.txt,sha256=bAevmk9209s_oxVZVlN6hSDIVS423qrMQvmcWSvW4do,20
|
2477
|
+
tfds_nightly-4.9.9.dev202507170045.dist-info/RECORD,,
|
{tfds_nightly-4.9.9.dev202507160045.dist-info → tfds_nightly-4.9.9.dev202507170045.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|