DriftCapture · function

samMasksToImage

masks, [count, 4·grid, 4·grid], to image, [count, height, width]: up to the encoder's size, cropped to the image as it was prepared, and down to the original — bilinearly, without aligned corners, as the upstream's postprocess_masks does both. Reads no weights.

Explained in DriftCapture.

function samMasksToImage(config: MobileSamConfig, count: number, height: number, width: number): Architecture
import { samMasksToImage } from '@driftengine/capture';

Parameters

ParameterTypeDescription
configMobileSamConfig
countnumber
heightnumber
widthnumber