ItemInfo¶
- class ItemInfo(dataset_name, name, img_path, ann_path)[source]¶
Bases:
NamedTupleBasic information about a dataset item and where it is stored on disk.
Create new instance of ItemInfo(dataset_name, name, img_path, ann_path)
Methods
Return number of occurrences of value.
Return first index of value.
Attributes
str: Full annotation file path of item
str: Item's dataset name
str: Full image file path of item
str: Item name
-
index(value, start=
0, stop=9223372036854775807, /)¶ Return first index of value.
Raises ValueError if the value is not present.
- ann_path¶
str: Full annotation file path of item
- dataset_name¶
str: Item’s dataset name
- img_path¶
str: Full image file path of item
- name¶
str: Item name
-
index(value, start=