OttoYu/Tree-Condition
Image Classification
•
Updated
•
13
Error code: DatasetGenerationError Exception: ArrowNotImplementedError Message: Cannot write struct type '_format_kwargs' with no child field to Parquet. Consider adding a dummy child field. Traceback: Traceback (most recent call last): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single writer.write_table(table) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 583, in write_table self._build_writer(inferred_schema=pa_table.schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 404, in _build_writer self.pa_writer = self._WRITER_CLASS(self.stream, schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/parquet/core.py", line 1010, in __init__ self.writer = _parquet.ParquetWriter( File "pyarrow/_parquet.pyx", line 2157, in pyarrow._parquet.ParquetWriter.__cinit__ File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status pyarrow.lib.ArrowNotImplementedError: Cannot write struct type '_format_kwargs' with no child field to Parquet. Consider adding a dummy child field. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2027, in _prepare_split_single num_examples, num_bytes = writer.finalize() File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 602, in finalize self._build_writer(self.schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 404, in _build_writer self.pa_writer = self._WRITER_CLASS(self.stream, schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/parquet/core.py", line 1010, in __init__ self.writer = _parquet.ParquetWriter( File "pyarrow/_parquet.pyx", line 2157, in pyarrow._parquet.ParquetWriter.__cinit__ File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status pyarrow.lib.ArrowNotImplementedError: Cannot write struct type '_format_kwargs' with no child field to Parquet. Consider adding a dummy child field. 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 1529, 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 1154, in convert_to_parquet builder.download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare self._download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
_data_files
list | _fingerprint
string | _format_columns
sequence | _format_kwargs
dict | _format_type
null | _output_all_columns
bool | _split
null |
---|---|---|---|---|---|---|
[
{
"filename": "data-00000-of-00001.arrow"
}
] | b9f07efe0a08801d | [
"image",
"target"
] | {} | null | false | null |
This dataset has been automatically processed by AutoTrain for project tree-class.
The BCP-47 code for the dataset's language is unk.
A sample from this dataset looks as follows:
[
{
"image": "<265x190 RGB PIL image>",
"target": 10
},
{
"image": "<800x462 RGB PIL image>",
"target": 6
}
]
The dataset has the following fields (also called "features"):
{
"image": "Image(decode=True, id=None)",
"target": "ClassLabel(names=['Burls \u7bc0\u7624', 'Canker \u6f70\u760d', 'Co-dominant branches \u7b49\u52e2\u679d', 'Co-dominant stems \u7b49\u52e2\u5e79', 'Cracks or splits \u88c2\u7e2b\u6216\u88c2\u958b', 'Crooks or abrupt bends \u4e0d\u5e38\u898f\u5f4e\u66f2', 'Cross branches \u758a\u679d', 'Dead surface roots \u8868\u6839\u67af\u840e ', 'Deadwood \u67af\u6728', 'Decay or cavity \u8150\u721b\u6216\u6a39\u6d1e', 'Fungal fruiting bodies \u771f\u83cc\u5b50\u5be6\u9ad4', 'Galls \u816b\u7624 ', 'Girdling root \u7e8f\u7e5e\u6839 ', 'Heavy lateral limb \u91cd\u5074\u679d', 'Included bark \u5167\u593e\u6a39\u76ae', 'Parasitic or epiphytic plants \u5bc4\u751f\u6216\u9644\u751f\u690d\u7269', 'Pest and disease \u75c5\u87f2\u5bb3', 'Poor taper \u4e0d\u826f\u6f38\u5c16\u751f\u9577', 'Root-plate movement \u6839\u57fa\u79fb\u4f4d ', 'Sap flow \u6ef2\u6db2', 'Trunk girdling \u7e8f\u7e5e\u6a39\u5e79 ', 'Wounds or mechanical injury \u50b7\u75d5\u6216\u6a5f\u68b0\u7834\u640d'], id=None)"
}
This dataset is split into a train and validation split. The split sizes are as follow:
Split name | Num samples |
---|---|
train | 225 |
valid | 67 |