datumaro.plugins.data_formats.coco.page_mapper#
Classes
|
Construct page maps for items and annotations from the JSON file, which are used for the stream importer. |
- class datumaro.plugins.data_formats.coco.page_mapper.COCOPageMapper(path: str)[source]#
Bases:
object
Construct page maps for items and annotations from the JSON file, which are used for the stream importer.
It also provides __iter__() to produce item and annotation dictionaries in stream manner after constructing the page map.
- class datumaro.plugins.data_formats.coco.page_mapper.Any(*args, **kwargs)[source]#
Bases:
object
Special type indicating an unconstrained type.
Any is compatible with every type.
Any assumed to have all methods.
All values assumed to be instances of Any.
Note that all the above statements are true from the point of view of static type checkers. At runtime, Any should not be used with instance checks.
- datumaro.plugins.data_formats.coco.page_mapper.CocoPageMapperImpl#
alias of
CocoPageMapper