Skip to main content

//clika-runtime/io.clika.modelverse/ZeroShotImageClassificationPipeline

ZeroShotImageClassificationPipeline

[common]
class ZeroShotImageClassificationPipeline : Pipeline

Zero-shot image classification over a dual-tower VisionModel: a picture and the candidate labels answer each label's score.

Properties​

NameSummary
model[common]
open override val model: VisionModel
The loaded model the pipeline runs.
task[common]
val task: String
The task the pipeline serves, in transformers' spelling.

Functions​

NameSummary
close[common]
open fun close(): <Error class: unknown class>
invoke[common]
operator fun invoke(image: ImageInput, candidateLabels: List<String>): List<LabelScore>