datumaro.components.algorithms.hash_key_inference.explorer#
Classes
|
Explorer for Datumaro dataitems |
- class datumaro.components.algorithms.hash_key_inference.explorer.Explorer(*datasets: Sequence[Dataset], topk: int = 10)[source]#
Bases:
HashInference
Explorer for Datumaro dataitems
- Parameters:
dataset – Datumaro dataset to explore similar dataitem.
topk – Number of images.
- explore_topk(query: DatasetItem | str | List[DatasetItem | str], topk: int | None = None)[source]#
Explore topk similar results based on hamming distance for query DatasetItem