pub struct CocoDetection { /* private fields */ }Expand description
COCO-style bounding-box/keypoint dataset. Polygon/RLE segmentation is rejected
explicitly; integer masks can be attached to VisionSample by callers.
Implementations§
Trait Implementations§
Source§impl Dataset for CocoDetection
impl Dataset for CocoDetection
Source§type Sample = VisionSample
type Sample = VisionSample
One owned item produced by the dataset.
Source§type Error = VisionError
type Error = VisionError
An error returned while loading a sample.
Source§fn get_batch_with_context(
&self,
indices: &[usize],
context: &WorkerContext,
) -> Result<Vec<Self::Sample>>
fn get_batch_with_context( &self, indices: &[usize], context: &WorkerContext, ) -> Result<Vec<Self::Sample>>
Loads one index batch with cooperative worker lifecycle context. Read more
Auto Trait Implementations§
impl Forget for CocoDetection
impl Freeze for CocoDetection
impl RefUnwindSafe for CocoDetection
impl Send for CocoDetection
impl Sync for CocoDetection
impl Unpin for CocoDetection
impl UnsafeUnpin for CocoDetection
impl UnwindSafe for CocoDetection
Blanket Implementations§
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
Mutably borrows from an owned value. Read more