Skip to content

Commit bc799ee

Browse files
committed
upd
1 parent 018d026 commit bc799ee

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docs/source/contents/datasets.rst

+16
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ImageBaseDataset
1414
:show-inheritance:
1515

1616
.. automethod:: __init__
17+
.. automethod:: __getitem__
1718
.. automethod:: visualize
1819

1920
ImageLabeledDataset
@@ -25,6 +26,7 @@ ImageLabeledDataset
2526
.. automethod:: __init__
2627
.. automethod:: __getitem__
2728
.. automethod:: get_labels
29+
.. automethod:: visualize
2830

2931
ImageQueryGalleryLabeledDataset
3032
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -36,6 +38,20 @@ ImageQueryGalleryLabeledDataset
3638
.. automethod:: __getitem__
3739
.. automethod:: get_query_ids
3840
.. automethod:: get_gallery_ids
41+
.. automethod:: get_labels
42+
.. automethod:: visualize
43+
44+
ImageQueryGalleryDataset
45+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46+
.. autoclass:: oml.datasets.images.ImageQueryGalleryDataset
47+
:undoc-members:
48+
:show-inheritance:
49+
50+
.. automethod:: __init__
51+
.. automethod:: __getitem__
52+
.. automethod:: get_query_ids
53+
.. automethod:: get_gallery_ids
54+
.. automethod:: visualize
3955

4056
EmbeddingPairsDataset
4157
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

oml/datasets/images.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def __init__(
133133
self.index_key = index_key
134134

135135
if dataset_root is not None:
136-
paths = list(map(lambda x: Path(dataset_root) / x), paths) # type: ignore
136+
paths = list(map(lambda x: Path(dataset_root) / x, paths))
137137

138138
self._paths = list(map(str, paths))
139139
self._bboxes = bboxes

0 commit comments

Comments
 (0)