ResizeMode
ResizeMode =
"stretch"|"letterbox"|"crop"
Defined in: packages/runntime/src/zoo/tasks/cv/image.ts:31
How an image is fitted into the model’s input size.
stretch: scale width and height separately; nothing is cut or padded.letterbox: keep the aspect ratio, pad the rest with a flat color.crop: keep the aspect ratio, cut the centered square, then scale.