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): Architectureimport { samMasksToImage } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
config | MobileSamConfig | |
count | number | |
height | number | |
width | number |