The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
dataset_name: string
dataset_version: string
counts: struct<normal: int64, yield: int64, collision: int64>
child 0, normal: int64
child 1, yield: int64
child 2, collision: int64
total: int64
backend_counts: struct<normal: struct<n/a: int64>, yield: struct<claude3.5-sonnet: int64, minimax: int64, qwen2.5-7b (... 126 chars omitted)
child 0, normal: struct<n/a: int64>
child 0, n/a: int64
child 1, yield: struct<claude3.5-sonnet: int64, minimax: int64, qwen2.5-7b: int64, qwen2.5-3b: int64>
child 0, claude3.5-sonnet: int64
child 1, minimax: int64
child 2, qwen2.5-7b: int64
child 3, qwen2.5-3b: int64
child 2, collision: struct<claude3.5-sonnet: int64, minimax: int64, qwen2.5-7b: int64, qwen2.5-3b: int64>
child 0, claude3.5-sonnet: int64
child 1, minimax: int64
child 2, qwen2.5-7b: int64
child 3, qwen2.5-3b: int64
category: string
user_prompt: string
events: list<item: struct<type: string, from: int64, to: int64, time: null, location: null>>
child 0, item: struct<type: string, from: int64, to: int64, time: null, location: null>
child 0, type: string
child 1, from: int64
child 2, to: int64
child 3, time: null
child 4, location: null
event_location_xy: list<item: double>
child 0, item: double
scene_type: string
scene_uid: string
metrics: struct<collision_rate: double, min_distance_to_others: double, stop_before_crosswalk_success: null, (... 40 chars omitted)
child 0, collision_rate: double
child 1, min_distance_to_others: double
child 2, stop_before_crosswalk_success: null
child 3, num_agents: int64
child 4, num_relations: int64
scene_id: string
backend: string
agents: list<item: struct<id: int64, type: string, goal: list<item: double>, spawn_time: double, trajectory: (... 33 chars omitted)
child 0, item: struct<id: int64, type: string, goal: list<item: double>, spawn_time: double, trajectory: list<item: (... 21 chars omitted)
child 0, id: int64
child 1, type: string
child 2, goal: list<item: double>
child 0, item: double
child 3, spawn_time: double
child 4, trajectory: list<item: list<item: double>>
child 0, item: list<item: double>
child 0, item: double
event_time_frame: int64
relation_type: string
num_agents: int64
to
{'scene_uid': Value('string'), 'scene_id': Value('string'), 'category': Value('string'), 'backend': Value('string'), 'scene_type': Value('string'), 'user_prompt': Value('string'), 'num_agents': Value('int64'), 'relation_type': Value('string'), 'event_time_frame': Value('int64'), 'event_location_xy': List(Value('float64')), 'agents': List({'id': Value('int64'), 'type': Value('string'), 'goal': List(Value('float64')), 'spawn_time': Value('float64'), 'trajectory': List(List(Value('float64')))}), 'events': List({'type': Value('string'), 'from': Value('int64'), 'to': Value('int64'), 'time': Value('null'), 'location': Value('null')}), 'metrics': {'collision_rate': Value('float64'), 'min_distance_to_others': Value('float64'), 'stop_before_crosswalk_success': Value('null'), 'num_agents': Value('int64'), 'num_relations': Value('int64')}}
because column names don't match
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/json/json.py", line 299, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
dataset_name: string
dataset_version: string
counts: struct<normal: int64, yield: int64, collision: int64>
child 0, normal: int64
child 1, yield: int64
child 2, collision: int64
total: int64
backend_counts: struct<normal: struct<n/a: int64>, yield: struct<claude3.5-sonnet: int64, minimax: int64, qwen2.5-7b (... 126 chars omitted)
child 0, normal: struct<n/a: int64>
child 0, n/a: int64
child 1, yield: struct<claude3.5-sonnet: int64, minimax: int64, qwen2.5-7b: int64, qwen2.5-3b: int64>
child 0, claude3.5-sonnet: int64
child 1, minimax: int64
child 2, qwen2.5-7b: int64
child 3, qwen2.5-3b: int64
child 2, collision: struct<claude3.5-sonnet: int64, minimax: int64, qwen2.5-7b: int64, qwen2.5-3b: int64>
child 0, claude3.5-sonnet: int64
child 1, minimax: int64
child 2, qwen2.5-7b: int64
child 3, qwen2.5-3b: int64
category: string
user_prompt: string
events: list<item: struct<type: string, from: int64, to: int64, time: null, location: null>>
child 0, item: struct<type: string, from: int64, to: int64, time: null, location: null>
child 0, type: string
child 1, from: int64
child 2, to: int64
child 3, time: null
child 4, location: null
event_location_xy: list<item: double>
child 0, item: double
scene_type: string
scene_uid: string
metrics: struct<collision_rate: double, min_distance_to_others: double, stop_before_crosswalk_success: null, (... 40 chars omitted)
child 0, collision_rate: double
child 1, min_distance_to_others: double
child 2, stop_before_crosswalk_success: null
child 3, num_agents: int64
child 4, num_relations: int64
scene_id: string
backend: string
agents: list<item: struct<id: int64, type: string, goal: list<item: double>, spawn_time: double, trajectory: (... 33 chars omitted)
child 0, item: struct<id: int64, type: string, goal: list<item: double>, spawn_time: double, trajectory: list<item: (... 21 chars omitted)
child 0, id: int64
child 1, type: string
child 2, goal: list<item: double>
child 0, item: double
child 3, spawn_time: double
child 4, trajectory: list<item: list<item: double>>
child 0, item: list<item: double>
child 0, item: double
event_time_frame: int64
relation_type: string
num_agents: int64
to
{'scene_uid': Value('string'), 'scene_id': Value('string'), 'category': Value('string'), 'backend': Value('string'), 'scene_type': Value('string'), 'user_prompt': Value('string'), 'num_agents': Value('int64'), 'relation_type': Value('string'), 'event_time_frame': Value('int64'), 'event_location_xy': List(Value('float64')), 'agents': List({'id': Value('int64'), 'type': Value('string'), 'goal': List(Value('float64')), 'spawn_time': Value('float64'), 'trajectory': List(List(Value('float64')))}), 'events': List({'type': Value('string'), 'from': Value('int64'), 'to': Value('int64'), 'time': Value('null'), 'location': Value('null')}), 'metrics': {'collision_rate': Value('float64'), 'min_distance_to_others': Value('float64'), 'stop_before_crosswalk_success': Value('null'), 'num_agents': Value('int64'), 'num_relations': Value('int64')}}
because column names don't match
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.
scene_uid string | scene_id string | category string | backend string | scene_type string | user_prompt string | num_agents int64 | relation_type string | event_time_frame int64 | event_location_xy list | agents list | events list | metrics dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
cosmos-synth-scenes-v2v_000-ae67b45fb589 | v2v_000 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 9 | collide_at | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
22.827413791269954,
6.525245986223448
],
"spawn_time": 1767258000,
"trajectory": [
[
19.471920013427734,
41.36488723754883
],
[
19.394203186035156,
40.285701751708984
],
[
... | [
{
"type": "collide_at",
"from": 0,
"to": 1,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_001-ae67b45fb589 | v2v_001 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 9 | collide_with | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
21.522034137567807,
23.25662681606915
],
"spawn_time": 1767258000,
"trajectory": [
[
22.028301239013672,
38.79656982421875
],
[
22.58350372314453,
37.94021224975586
],
[
... | [
{
"type": "collide_with",
"from": 1,
"to": 0,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_002-ae67b45fb589 | v2v_002 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 10 | collide_at | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
34.98164951996635,
25.092422612087905
],
"spawn_time": 1767258000,
"trajectory": [
[
0.6958469748497009,
24.07933235168457
],
[
0.8728588819503784,
24.096031188964844
],
[
... | [
{
"type": "collide_at",
"from": 0,
"to": 1,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_003-ae67b45fb589 | v2v_003 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 9 | collide_at | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
22.612546339932532,
9.902342383446015
],
"spawn_time": 1767258000,
"trajectory": [
[
2.2429182529449463,
23.04349708557129
],
[
3.8743672370910645,
22.8472957611084
],
[
... | [
{
"type": "collide_at",
"from": 1,
"to": 0,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_004-ae67b45fb589 | v2v_004 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 9 | collide_at | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
17.148409627293876,
18.50102275004575
],
"spawn_time": 1767258000,
"trajectory": [
[
16.993865966796875,
2.2385871410369873
],
[
17.73989486694336,
4.166393280029297
],
[
... | [
{
"type": "collide_at",
"from": 0,
"to": 1,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_005-ae67b45fb589 | v2v_005 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 9 | collide_with | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
14.477773912671948,
32.50631438709066
],
"spawn_time": 1767258000,
"trajectory": [
[
13.755102157592773,
2.677377462387085
],
[
13.938288688659668,
3.882422924041748
],
[
... | [
{
"type": "collide_with",
"from": 0,
"to": 1,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_006-ae67b45fb589 | v2v_006 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 10 | collide_at | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
18.95934214018406,
18.65972187376593
],
"spawn_time": 1767258000,
"trajectory": [
[
20.15194320678711,
37.37326431274414
],
[
20.378053665161133,
36.36860275268555
],
[
2... | [
{
"type": "collide_at",
"from": 0,
"to": 1,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_007-ae67b45fb589 | v2v_007 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 8 | collide_with | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
33.82349817271346,
25.21818477987519
],
"spawn_time": 1767258000,
"trajectory": [
[
0.8682080507278442,
24.259607315063477
],
[
1.1691770553588867,
24.1615047454834
],
[
... | [
{
"type": "collide_with",
"from": 0,
"to": 1,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_008-ae67b45fb589 | v2v_008 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 9 | collide_at | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
6.960216567627251,
18.75530253834142
],
"spawn_time": 1767258000,
"trajectory": [
[
14.161845207214355,
6.788072109222412
],
[
13.994621276855469,
8.381410598754883
],
[
... | [
{
"type": "collide_at",
"from": 1,
"to": 0,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_009-ae67b45fb589 | v2v_009 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 8 | collide_at | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
13.620319309936566,
9.897625843258579
],
"spawn_time": 1767258000,
"trajectory": [
[
14.478689193725586,
3.6588406562805176
],
[
14.365133285522461,
4.771228790283203
],
[
... | [
{
"type": "collide_at",
"from": 0,
"to": 1,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_010-ae67b45fb589 | v2v_010 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 10 | collide_with | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
11.098765738252029,
22.77859558659292
],
"spawn_time": 1767258000,
"trajectory": [
[
1.3295207023620605,
23.417299270629883
],
[
1.8118488788604736,
23.324098587036133
],
[
... | [
{
"type": "collide_with",
"from": 1,
"to": 0,
"time": null,
"location": null
}
] | null |
cosmos-synth-scenes-v2v_011-ae67b45fb589 | v2v_011 | collision | claude3.5-sonnet | v2v | Two cars collide with each other from different directions. | 9 | collide_with | null | null | [
{
"id": 0,
"type": "vehicle",
"goal": [
11.860826266621931,
30.978304785222438
],
"spawn_time": 1767258000,
"trajectory": [
[
0.09352650493383408,
25.10674476623535
],
[
0.13361606001853943,
25.128503799438477
],
[
... | [
{
"type": "collide_with",
"from": 1,
"to": 0,
"time": null,
"location": null
}
] | null |
COSMOS Synthetic Traffic Trajectory Dataset
Version: 2026.05-v1
Paper: Language-Guided Traffic Simulation and Rare Event Synthesis for an Urban Intersection (CVPRW 2026)
Previous version (2024 workshop): https://huggingface.co/datasets/harrypotter1501/cosmos-trajectory
Overview
Synthetic multi-agent traffic trajectories at a fixed urban intersection, generated by the COSMOS pipeline. Each scene is created from a natural language prompt (e.g. "a car yields to a pedestrian") and processed through: Scene Planner → GMM Sampling → Waypoint Filter → Event Reasoner → TrajNet++ Refinement.
Three splits cover normal traffic, vehicle-pedestrian yielding, and collision scenarios.
event_time_frame and metrics are only available for scenes that have simulation output logs (~40–72% per split).
event_location_xy is only set for collision events; it is always null in the yield split.
Files / Splits
| File | Scenes | Description |
|---|---|---|
normal.jsonl |
101 | Normal background traffic, no scripted rare event |
yield.jsonl |
320 | V2P: vehicle yields to pedestrian |
collision.jsonl |
621 | V2V / V2P collision scenes |
| Total | 1042 |
Fields
| Field | Type | Description |
|---|---|---|
scene_uid |
str | Unique scene ID (dataset-sceneId-dirhash) |
scene_id |
str | Original scene ID (e.g. v2p_051) |
category |
str | normal / yield / collision |
backend |
str | LLM used for generation: claude3.5-sonnet / qwen2.5-7b / qwen2.5-3b / minimax / n/a |
scene_type |
str | v2p (vehicle–pedestrian) / v2v (vehicle–vehicle) / n/a |
user_prompt |
str | Natural language prompt given to the LLM |
num_agents |
int | Number of agents in the scene |
relation_type |
str | yield_to / collide_at / null |
event_time_frame |
int | null | Frame index of the primary Yield or Collision event; null if no output log |
event_location_xy |
[float, float] | null | [x, y] in metres; only set for Collision events |
agents[] |
list | Per-agent: id, type, goal, spawn_time, trajectory (T×2 float, metres) |
events[] |
list | Social-graph relation events from the scene definition |
metrics |
dict | null | collision_rate, min_distance_to_others, stop_before_crosswalk_success; null if no output log |
Backend distribution
{
"normal": {
"n/a": 101
},
"yield": {
"claude3.5-sonnet": 130,
"minimax": 50,
"qwen2.5-7b": 90,
"qwen2.5-3b": 50
},
"collision": {
"claude3.5-sonnet": 101,
"minimax": 400,
"qwen2.5-7b": 80,
"qwen2.5-3b": 40
}
}
Usage
from datasets import load_dataset
ds = load_dataset("JojoZhu/cosmos-trajectory-synthesis", data_files={
"normal": "normal.jsonl",
"yield": "yield.jsonl",
"collision": "collision.jsonl",
})
# filter by backend
yield_claude = ds["yield"].filter(lambda x: x["backend"] == "claude3.5-sonnet")
- Downloads last month
- 6