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
| Parameter | Type | Description |
|---|---|---|
config | Sam21Config | |
tokens | number | |
options? | { readonly refine?: boolean; readonly noMemory?: boolean; } |