Source code for vis4d.op.detect.typing
"""Detect op typing."""
from __future__ import annotations
from typing import NamedTuple
from torch import Tensor
[docs]
class Proposals(NamedTuple):
"""Output structure for 2D bounding box proposals."""
boxes: list[Tensor]
scores: list[Tensor]
[docs]
class Targets(NamedTuple):
"""Output structure for targets."""
boxes: list[Tensor]
classes: list[Tensor]
labels: list[Tensor]