Dataset Viewer issue
#2
by
trunks
- opened
The dataset viewer is not working.
Error details:
Error code: StreamingRowsError
Exception: UnidentifiedImageError
Message: cannot identify image file <_io.BytesIO object at 0x7fc10b1f4770>
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 1383, in __iter__
example = _apply_feature_types_on_example(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1077, in _apply_feature_types_on_example
decoded_example = features.decode_example(encoded_example, token_per_repo_id=token_per_repo_id)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1903, in decode_example
return {
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1904, in <dictcomp>
column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1325, in decode_nested_example
return schema.decode_example(obj, token_per_repo_id=token_per_repo_id)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/image.py", line 184, in decode_example
image = PIL.Image.open(BytesIO(bytes_))
File "/src/services/worker/.venv/lib/python3.9/site-packages/PIL/Image.py", line 3280, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7fc10b1f4770>
Apparently PIL.Image is unable to read one of the images you uploaded.
I loaded the images locally and found that the corrupted image in the last one in the dataset image9 - BUBC 1.jpg