Dataset Viewer issue

#1
by gkrthk - opened

The dataset viewer is not working.

Error details:

Error code:   StreamingRowsError
Exception:    UnimplementedError
Message:      {{function_node __wrapped__IteratorGetNext_output_types_1_device_/job:localhost/replica:0/task:0/device:CPU:0}} File system scheme 'https' not implemented (file: 'https://github.com/google-research-datasets/uibert/raw/main/ref_exp/train.tfrecord') [Op:IteratorGetNext]
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 258, in get_rows_or_raise
                  return get_rows(
                File "/src/services/worker/src/worker/utils.py", line 199, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 236, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1379, in __iter__
                  for key, example in ex_iterable:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 233, in __iter__
                  yield from self.generate_examples_fn(**self.kwargs)
                File "/tmp/modules-cache/datasets_modules/datasets/ivelin--ui_refexp/6e51a3810e469a0415cbce80e07e89edb290be3ff2b73e63f68abf57da6d8ce1/ui_refexp.py", line 218, in _generate_examples
                  metadata = tfrecord2list(metadata_file)
                File "/tmp/modules-cache/datasets_modules/datasets/ivelin--ui_refexp/6e51a3810e469a0415cbce80e07e89edb290be3ff2b73e63f68abf57da6d8ce1/ui_refexp.py", line 74, in tfrecord2list
                  for raw_record in raw_tfr_dataset:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/tensorflow/python/data/ops/iterator_ops.py", line 797, in __next__
                  return self._next_internal()
                File "/src/services/worker/.venv/lib/python3.9/site-packages/tensorflow/python/data/ops/iterator_ops.py", line 780, in _next_internal
                  ret = gen_dataset_ops.iterator_get_next(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/tensorflow/python/ops/gen_dataset_ops.py", line 3016, in iterator_get_next
                  _ops.raise_from_not_ok_status(e, name)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/tensorflow/python/framework/ops.py", line 7262, in raise_from_not_ok_status
                  raise core._status_to_exception(e) from None  # pylint: disable=protected-access
              tensorflow.python.framework.errors_impl.UnimplementedError: {{function_node __wrapped__IteratorGetNext_output_types_1_device_/job:localhost/replica:0/task:0/device:CPU:0}} File system scheme 'https' not implemented (file: 'https://github.com/google-research-datasets/uibert/raw/main/ref_exp/train.tfrecord') [Op:IteratorGetNext]

cc @albertvillanova @lhoestq @severo .

Hi ! TFRecordDataset is not supported in streaming mode since HTTP URLs are passed to it instead of local paths.

If it can help, we extend the open function to support HTTP URLs to enable streaming mode, but not sure how to use a file-like object in a TFRecordDataset

Sign up or log in to comment