The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: ValueError
Message: Invalid string class label CTW1500@0b2c613c2ddccd2dd4329a6aa7f20b5807bbd518
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2840, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2386, in __iter__
example = _apply_feature_types_on_example(
example, self.features, token_per_repo_id=self.token_per_repo_id
)
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2303, in _apply_feature_types_on_example
encoded_example = features.encode_example(example)
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2178, in encode_example
return encode_nested_example(self, example)
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1460, in encode_nested_example
{k: encode_nested_example(schema[k], obj.get(k), level=level + 1) for k in schema}
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1483, in encode_nested_example
return schema.encode_example(obj) if obj is not None else None
~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1158, in encode_example
example_data = self.str2int(example_data)
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1095, in str2int
output = [self._strval2int(value) for value in values]
~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1116, in _strval2int
raise ValueError(f"Invalid string class label {value}")
ValueError: Invalid string class label CTW1500@0b2c613c2ddccd2dd4329a6aa7f20b5807bbd518Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
CTW1500 (MMOCR format)
CTW1500 is a curve scene text detection benchmark with 1,000 training and 500 test images. The official download links (Box / CloudStor) are currently unreliable, so this repository re-hosts the dataset already prepared in MMOCR format for convenience.
Contents
ctw1500_mmocr.zip unpacks to:
ctw1500/
├── textdet_imgs/
│ ├── train/ # 1000 images
│ └── test/ # 500 images
├── textdet_train.json # MMOCR textdet training annotations
└── textdet_test.json # MMOCR textdet test annotations
Usage
hf download HB16888/CTW1500 --repo-type dataset --local-dir ./ctw1500_dl
unzip ctw1500_dl/ctw1500_mmocr.zip -d data/
Then point MMOCR configs at data/ctw1500 (the default
data_root='data/ctw1500' in the textdet configs works out of the box).
The same archive is mirrored on ModelScope.
License
The dataset is provided for academic research purposes, following the
original CTW1500 release terms. The preparation pipeline is the one shipped
with MMOCR (tools/dataset_converters/prepare_dataset.py ctw1500 --task textdet).
- Downloads last month
- 22