Skip to content

EncodeSegmentInstancesOptions

Defined in: packages/runntime/src/zoo/tasks/cv/instanceSegmentation.ts:74

The options every encode method takes. Every resource must come from the device passed to initRunntime().

readonly optional confidenceThreshold?: number

Defined in: packages/runntime/src/zoo/tasks/cv/instanceSegmentation.ts:79

Drops objects scored below this, 0 to 1. Default 0.3.


readonly optional encoder?: GpuEncoder

Defined in: packages/runntime/src/zoo/tasks/gpu.ts:38

Records into this encoder, and the caller finishes and submits it, before disposing the runner. It must not have an open pass. Default: a new encoder, submitted before the method returns.

EncodeOptions.encoder


readonly optional maxDetections?: number

Defined in: packages/runntime/src/zoo/tasks/cv/instanceSegmentation.ts:82

At most this many objects, best first. Default: as many as the target holds.


readonly source: GpuImage | GpuTensor<Yolo26Input>

Defined in: packages/runntime/src/zoo/tasks/gpu.ts:33

EncodeOptions.source


readonly target: GpuTensor

Defined in: packages/runntime/src/zoo/tasks/gpu.ts:34

EncodeOptions.target