pub struct VisionBatch {
pub images: Tensor,
pub labels: Vec<Option<i64>>,
pub boxes: Vec<Vec<BoundingBox>>,
pub keypoints: Vec<Vec<Keypoint>>,
pub masks: Vec<Option<Tensor>>,
}Expand description
Dense image batch with variable-size annotations retained per sample.
Fields§
§images: TensorSame-shaped images stacked on a new leading batch axis.
labels: Vec<Option<i64>>Classification labels, in sample order.
boxes: Vec<Vec<BoundingBox>>Per-image rectangles.
keypoints: Vec<Vec<Keypoint>>Per-image keypoints.
masks: Vec<Option<Tensor>>Per-image optional masks.
Trait Implementations§
Source§impl Debug for VisionBatch
impl Debug for VisionBatch
Source§impl MemoryFootprint for VisionBatch
impl MemoryFootprint for VisionBatch
Source§fn resident_bytes(&self) -> usize
fn resident_bytes(&self) -> usize
Returns the conservative logical payload size in bytes.
Source§impl PinMemory for VisionBatch
impl PinMemory for VisionBatch
Source§fn pin_memory(self, d: Device) -> Result<Self>
fn pin_memory(self, d: Device) -> Result<Self>
Pins this value for the requested accelerator.
Auto Trait Implementations§
impl !Sync for VisionBatch
impl Forget for VisionBatch
impl Freeze for VisionBatch
impl RefUnwindSafe for VisionBatch
impl Send for VisionBatch
impl Unpin for VisionBatch
impl UnsafeUnpin for VisionBatch
impl UnwindSafe for VisionBatch
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