Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: UnicodeDecodeError
Message: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1816, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/text/text.py", line 98, in _generate_tables
batch = f.read(self.config.chunksize)
File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 844, in read_with_retries
out = read(*args, **kwargs)
File "<frozen codecs>", line 325, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1869, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text string |
|---|
import os |
image_folder = 'images' |
output_file = 'trainval.txt' |
# Get all file names in the images folder |
image_files = os.listdir(image_folder) |
# Remove the .png extension from each file name |
image_names = [os.path.splitext(file)[0] for file in image_files if file.endswith('.png')] |
# Write the file names to trainval.txt |
with open(output_file, 'w') as f: |
for name in image_names: |
f.write(name + '\n') |
print(f'File names written to {output_file}') |
P0000__0.5__0___0 |
P0000__0.5__0___1016 |
P0000__0.5__0___1524 |
P0000__0.5__0___2032 |
P0000__0.5__0___2143 |
P0000__0.5__0___508 |
P0000__0.5__1016___0 |
P0000__0.5__1016___1016 |
P0000__0.5__1016___1524 |
P0000__0.5__1016___2032 |
P0000__0.5__1016___2143 |
P0000__0.5__1016___508 |
P0000__0.5__1330___0 |
P0000__0.5__1330___1016 |
P0000__0.5__1330___1524 |
P0000__0.5__1330___2032 |
P0000__0.5__1330___2143 |
P0000__0.5__1330___508 |
P0000__0.5__508___0 |
P0000__0.5__508___1016 |
P0000__0.5__508___1524 |
P0000__0.5__508___2032 |
P0000__0.5__508___2143 |
P0000__0.5__508___508 |
P0001__0.5__0___0 |
P0001__0.5__0___1016 |
P0001__0.5__0___1524 |
P0001__0.5__0___2032 |
P0001__0.5__0___2279 |
P0001__0.5__0___508 |
P0001__0.5__18___0 |
P0001__0.5__18___1016 |
P0001__0.5__18___1524 |
P0001__0.5__18___2032 |
P0001__0.5__18___2279 |
P0001__0.5__18___508 |
P0002__0.5__0___0 |
P0002__0.5__0___435 |
P0002__0.5__508___0 |
P0002__0.5__508___435 |
P0002__0.5__670___0 |
P0002__0.5__670___435 |
P0005__0.5__0___0 |
P0008__0.5__0___0 |
P0008__0.5__0___10 |
P0010__0.5__0___0 |
P0010__0.5__0___324 |
P0010__0.5__315___0 |
P0010__0.5__315___324 |
P0011__0.5__0___0 |
P0011__0.5__0___155 |
P0011__0.5__76___0 |
P0011__0.5__76___155 |
P0012__0.5__0___0 |
P0012__0.5__0___387 |
P0012__0.5__508___0 |
P0012__0.5__508___387 |
P0012__0.5__840___0 |
P0012__0.5__840___387 |
P0013__0.5__0___0 |
P0013__0.5__0___280 |
P0013__0.5__61___0 |
P0013__0.5__61___280 |
P0018__0.5__0___0 |
P0018__0.5__0___236 |
P0018__0.5__304___0 |
P0018__0.5__304___236 |
P0020__0.5__0___0 |
P0020__0.5__0___1016 |
P0020__0.5__0___1524 |
P0020__0.5__0___1612 |
P0020__0.5__0___508 |
P0020__0.5__1016___0 |
P0020__0.5__1016___1016 |
P0020__0.5__1016___1524 |
P0020__0.5__1016___1612 |
P0020__0.5__1016___508 |
P0020__0.5__1524___0 |
P0020__0.5__1524___1016 |
P0020__0.5__1524___1524 |
P0020__0.5__1524___1612 |
P0020__0.5__1524___508 |
P0020__0.5__1921___0 |
End of preview.
No dataset card yet
- Downloads last month
- 7