templates.MultipolarImagePatchComparatorTemplateSchema
- class templates.MultipolarImagePatchComparatorTemplateSchema(*args, **kwargs)
Multipolar Image Patch Comparator template
Parameters
Parameters
Name Type Default Info image_embedding_field str
Field containing the image embedding. image_path str
Image path. bbox List[float]
Bounding box. label str
Label. pos_threshold float
0.5
Positive threshold similarity. Datapoints with similarity greater than or equal are voted positive. neg_threshold float
-0.5
Negative threshold similarity. Datapoints with similarity less than or equal are voted negative. invert_votes bool
Whether to invert the votes. - 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
Return type
List
[str
]
artifact\_config\_keys
artifact_config_keys