Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
scenes: list<item: struct<objects: list<item: struct<prefab_path: string, unique_id: int64, index: int64, bb (... 529 chars omitted)
  child 0, item: struct<objects: list<item: struct<prefab_path: string, unique_id: int64, index: int64, bbox: list<it (... 517 chars omitted)
      child 0, objects: list<item: struct<prefab_path: string, unique_id: int64, index: int64, bbox: list<item: int64>, posi (... 26 chars omitted)
          child 0, item: struct<prefab_path: string, unique_id: int64, index: int64, bbox: list<item: int64>, position: list< (... 14 chars omitted)
              child 0, prefab_path: string
              child 1, unique_id: int64
              child 2, index: int64
              child 3, bbox: list<item: int64>
                  child 0, item: int64
              child 4, position: list<item: double>
                  child 0, item: double
      child 1, relationships: struct<left: struct<0: list<item: int64>, 2: list<item: int64>, 4: list<item: int64>, 6: list<item:  (... 357 chars omitted)
          child 0, left: struct<0: list<item: int64>, 2: list<item: int64>, 4: list<item: int64>, 6: list<item: int64>, 7: li (... 16 chars omitted)
              child 0, 0: list<item: int64>
                  child 0, item: int64
              child 1, 2: list<item: int64>
                  child 0, item: int64
              child 2, 4: list<item: int64>
                  child 0, item: int64
              child 3, 6: list<item: int64>
                  child 0, item: i
...
              child 0, item: int64
          child 2, up: struct<8: list<item: int64>, 1: list<item: int64>, 6: list<item: int64>, 7: list<item: int64>>
              child 0, 8: list<item: int64>
                  child 0, item: int64
              child 1, 1: list<item: int64>
                  child 0, item: int64
              child 2, 6: list<item: int64>
                  child 0, item: int64
              child 3, 7: list<item: int64>
                  child 0, item: int64
          child 3, right: struct<2: list<item: int64>, 3: list<item: int64>, 4: list<item: int64>, 5: list<item: int64>, 8: li (... 16 chars omitted)
              child 0, 2: list<item: int64>
                  child 0, item: int64
              child 1, 3: list<item: int64>
                  child 0, item: int64
              child 2, 4: list<item: int64>
                  child 0, item: int64
              child 3, 5: list<item: int64>
                  child 0, item: int64
              child 4, 8: list<item: int64>
                  child 0, item: int64
Items: list<item: struct<name: string, prefabPath: string, bbox: list<item: int64>, position: list<item: do (... 7 chars omitted)
  child 0, item: struct<name: string, prefabPath: string, bbox: list<item: int64>, position: list<item: double>>
      child 0, name: string
      child 1, prefabPath: string
      child 2, bbox: list<item: int64>
          child 0, item: int64
      child 3, position: list<item: double>
          child 0, item: double
