The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: ArrowInvalid
Message: JSON parse error: The document is empty.
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 324, in _generate_tables
df = pandas_read_json(f)
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
return pd.read_json(path_or_buf, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 791, in read_json
json_reader = JsonReader(
path_or_buf,
...<16 lines>...
engine=engine,
)
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 905, in __init__
self.data = self._preprocess_data(data)
~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 917, in _preprocess_data
data = data.read()
File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 839, in read_with_retries
out = read(*args, **kwargs)
File "<frozen codecs>", line 325, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xec in position 42: invalid continuation byte
During handling of the above exception, another exception occurred:
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 2951, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 327, in _generate_tables
raise e
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 290, in _generate_tables
pa_table = paj.read_json(
io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
)
File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowInvalid: JSON parse error: The document is empty.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.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Cataract Surgery VLM Dataset — SFT Split (Mirrored)
This folder is a mirrored SFT-only view of ../dataset/ (active dataset). Created via tools/build_separated_datasets.py (copy-only, original dataset/ untouched). Videos are hardlinked (fallback copy) into both SFT and GRPO datasets to avoid 2× storage.
Structure (SFT-only, videos mirrored)
dataset_sft/
├── Train/ Validation/ Test/
│ ├── {YT_ID}/ # YouTube corpus (108 Train / 13 Val / 15 Test folders)
│ │ ├── clip_01.mp4
│ │ ├── clip_01.jsonl # metadata (14 keys) — mirrored in both
│ │ ├── clip_01_sft.jsonl # SFT: 4 lines (1 description + 3 MCQ, old prompt)
│ │ └── full_video.mp4 + full_video_sft.jsonl # full-video narration (SFT only)
│ ├── PH_*/ # Phase corpus (105 Train / 22 Val / 23 Test folders)
│ │ ├── clip_02.mp4
│ │ ├── clip_02.jsonl # 32 keys inc. phase_id — mirrored
│ │ └── clip_02_sft.jsonl # 1 line teacher/critic description
│ └── ...
├── grpo_procedure_split_map.json
└── README.md
Not included: *_grpo.jsonl (see ../dataset_grpo/), archived/, grpo_archived/ (still only in ../dataset/).
Counts (active, no archived)
| Split | Folders | Clip MP4 | Full Video | Clip SFT files | Full SFT | Videos total |
|---|---|---|---|---|---|---|
| Train | 213 | 2,066 | 108 | 2,066 | 108 | 2,174 |
| Val | 35 | 265 | 13 | 265 | 13 | 278 |
| Test | 38 | 293 | 15 | 293 | 15 | 308 |
| Total | 286 | 2,624 | 136 | 2,624 | 136 | 2,760 |
- SFT
clip_*_sft.jsonlper clip: 1× description (Describe what is happening...) + 3× MCQ with old promptProvide your reasoning first, then state your answer.→ assistantreference_reasoning + " Therefore the answer is X) ...". - GRPO files intentionally absent here.
Pipeline
Future runs with config.yaml: directories.dataset_sft produce this layout; dataset_formatter SFT still uses old prompt (GRPO uses new JSON). Merge step tools/merge_dataset.py with --out-sft/--out-grpo mirrors videos to both.
Restore
dataset/ remains canonical. To rebuild: python -m video_pipeline.tools.build_separated_datasets (or via pipeline cli.py step merge).
- Downloads last month
- 3