Skip to main content
Version: 0.91

templates.ImagePatchComparatorTemplateSchema

class templates.ImagePatchComparatorTemplateSchema(*args, **kwargs)

Image Patch Comparator template

Parameters:
  • image_embedding_field (str) – Field containing the image embedding

  • image_path (str) – Image path

  • bbox (List[float]) – Bounding box

  • operator (string, default >=) – Operator

  • min_similarity (float, default 0.5) – Minimum similarity threshold

static artifact_config_keys()

The names of the fields in the template schema pydantic model that represent paths to files or directories that contain data which back the LF template. For example, paths to a dictionary on disk that’s used within an LF.

Return type:

List[str]