DriftCapture · function

sam21Decoder

embedding, high1, high0 and prompt, [tokens, dim] — absent when tokens is zero — and mask when refine is set, to masks, quality, object and pointers. With noMemory the decoder adds no_memory_embedding to the features itself, as an image with nothing remembered is decoded; otherwise the features are the memory attention's.

Explained in DriftCapture.

function sam21Decoder(config: Sam21Config, tokens: number, options?:
import { sam21Decoder } from '@driftengine/capture';

Parameters

ParameterTypeDescription
configSam21Config
tokensnumber
options?{ readonly refine?: boolean; readonly noMemory?: boolean; }