pub struct FederatedMetadata {
pub pos_category_ids: HashMap<ImageId, HashSet<CategoryId>>,
pub neg_category_ids: HashMap<ImageId, HashSet<CategoryId>>,
pub not_exhaustive_category_ids: HashMap<ImageId, HashSet<CategoryId>>,
pub category_frequency: HashMap<CategoryId, Frequency>,
}Expand description
LVIS federated metadata bundle (ADR-0026). Carried as a single
Option on CocoDataset because the four fields are all
populated together by CocoDataset::from_lvis_json_bytes and
all None after the COCO loader path. Storing one optional
struct (rather than four separate Option<...> fields) reflects
the all-or-none semantics and lets the orchestrator gate
federated branches on a single is_some() check.
Fields§
§pos_category_ids: HashMap<ImageId, HashSet<CategoryId>>Per-image positive-category set, derived from GT annotations at load (quirk AA1, not a JSON field).
neg_category_ids: HashMap<ImageId, HashSet<CategoryId>>Per-image negative-category set, read verbatim from the JSON (quirk AA2).
not_exhaustive_category_ids: HashMap<ImageId, HashSet<CategoryId>>Per-image not-exhaustive-category set, read verbatim from the JSON (quirk AA3).
category_frequency: HashMap<CategoryId, Frequency>Per-category frequency tag (quirk AB1). Required on every
category by from_lvis_json_bytes; missing entries raise
EvalError::MissingFrequency at load (quirk AB6
corrected).
Trait Implementations§
Source§impl Clone for FederatedMetadata
impl Clone for FederatedMetadata
Source§fn clone(&self) -> FederatedMetadata
fn clone(&self) -> FederatedMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for FederatedMetadata
impl RefUnwindSafe for FederatedMetadata
impl Send for FederatedMetadata
impl Sync for FederatedMetadata
impl Unpin for FederatedMetadata
impl UnsafeUnpin for FederatedMetadata
impl UnwindSafe for FederatedMetadata
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.