py123d_detection.mmcv_export.tokensΒΆ

What goes into info['token'].

123D stamps every frame with a deterministic UUID derived from (split, log_name, timestamp_us), which is enough for training but is not the nuScenes sample_token that the official nuScenes evaluation keys on. NuScenesTokenResolver restores those by joining on (log_name, timestamp_us). For datasets without native frame tokens, LogTimestampTokenResolver writes "{log_name}/{timestamp_us}", which an independent converter can reproduce.

Functions

build_nuscenes_token_map(dataroot[, versions])

Index a nuScenes install as "{scene_name}:{sample_timestamp_us}" -> sample_token.

dump_nuscenes_token_map(dataroot, output_path)

Write the token map to JSON so exports run without the devkit.

Classes

LogTimestampTokenResolver()

MappingTokenResolver(mapping[, strict])

Looks tokens up in a "{log_name}:{timestamp_us}" -> token mapping.

NuScenesTokenResolver(dataroot[, versions, ...])

Restores nuScenes sample_token values from the devkit database.

TokenResolver()

Default resolver: the 123D frame UUID.