Skip to main content
Version: 0.94

templates.MultipolarImagePatchComparatorTemplateSchema

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

Multipolar Image Patch Comparator template

Parameters

NameTypeDefaultInfo
image_embedding_fieldstrField containing the image embedding.
image_pathstrImage path.
bboxList[float]Bounding box.
labelstrLabel.
pos_thresholdfloat0.5Positive threshold similarity. Datapoints with similarity greater than or equal are voted positive.
neg_thresholdfloat-0.5Negative threshold similarity. Datapoints with similarity less than or equal are voted negative.
invert_votesboolWhether to invert the votes.

artifact_config_keys

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]