to
{'Items': List({'name': Value('string'), 'prefabPath': Value('string'), 'bbox': List(Value('int64')), 'position': List(Value('float64'))})}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, 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 129, 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 489, 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 2818, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, 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 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, 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 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              scenes: list<item: struct<objects: list<item: struct<prefab_path: string, unique_id: int64, index: int64, bb (... 529 chars omitted)
                child 0, item: struct<objects: list<item: struct<prefab_path: string, unique_id: int64, index: int64, bbox: list<it (... 517 chars omitted)
                    child 0, objects: list<item: struct<prefab_path: string, unique_id: int64, index: int64, bbox: list<item: int64>, posi (... 26 chars omitted)
                        child 0, item: struct<prefab_path: string, unique_id: int64, index: int64, bbox: list<item: int64>, position: list< (... 14 chars omitted)
                            child 0, prefab_path: string
                            child 1, unique_id: int64
                            child 2, index: int64
                            child 3, bbox: list<item: int64>
                                child 0, item: int64
                            child 4, position: list<item: double>
                                child 0, item: double
                    child 1, relationships: struct<left: struct<0: list<item: int64>, 2: list<item: int64>, 4: list<item: int64>, 6: list<item:  (... 357 chars omitted)
                        child 0, left: struct<0: list<item: int64>, 2: list<item: int64>, 4: list<item: int64>, 6: list<item: int64>, 7: li (... 16 chars omitted)
                            child 0, 0: list<item: int64>
                                child 0, item: int64
                            child 1, 2: list<item: int64>
                                child 0, item: int64
                            child 2, 4: list<item: int64>
                                child 0, item: int64
                            child 3, 6: list<item: int64>
                                child 0, item: i
              ...
                            child 0, item: int64
                        child 2, up: struct<8: list<item: int64>, 1: list<item: int64>, 6: list<item: int64>, 7: list<item: int64>>
                            child 0, 8: list<item: int64>
                                child 0, item: int64
                            child 1, 1: list<item: int64>
                                child 0, item: int64
                            child 2, 6: list<item: int64>
                                child 0, item: int64
                            child 3, 7: list<item: int64>
                                child 0, item: int64
                        child 3, right: struct<2: list<item: int64>, 3: list<item: int64>, 4: list<item: int64>, 5: list<item: int64>, 8: li (... 16 chars omitted)
                            child 0, 2: list<item: int64>
                                child 0, item: int64
                            child 1, 3: list<item: int64>
                                child 0, item: int64
                            child 2, 4: list<item: int64>
                                child 0, item: int64
                            child 3, 5: list<item: int64>
                                child 0, item: int64
                            child 4, 8: list<item: int64>
                                child 0, item: int64
              Items: list<item: struct<name: string, prefabPath: string, bbox: list<item: int64>, position: list<item: do (... 7 chars omitted)
                child 0, item: struct<name: string, prefabPath: string, bbox: list<item: int64>, position: list<item: double>>
                    child 0, name: string
                    child 1, prefabPath: string
                    child 2, bbox: list<item: int64>
                        child 0, item: int64
                    child 3, position: list<item: double>
                        child 0, item: double
              to
              {'Items': List({'name': Value('string'), 'prefabPath': Value('string'), 'bbox': List(Value('int64')), 'position': List(Value('float64'))})}
              because column names don't match

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.

SIMMC 2.0 → SIP Transformation

Converts SIMMC 2.0 multimodal dialogue data into the SIP (System Initiative Prediction) format used by MuSIc baselines and the preprocessor.


Files

File Purpose
scripts/transform_simmc_to_sip_v2.py Main transformation script
tests/test_simmc_transform_v2.py 18 unit tests (100 % pass)

Input layout

data/
├── dev.json                            ← SIMMC 2.0 dialogue file
├── scene_jsons/
│   ├── m_cloth_store_1416238_woman_9_2.json
│   └── ...
├── fashion_prefab_metadata_all.json
└── furniture_prefab_metadata_all.json

Dialogue JSON structure

{
  "dialogue_data": [
    {
      "dialogue": [
        {
          "turn_idx": 0,
          "transcript": "Do you have any shirts?",
          "system_transcript": "Yes, here are three.",
          "system_transcript_annotated": {
            "act": "INFORM:GET",
            "act_attributes": { "objects": [37, 40, 12] }
          },
          "transcript_annotated": {
            "disambiguation_label": 0
          }
        }
      ],
      "dialogue_idx": 10507,
      "domain": "fashion",
      "scene_ids": { "0": "m_cloth_store_1416238_woman_9_2" }
    }
  ],
  "split": "dev",
  "domain": "fashion"
}

Scene JSON — two formats

Format A — complex scene with spatial relationships

{
  "scenes": [{
    "objects": [
      { "prefab_path": "WomensCollection/Prefabs/Rearranged/dress_4_00",
        "unique_id": 0, "index": 17, "bbox": [22, 295, 60, 147] }
    ],
    "relationships": {
      "left":  { "17": [56] },
      "right": { "56": [17] }
    }
  }]
}

Format B — simple items list

{
  "Items": [
    { "name": "DiningTable(Clone)",
      "prefabPath": "modified_wayfair_assets/Table/DiningTable_LGLY3140_v6_LOD2",
      "bbox": [520, 388, 134, 126] }
  ]
}

Output format (SIP)

