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
|
Index a nuScenes install as |
|
Write the token map to JSON so exports run without the devkit. |
Classes
|
Looks tokens up in a |
|
Restores nuScenes |
Default resolver: the 123D frame UUID. |
- class py123d_detection.mmcv.export.tokens.TokenResolver[source]¶
Bases:
objectDefault resolver: the 123D frame UUID.
- name = 'uuid'¶
- class py123d_detection.mmcv.export.tokens.LogTimestampTokenResolver[source]¶
Bases:
TokenResolver- name = 'log_timestamp'¶
- class py123d_detection.mmcv.export.tokens.MappingTokenResolver(mapping, strict=False)[source]¶
Bases:
TokenResolverLooks tokens up in a
"{log_name}:{timestamp_us}" -> tokenmapping.Frames missing from the mapping fall back to the 123D UUID, or raise when
strictis set.- name = 'mapping'¶
- classmethod from_json(path, strict=False)[source]¶
Load a mapping written by
dump_nuscenes_token_map().- Return type:
- class py123d_detection.mmcv.export.tokens.NuScenesTokenResolver(dataroot, versions=None, strict=False)[source]¶
Bases:
MappingTokenResolverRestores nuScenes
sample_tokenvalues from the devkit database.Leave
strictoff for interpolated (10 Hz) 123D logs, whose non-keyframes have no token.- name = 'nuscenes'¶