pub struct BinAssignment {
pub dt_labels: HashMap<(i64, usize), DtBinLabel>,
pub missed_gts: Vec<(i64, usize)>,
}Expand description
Bin-assignment output for one TIDE call.
Two flat maps keyed by (image_id, dt_input_idx) and (image_id, gt_input_idx) respectively. The dt_input_idx is the index into
the input CocoDetections (the auto-incrementing position the
detection originally occupied in the input list); the
gt_input_idx is the index into the input CocoDataset
annotations (also dataset insertion order).
Both indices are stable across the rewrite layer’s per-bin calls: the rewrite rebuilds detections preserving these positions so the targets stay valid.
Fields§
§dt_labels: HashMap<(i64, usize), DtBinLabel>(image_id, dt_input_idx) → bin label. DTs evicted by the
per-image max_dets cap are absent (mirrors the oracle’s
attribution.get(d.dt_idx) returning None for evicted DTs).
missed_gts: Vec<(i64, usize)>(image_id, gt_input_idx) for non-ignore GTs unmatched by any
same-class DT at t_f. The Missed correction marks these as
ignore=true in the rewrite step.
Trait Implementations§
Source§impl Clone for BinAssignment
impl Clone for BinAssignment
Source§fn clone(&self) -> BinAssignment
fn clone(&self) -> BinAssignment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BinAssignment
impl Debug for BinAssignment
Source§impl Default for BinAssignment
impl Default for BinAssignment
Source§fn default() -> BinAssignment
fn default() -> BinAssignment
Auto Trait Implementations§
impl Freeze for BinAssignment
impl RefUnwindSafe for BinAssignment
impl Send for BinAssignment
impl Sync for BinAssignment
impl Unpin for BinAssignment
impl UnsafeUnpin for BinAssignment
impl UnwindSafe for BinAssignment
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.