HuggingfaceClient.Inference.Task.ImageSegmentation (huggingface_client v0.1.0)

Copy Markdown View Source

Image segmentation. Returns masks with labels and scores.

Summary

Functions

Runs the image-segmentation task.

Functions

run(client, args)

@spec run(HuggingfaceClient.Client.t(), map()) ::
  {:ok, term()} | {:error, Exception.t()}

Runs the image-segmentation task.

Returns {:ok, result} or {:error, exception}.