feat(perception): project recorded results into Rerun
This commit is contained in:
@@ -30,6 +30,9 @@ class CameraComputeJob:
|
||||
job_id: str
|
||||
job_root: Path
|
||||
manifest_path: Path
|
||||
session_id: str
|
||||
source_id: str
|
||||
codec_epoch: int
|
||||
input_sha256: str
|
||||
input_byte_length: int
|
||||
segment_count: int
|
||||
@@ -170,11 +173,14 @@ def validate_camera_compute_job(job_root: Path) -> CameraComputeJob:
|
||||
raise SessionIntegrityError("compute job input generation is inconsistent")
|
||||
|
||||
source_id = input_document.get("source_id")
|
||||
session_id = input_document.get("session_id")
|
||||
codec_epoch = input_document.get("codec_epoch")
|
||||
timeline = input_document.get("timeline")
|
||||
files = input_document.get("files")
|
||||
if (
|
||||
not isinstance(source_id, str)
|
||||
not isinstance(session_id, str)
|
||||
or _SAFE_COMPONENT.fullmatch(session_id) is None
|
||||
or not isinstance(source_id, str)
|
||||
or _SAFE_COMPONENT.fullmatch(source_id) is None
|
||||
or not isinstance(codec_epoch, int)
|
||||
or isinstance(codec_epoch, bool)
|
||||
@@ -235,6 +241,9 @@ def validate_camera_compute_job(job_root: Path) -> CameraComputeJob:
|
||||
job_id=root.name,
|
||||
job_root=root,
|
||||
manifest_path=manifest_path,
|
||||
session_id=session_id,
|
||||
source_id=source_id,
|
||||
codec_epoch=codec_epoch,
|
||||
input_sha256=input_sha256,
|
||||
input_byte_length=total_bytes,
|
||||
segment_count=segment_count,
|
||||
|
||||
Reference in New Issue
Block a user