Skip to main content

patchify

Function patchify 

Source
pub fn patchify(img: &RgbFrame, patch: usize) -> VisionInput
Expand description

Patchify an image whose sides are multiples of patch: v/255 (f32, the processor’s rescale), then 2·(v - 0.5) (the patch embedder).