Each dialogue becomes one entry in a JSON array:

{
  "conversations": [
    { "from": "human",         "value": "Do you have any shirts?", "turn_id": 1 },
    { "from": "function_call", "value": "observe_scene()",          "turn_id": 1 },
    { "from": "observation",
      "value": "Scene - LEFT: black plain dress by Style Co; RIGHT: blue jacket by Fashion Inc",
      "turn_id": 1,
      "observation_type": "scene",
      "scene_id": "m_cloth_store_1416238_woman_9_2",
      "scene_data": { "left": [...], "right": [...] }
    },
    { "from": "gpt",
      "value": "Yes, here are three.",
      "turn_id": 1,
      "ambiguous_type": 0,
      "metadata": { "act": "INFORM:GET", "objects": [37, 40, 12] }
    }
  ],
  "metadata": {
    "num_turns": 1,
    "turn_labels": [0],
    "label_distribution": { "clear": 1, "disambiguation": 0 },
    "source": {
      "format": "SIMMC2.0",
      "dialogue_idx": 10507,
      "domain": "fashion",
      "scene_ids": { "0": "m_cloth_store_1416238_woman_9_2" }
    }
  }
}

Observation text — Format A (with relationships)

Objects are grouped by their spatial position in the scene image:

"Scene - LEFT: black plain dress by Style Co; RIGHT: blue jacket by Fashion Inc; UP: white striped blouse"

Direction keys: LEFT, RIGHT, UP, DOWN, CENTER

Observation text — Format B (items list)

"Available: brown table by Home Store ($299), grey chair by Home Store ($89)"

Disambiguation label

ambiguous_type on each gpt turn is set to 1 when either condition is true, and 0 otherwise:

Condition Source field
System act is REQUEST:DISAMBIGUATE system_transcript_annotated.act
Transcript annotation flags disambiguation transcript_annotated.disambiguation_label == 1

Usage

python scripts/transform_simmc_to_sip_v2.py \
    --input       data/simmc/dev.json \
    --scene_dir   data/simmc/scene_jsons \
    --fashion_metadata   data/simmc/fashion_prefab_metadata_all.json \
    --furniture_metadata data/simmc/furniture_prefab_metadata_all.json \
    --output      data/sip/simmc_dev_sip.json

All arguments are required. The script prints a progress summary and a sample of the first transformed dialogue.


Full pipeline

# 1. Transform both splits
python scripts/transform_simmc_to_sip_v2.py --input simmc_train.json ... --output sip_train.json
python scripts/transform_simmc_to_sip_v2.py --input simmc_dev.json   ... --output sip_dev.json

# 2. Check class distribution (matches preprocessor_v3 counts)
python scripts/compute_data_statistics.py \
    --input sip_train.json sip_dev.json \
    --names "Train" "Dev" \
    --output_dir statistics/

# 3. Train MuSIc baseline
python scripts/train_enhanced.py \
    --train_data sip_train.json \
    --baseline   distance \
    --num_classes 2 \
    --epochs 30

# 4. Evaluate
python scripts/evaluate_final.py \
    --test_data      sip_dev.json \
    --checkpoint_dir checkpoints/ \
    --num_classes    2 \
    --output_dir     results/

Tests

python tests/test_simmc_transform_v2.py

18 tests covering: basic transformation · disambiguation detection (both rules) · complex scene processing · simple items processing · observation text formatting · first-turn scene injection · multiple scene changes · metadata extraction · empty dialogue · missing scene file · metadata lookup (exact / partial / unknown) · full batch · realistic example


Troubleshooting

[Warning] Scene file not found: <id> The scene ID in scene_ids does not match any .json file in --scene_dir. Check for spelling differences or missing files. The turn will still be transformed but without a scene observation.

Objects appear as type: unknown The prefab_path in the scene JSON has no matching entry in the metadata file. Verify the metadata file covers the dataset split you are using.

Empty scene_data in output The scene JSON uses an unrecognised top-level key (neither scenes nor Items). Inspect the file and add a handler in SIMMCToSIPTransformer.transform_dialogue if needed.

Downloads last month
37