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.12/site-packages/datasets/builder.py", line 1779, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/text/text.py", line 98, in _generate_tables
batch = f.read(self.config.chunksize)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/utils/file_utils.py", line 844, in read_with_retries
out = read(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 322, 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 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 882, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 943, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1832, 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}') |
import os |
label_folder = 'labelTxt' |
image_folder = 'images' |
# Iterate through all files in the label folder |
for label_file in os.listdir(label_folder): |
label_path = os.path.join(label_folder, label_file) |
# Check if the label file is empty |
if os.path.getsize(label_path) == 0: |
# Construct the corresponding image file path |
image_file = label_file.replace('.txt', '.png') # Assuming images are in .png format |
image_path = os.path.join(image_folder, image_file) |
# Remove the empty label file |
os.remove(label_path) |
print(f'Removed empty label file: {label_path}') |
# Remove the corresponding image file if it exists |
if os.path.exists(image_path): |
os.remove(image_path) |
print(f'Removed corresponding image file: {image_path}') |
v-24__0.5__0___0 |
v-21__0.5__0___0 |
v-26__0.5__0___0 |
v-27__0.5__0___0 |
v-21__0.5__0___416 |
v-23__0.5__0___416 |
v-26__0.5__0___416 |
v-25__0.5__0___416 |
v-28__0.5__0___416 |
v-27__0.5__0___416 |
v-24__0.5__416___0 |
v-21__0.5__416___0 |
v-26__0.5__416___0 |
v-23__0.5__416___416 |
v-27__0.5__416___0 |
v-26__0.5__416___416 |
v-22__0.5__0___0 |
v-27__0.5__416___416 |
v-22__0.5__0___508 |
v-29__0.5__416___0 |
v-31__0.5__0___416 |
v-34__0.5__416___0 |
v-30__0.5__416___0 |
v-32__0.5__0___0 |
v-29__0.5__416___416 |
v-33__0.5__416___0 |
v-32__0.5__0___416 |
v-35__0.5__0___416 |
v-30__0.5__416___416 |
v-33__0.5__416___416 |
v-31__0.5__416___416 |
v-35__0.5__416___0 |
v-32__0.5__416___416 |
v-35__0.5__416___416 |
v-38__0.5__0___0 |
v-39__0.5__0___0 |
v-36__0.5__0___0 |
v-38__0.5__0___416 |
v-40__0.5__0___416 |
v-36__0.5__0___416 |
v-37__0.5__0___416 |
v-22__0.5__508___0 |
v-39__0.5__416___0 |
v-36__0.5__416___0 |
v-22__0.5__508___508 |
v-37__0.5__416___416 |
v-36__0.5__416___416 |
v-22__0.5__508___1016 |
v-22__0.5__508___3488 |
v-22__0.5__1016___0 |
v-22__0.5__1016___508 |
v-22__0.5__1016___1016 |
v-22__0.5__1016___2540 |
v-22__0.5__1524___0 |
v-22__0.5__1524___1016 |
v-22__0.5__1524___1524 |
v-22__0.5__1524___2032 |
v-22__0.5__2032___0 |
v-22__0.5__2032___1016 |
v-22__0.5__2540___0 |
End of preview.
No dataset card yet
- Downloads last month
- 1