Welcome to kwcoco’s documentation!¶
If you are new, please see our getting started document: getting_started
Please also see information in the repo README, which contains similar but complementary information.
Documentation about higher level kwcoco concepts can be found here.
The Kitware COCO module defines a variant of the Microsoft COCO format, originally developed for the “collected images in context” object detection challenge. We are backwards compatible with the original module, but we also have improved implementations in several places, including segmentations, keypoints, annotation tracks, multi-spectral images, and videos (which represents a generic sequence of images).
A kwcoco file is a “manifest” that serves as a single reference that points to all images, categories, and annotations in a computer vision dataset. Thus, when applying an algorithm to a dataset, it is sufficient to have the algorithm take one dataset parameter: the path to the kwcoco file. Generally a kwcoco file will live in a “bundle” directory along with the data that it references, and paths in the kwcoco file will be relative to the location of the kwcoco file itself.
The main data structure in this model is largely based on the implementation in https://github.com/cocodataset/cocoapi It uses the same efficient core indexing data structures, but in our implementation the indexing can be optionally turned off, functions are silent by default (with the exception of long running processes, which optionally show progress by default). We support helper functions that add and remove images, categories, and annotations.
The kwcoco.CocoDataset
class is capable of dynamic addition and removal
of categories, images, and annotations. Has better support for keypoints and
segmentation formats than the original COCO format. Despite being written in
Python, this data structure is reasonably efficient.
>>> import kwcoco
>>> import json
>>> # Create demo data
>>> demo = kwcoco.CocoDataset.demo()
>>> # Reroot can switch between absolute / relative-paths
>>> demo.reroot(absolute=True)
>>> # could also use demo.dump / demo.dumps, but this is more explicit
>>> text = json.dumps(demo.dataset)
>>> with open('demo.json', 'w') as file:
>>> file.write(text)
>>> # Read from disk
>>> self = kwcoco.CocoDataset('demo.json')
>>> # Add data
>>> cid = self.add_category('Cat')
>>> gid = self.add_image('new-img.jpg')
>>> aid = self.add_annotation(image_id=gid, category_id=cid, bbox=[0, 0, 100, 100])
>>> # Remove data
>>> self.remove_annotations([aid])
>>> self.remove_images([gid])
>>> self.remove_categories([cid])
>>> # Look at data
>>> import ubelt as ub
>>> print(ub.urepr(self.basic_stats(), nl=1))
>>> print(ub.urepr(self.extended_stats(), nl=2))
>>> print(ub.urepr(self.boxsize_stats(), nl=3))
>>> print(ub.urepr(self.category_annotation_frequency()))
>>> # Inspect data
>>> # xdoctest: +REQUIRES(module:kwplot)
>>> import kwplot
>>> kwplot.autompl()
>>> self.show_image(gid=1)
>>> # Access single-item data via imgs, cats, anns
>>> cid = 1
>>> self.cats[cid]
{'id': 1, 'name': 'astronaut', 'supercategory': 'human'}
>>> gid = 1
>>> self.imgs[gid]
{'id': 1, 'file_name': '...astro.png', 'url': 'https://i.imgur.com/KXhKM72.png'}
>>> aid = 3
>>> self.anns[aid]
{'id': 3, 'image_id': 1, 'category_id': 3, 'line': [326, 369, 500, 500]}
>>> # Access multi-item data via the annots and images helper objects
>>> aids = self.index.gid_to_aids[2]
>>> annots = self.annots(aids)
>>> print('annots = {}'.format(ub.urepr(annots, nl=1, sv=1)))
annots = <Annots(num=2)>
>>> annots.lookup('category_id')
[6, 4]
>>> annots.lookup('bbox')
[[37, 6, 230, 240], [124, 96, 45, 18]]
>>> # built in conversions to efficient kwimage array DataStructures
>>> print(ub.urepr(annots.detections.data, sv=1))
{
'boxes': <Boxes(xywh,
array([[ 37., 6., 230., 240.],
[124., 96., 45., 18.]], dtype=float32))>,
'class_idxs': [5, 3],
'keypoints': <PointsList(n=2)>,
'segmentations': <PolygonList(n=2)>,
}
>>> gids = list(self.imgs.keys())
>>> images = self.images(gids)
>>> print('images = {}'.format(ub.urepr(images, nl=1, sv=1)))
images = <Images(num=3)>
>>> images.lookup('file_name')
['...astro.png', '...carl.png', '...stars.png']
>>> print('images.annots = {}'.format(images.annots))
images.annots = <AnnotGroups(n=3, m=3.7, s=3.9)>
>>> print('images.annots.cids = {!r}'.format(images.annots.cids))
images.annots.cids = [[1, 2, 3, 4, 5, 5, 5, 5, 5], [6, 4], []]
CocoDataset API¶
The following is a logical grouping of the public kwcoco.CocoDataset API attributes and methods. See the in-code documentation for further details.
CocoDataset classmethods (via MixinCocoExtras)¶
kwcoco.CocoDataset.coerce
- Attempt to transform the input into the intended CocoDataset.
kwcoco.CocoDataset.demo
- Create a toy coco dataset for testing and demo puposes
kwcoco.CocoDataset.random
- Creates a random CocoDataset according to distribution parameters
CocoDataset classmethods (via CocoDataset)¶
kwcoco.CocoDataset.from_coco_paths
- Constructor from multiple coco file paths.
kwcoco.CocoDataset.from_data
- Constructor from a json dictionary
kwcoco.CocoDataset.from_image_paths
- Constructor from a list of images paths.
CocoDataset slots¶
kwcoco.CocoDataset.index
- an efficient lookup index into the coco data structure. The index defines its own attributes likeanns
,cats
,imgs
,gid_to_aids
,file_name_to_img
, etc. SeeCocoIndex
for more details on which attributes are available.
kwcoco.CocoDataset.hashid
- If computed, this will be a hash uniquely identifing the dataset. To ensure this is computed seekwcoco.coco_dataset.MixinCocoExtras._build_hashid()
.
kwcoco.CocoDataset.hashid_parts
-
kwcoco.CocoDataset.tag
- A tag indicating the name of the dataset.
kwcoco.CocoDataset.dataset
- raw json data structure. This is the base dictionary that contains {‘annotations’: List, ‘images’: List, ‘categories’: List}
kwcoco.CocoDataset.bundle_dpath
- If known, this is the root path that all image file names are relative to. This can also be manually overwritten by the user.
kwcoco.CocoDataset.assets_dpath
-
kwcoco.CocoDataset.cache_dpath
-
CocoDataset properties¶
kwcoco.CocoDataset.anns
-
kwcoco.CocoDataset.cats
-
kwcoco.CocoDataset.cid_to_aids
-
kwcoco.CocoDataset.data_fpath
-
kwcoco.CocoDataset.data_root
-
kwcoco.CocoDataset.fpath
- if known, this stores the filepath the dataset was loaded from
kwcoco.CocoDataset.gid_to_aids
-
kwcoco.CocoDataset.img_root
-
kwcoco.CocoDataset.imgs
-
kwcoco.CocoDataset.n_annots
-
kwcoco.CocoDataset.n_cats
-
kwcoco.CocoDataset.n_images
-
kwcoco.CocoDataset.n_videos
-
kwcoco.CocoDataset.name_to_cat
-
CocoDataset methods (via MixinCocoAddRemove)¶
kwcoco.CocoDataset.add_annotation
- Add an annotation to the dataset (dynamically updates the index)
kwcoco.CocoDataset.add_annotations
- Faster less-safe multi-item alternative to add_annotation.
kwcoco.CocoDataset.add_category
- Adds a category
kwcoco.CocoDataset.add_image
- Add an image to the dataset (dynamically updates the index)
kwcoco.CocoDataset.add_images
- Faster less-safe multi-item alternative
kwcoco.CocoDataset.add_video
- Add a video to the dataset (dynamically updates the index)
kwcoco.CocoDataset.clear_annotations
- Removes all annotations (but not images and categories)
kwcoco.CocoDataset.clear_images
- Removes all images and annotations (but not categories)
kwcoco.CocoDataset.ensure_category
- Likeadd_category()
, but returns the existing category id if it already exists instead of failing. In this case all metadata is ignored.
kwcoco.CocoDataset.ensure_image
- Likeadd_image()
,, but returns the existing image id if it already exists instead of failing. In this case all metadata is ignored.
kwcoco.CocoDataset.remove_annotation
- Remove a single annotation from the dataset
kwcoco.CocoDataset.remove_annotation_keypoints
- Removes all keypoints with a particular category
kwcoco.CocoDataset.remove_annotations
- Remove multiple annotations from the dataset.
kwcoco.CocoDataset.remove_categories
- Remove categories and all annotations in those categories. Currently does not change any hierarchy information
kwcoco.CocoDataset.remove_images
- Remove images and any annotations contained by them
kwcoco.CocoDataset.remove_keypoint_categories
- Removes all keypoints of a particular category as well as all annotation keypoints with those ids.
kwcoco.CocoDataset.remove_videos
- Remove videos and any images / annotations contained by them
kwcoco.CocoDataset.set_annotation_category
- Sets the category of a single annotation
CocoDataset methods (via MixinCocoObjects)¶
kwcoco.CocoDataset.annots
- Return vectorized annotation objects
kwcoco.CocoDataset.categories
- Return vectorized category objects
kwcoco.CocoDataset.images
- Return vectorized image objects
kwcoco.CocoDataset.videos
- Return vectorized video objects
CocoDataset methods (via MixinCocoStats)¶
kwcoco.CocoDataset.basic_stats
- Reports number of images, annotations, and categories.
kwcoco.CocoDataset.boxsize_stats
- Compute statistics about bounding box sizes.
kwcoco.CocoDataset.category_annotation_frequency
- Reports the number of annotations of each category
kwcoco.CocoDataset.category_annotation_type_frequency
- Reports the number of annotations of each type for each category
kwcoco.CocoDataset.conform
- Make the COCO file conform a stricter spec, infers attibutes where possible.
kwcoco.CocoDataset.extended_stats
- Reports number of images, annotations, and categories.
kwcoco.CocoDataset.find_representative_images
- Find images that have a wide array of categories. Attempt to find the fewest images that cover all categories using images that contain both a large and small number of annotations.
kwcoco.CocoDataset.keypoint_annotation_frequency
-
kwcoco.CocoDataset.stats
- This function corresponds tokwcoco.cli.coco_stats
.
kwcoco.CocoDataset.validate
- Performs checks on this coco dataset.
CocoDataset methods (via MixinCocoAccessors)¶
kwcoco.CocoDataset.category_graph
- Construct a networkx category hierarchy
kwcoco.CocoDataset.delayed_load
- Experimental method
kwcoco.CocoDataset.get_auxiliary_fpath
- Returns the full path to auxiliary data for an image
kwcoco.CocoDataset.get_image_fpath
- Returns the full path to the image
kwcoco.CocoDataset.keypoint_categories
- Construct a consistent CategoryTree representation of keypoint classes
kwcoco.CocoDataset.load_annot_sample
- Reads the chip of an annotation. Note this is much less efficient than using a sampler, but it doesn’t require disk cache.
kwcoco.CocoDataset.load_image
- Reads an image from disk and
kwcoco.CocoDataset.object_categories
- Construct a consistent CategoryTree representation of object classes
CocoDataset methods (via CocoDataset)¶
kwcoco.CocoDataset.copy
- Deep copies this object
kwcoco.CocoDataset.dump
- Writes the dataset out to the json format
kwcoco.CocoDataset.dumps
- Writes the dataset out to the json format
kwcoco.CocoDataset.subset
- Return a subset of the larger coco dataset by specifying which images to port. All annotations in those images will be taken.
kwcoco.CocoDataset.union
- Merges multipleCocoDataset
items into one. Names and associations are retained, but ids may be different.
kwcoco.CocoDataset.view_sql
- Create a cached SQL interface to this dataset suitable for large scale multiprocessing use cases.
CocoDataset methods (via MixinCocoExtras)¶
kwcoco.CocoDataset.corrupted_images
- Check for images that don’t exist or can’t be opened
kwcoco.CocoDataset.missing_images
- Check for images that don’t exist
kwcoco.CocoDataset.rename_categories
- Rename categories with a potentially coarser categorization.
kwcoco.CocoDataset.reroot
- Rebase image/data paths onto a new image/data root.
CocoDataset methods (via MixinCocoDraw)¶
kwcoco.CocoDataset.draw_image
- Use kwimage to draw all annotations on an image and return the pixels as a numpy array.
kwcoco.CocoDataset.imread
- Loads a particular image
kwcoco.CocoDataset.show_image
- Use matplotlib to show an image with annotations overlaid
- kwcoco
- kwcoco package
- Subpackages
- kwcoco.cli package
- Submodules
- kwcoco.cli.coco_conform module
- kwcoco.cli.coco_eval module
- kwcoco.cli.coco_grab module
- kwcoco.cli.coco_modify_categories module
- kwcoco.cli.coco_reroot module
- kwcoco.cli.coco_show module
- kwcoco.cli.coco_split module
- kwcoco.cli.coco_stats module
- kwcoco.cli.coco_subset module
- kwcoco.cli.coco_toydata module
- kwcoco.cli.coco_union module
- kwcoco.cli.coco_validate module
- Module contents
- Submodules
- kwcoco.data package
- kwcoco.demo package
- kwcoco.examples package
- Submodules
- kwcoco.examples.bench_large_hyperspectral module
- kwcoco.examples.draw_gt_and_predicted_boxes module
- kwcoco.examples.faq module
- kwcoco.examples.getting_started_existing_dataset module
- kwcoco.examples.loading_multispectral_data module
- kwcoco.examples.modification_example module
- kwcoco.examples.simple_kwcoco_torch_dataset module
- kwcoco.examples.vectorized_interface module
- Module contents
- Submodules
- kwcoco.metrics package
- Submodules
- kwcoco.metrics.assignment module
- kwcoco.metrics.clf_report module
- kwcoco.metrics.confusion_measures module
- kwcoco.metrics.confusion_vectors module
- kwcoco.metrics.detect_metrics module
DetectionMetrics
DetectionMetrics.clear()
DetectionMetrics.enrich_confusion_vectors()
DetectionMetrics.from_coco()
DetectionMetrics.add_predictions()
DetectionMetrics.add_truth()
DetectionMetrics.true_detections()
DetectionMetrics.pred_detections()
DetectionMetrics.classes
DetectionMetrics.confusion_vectors()
DetectionMetrics.score_kwant()
DetectionMetrics.score_kwcoco()
DetectionMetrics.score_voc()
DetectionMetrics.score_pycocotools()
DetectionMetrics.score_coco()
DetectionMetrics.demo()
DetectionMetrics.summarize()
pycocotools_confusion_vectors()
eval_detections_cli()
pct_summarize2()
- kwcoco.metrics.drawing module
- kwcoco.metrics.functional module
- kwcoco.metrics.sklearn_alts module
- kwcoco.metrics.util module
- kwcoco.metrics.voc_metrics module
- Module contents
BinaryConfusionVectors
ConfusionVectors
DetectionMetrics
DetectionMetrics.clear()
DetectionMetrics.enrich_confusion_vectors()
DetectionMetrics.from_coco()
DetectionMetrics.add_predictions()
DetectionMetrics.add_truth()
DetectionMetrics.true_detections()
DetectionMetrics.pred_detections()
DetectionMetrics.classes
DetectionMetrics.confusion_vectors()
DetectionMetrics.score_kwant()
DetectionMetrics.score_kwcoco()
DetectionMetrics.score_voc()
DetectionMetrics.score_pycocotools()
DetectionMetrics.score_coco()
DetectionMetrics.demo()
DetectionMetrics.summarize()
Measures
OneVsRestConfusionVectors
PerClass_Measures
eval_detections_cli()
- Submodules
- kwcoco.util package
- Subpackages
- Submodules
- kwcoco.util.dict_like module
- kwcoco.util.jsonschema_elements module
- kwcoco.util.lazy_frame_backends module
- kwcoco.util.util_archive module
- kwcoco.util.util_futures module
- kwcoco.util.util_json module
- kwcoco.util.util_monkey module
- kwcoco.util.util_reroot module
- kwcoco.util.util_sklearn module
- kwcoco.util.util_truncate module
- Module contents
ALLOF()
ANYOF()
ARRAY()
Archive
ContainerElements
DictLike
Element
IndexableWalker
NOT()
OBJECT()
ONEOF()
QuantifierElements
ScalarElements
SchemaElements
StratifiedGroupKFold
ensure_json_serializable()
find_json_unserializable()
indexable_allclose()
resolve_directory_symlinks()
resolve_relative_to()
smart_truncate()
special_reroot_single()
unarchive_file()
- kwcoco.cli package
- Submodules
- kwcoco.abstract_coco_dataset module
- kwcoco.category_tree module
CategoryTree
CategoryTree.copy()
CategoryTree.from_mutex()
CategoryTree.from_json()
CategoryTree.from_coco()
CategoryTree.coerce()
CategoryTree.demo()
CategoryTree.to_coco()
CategoryTree.id_to_idx
CategoryTree.idx_to_id
CategoryTree.idx_to_ancestor_idxs()
CategoryTree.idx_to_descendants_idxs()
CategoryTree.idx_pairwise_distance()
CategoryTree.is_mutex()
CategoryTree.num_classes
CategoryTree.class_names
CategoryTree.category_names
CategoryTree.cats
CategoryTree.index()
CategoryTree.show()
CategoryTree.forest_str()
CategoryTree.normalize()
- kwcoco.channel_spec module
- kwcoco.coco_dataset module
MixinCocoDepricate
MixinCocoAccessors
MixinCocoAccessors.delayed_load()
MixinCocoAccessors.load_image()
MixinCocoAccessors.get_image_fpath()
MixinCocoAccessors.get_auxiliary_fpath()
MixinCocoAccessors.load_annot_sample()
MixinCocoAccessors.category_graph()
MixinCocoAccessors.object_categories()
MixinCocoAccessors.keypoint_categories()
MixinCocoAccessors.coco_image()
MixinCocoExtras
MixinCocoObjects
MixinCocoStats
MixinCocoStats.n_annots
MixinCocoStats.n_images
MixinCocoStats.n_cats
MixinCocoStats.n_videos
MixinCocoStats.category_annotation_frequency()
MixinCocoStats.conform()
MixinCocoStats.validate()
MixinCocoStats.stats()
MixinCocoStats.basic_stats()
MixinCocoStats.extended_stats()
MixinCocoStats.boxsize_stats()
MixinCocoStats.find_representative_images()
MixinCocoDraw
MixinCocoAddRemove
MixinCocoAddRemove.add_video()
MixinCocoAddRemove.add_image()
MixinCocoAddRemove.add_auxiliary_item()
MixinCocoAddRemove.add_annotation()
MixinCocoAddRemove.add_category()
MixinCocoAddRemove.ensure_image()
MixinCocoAddRemove.ensure_category()
MixinCocoAddRemove.add_annotations()
MixinCocoAddRemove.add_images()
MixinCocoAddRemove.clear_images()
MixinCocoAddRemove.clear_annotations()
MixinCocoAddRemove.remove_annotation()
MixinCocoAddRemove.remove_annotations()
MixinCocoAddRemove.remove_categories()
MixinCocoAddRemove.remove_images()
MixinCocoAddRemove.remove_videos()
MixinCocoAddRemove.remove_annotation_keypoints()
MixinCocoAddRemove.remove_keypoint_categories()
MixinCocoAddRemove.set_annotation_category()
CocoIndex
MixinCocoIndex
CocoDataset
demo_coco_data()
- kwcoco.coco_evaluator module
- kwcoco.coco_image module
CocoImage
CocoImage.from_gid()
CocoImage.bundle_dpath
CocoImage.video
CocoImage.detach()
CocoImage.assets
CocoImage.annots()
CocoImage.stats()
CocoImage.get()
CocoImage.keys()
CocoImage.channels
CocoImage.num_channels
CocoImage.dsize
CocoImage.primary_image_filepath()
CocoImage.primary_asset()
CocoImage.iter_image_filepaths()
CocoImage.iter_asset_objs()
CocoImage.find_asset_obj()
CocoImage.add_annotation()
CocoImage.add_asset()
CocoImage.imdelay()
CocoImage.valid_region()
CocoImage.warp_vid_from_img
CocoImage.warp_img_from_vid
CocoImage.resolution()
CocoImage.add_auxiliary_item()
CocoImage.delay()
CocoImage.show()
CocoImage.draw()
CocoAsset
parse_quantity()
coerce_resolution()
- kwcoco.coco_objects1d module
- kwcoco.coco_schema module
- kwcoco.coco_sql_dataset module
FallbackCocoBase
Category
KeypointCategory
Video
Image
Annotation
cls
orm_to_dict()
dict_restructure()
SqlListProxy
SqlDictProxy
SqlIdGroupDictProxy
CocoSqlIndex
CocoSqlDatabase
CocoSqlDatabase.MEMORY_URI
CocoSqlDatabase.coerce()
CocoSqlDatabase.disconnect()
CocoSqlDatabase.connect()
CocoSqlDatabase.fpath
CocoSqlDatabase.delete()
CocoSqlDatabase.populate_from()
CocoSqlDatabase.dataset
CocoSqlDatabase.anns
CocoSqlDatabase.cats
CocoSqlDatabase.imgs
CocoSqlDatabase.name_to_cat
CocoSqlDatabase.pandas_table()
CocoSqlDatabase.raw_table()
CocoSqlDatabase.tabular_targets()
CocoSqlDatabase.bundle_dpath
CocoSqlDatabase.data_fpath
cached_sql_coco_view()
ensure_sql_coco_view()
demo()
assert_dsets_allclose()
devcheck()
- kwcoco.compat_dataset module
- kwcoco.exceptions module
- kwcoco.kpf module
- kwcoco.kw18 module
- kwcoco.sensorchan_spec module
- Module contents
- CocoDataset API
- CocoDataset classmethods (via MixinCocoExtras)
- CocoDataset classmethods (via CocoDataset)
- CocoDataset slots
- CocoDataset properties
- CocoDataset methods (via MixinCocoAddRemove)
- CocoDataset methods (via MixinCocoObjects)
- CocoDataset methods (via MixinCocoStats)
- CocoDataset methods (via MixinCocoAccessors)
- CocoDataset methods (via CocoDataset)
- CocoDataset methods (via MixinCocoExtras)
- CocoDataset methods (via MixinCocoDraw)
AbstractCocoDataset
CategoryTree
CategoryTree.copy()
CategoryTree.from_mutex()
CategoryTree.from_json()
CategoryTree.from_coco()
CategoryTree.coerce()
CategoryTree.demo()
CategoryTree.to_coco()
CategoryTree.id_to_idx
CategoryTree.idx_to_id
CategoryTree.idx_to_ancestor_idxs()
CategoryTree.idx_to_descendants_idxs()
CategoryTree.idx_pairwise_distance()
CategoryTree.is_mutex()
CategoryTree.num_classes
CategoryTree.class_names
CategoryTree.category_names
CategoryTree.cats
CategoryTree.index()
CategoryTree.show()
CategoryTree.forest_str()
CategoryTree.normalize()
ChannelSpec
ChannelSpec.spec
ChannelSpec.info
ChannelSpec.coerce()
ChannelSpec.parse()
ChannelSpec.concise()
ChannelSpec.normalize()
ChannelSpec.keys()
ChannelSpec.values()
ChannelSpec.items()
ChannelSpec.fuse()
ChannelSpec.streams()
ChannelSpec.code_list()
ChannelSpec.as_path()
ChannelSpec.difference()
ChannelSpec.intersection()
ChannelSpec.union()
ChannelSpec.issubset()
ChannelSpec.issuperset()
ChannelSpec.numel()
ChannelSpec.sizes()
ChannelSpec.unique()
ChannelSpec.encode()
ChannelSpec.decode()
ChannelSpec.component_indices()
CocoDataset
CocoImage
CocoImage.from_gid()
CocoImage.bundle_dpath
CocoImage.video
CocoImage.detach()
CocoImage.assets
CocoImage.annots()
CocoImage.stats()
CocoImage.get()
CocoImage.keys()
CocoImage.channels
CocoImage.num_channels
CocoImage.dsize
CocoImage.primary_image_filepath()
CocoImage.primary_asset()
CocoImage.iter_image_filepaths()
CocoImage.iter_asset_objs()
CocoImage.find_asset_obj()
CocoImage.add_annotation()
CocoImage.add_asset()
CocoImage.imdelay()
CocoImage.valid_region()
CocoImage.warp_vid_from_img
CocoImage.warp_img_from_vid
CocoImage.resolution()
CocoImage.add_auxiliary_item()
CocoImage.delay()
CocoImage.show()
CocoImage.draw()
CocoSqlDatabase
CocoSqlDatabase.MEMORY_URI
CocoSqlDatabase.coerce()
CocoSqlDatabase.disconnect()
CocoSqlDatabase.connect()
CocoSqlDatabase.fpath
CocoSqlDatabase.delete()
CocoSqlDatabase.populate_from()
CocoSqlDatabase.dataset
CocoSqlDatabase.anns
CocoSqlDatabase.cats
CocoSqlDatabase.imgs
CocoSqlDatabase.name_to_cat
CocoSqlDatabase.pandas_table()
CocoSqlDatabase.raw_table()
CocoSqlDatabase.tabular_targets()
CocoSqlDatabase.bundle_dpath
CocoSqlDatabase.data_fpath
FusedChannelSpec
FusedChannelSpec.concat()
FusedChannelSpec.spec
FusedChannelSpec.unique()
FusedChannelSpec.parse()
FusedChannelSpec.coerce()
FusedChannelSpec.concise()
FusedChannelSpec.normalize()
FusedChannelSpec.numel()
FusedChannelSpec.sizes()
FusedChannelSpec.code_list()
FusedChannelSpec.as_list()
FusedChannelSpec.as_oset()
FusedChannelSpec.as_set()
FusedChannelSpec.to_set()
FusedChannelSpec.to_oset()
FusedChannelSpec.to_list()
FusedChannelSpec.as_path()
FusedChannelSpec.difference()
FusedChannelSpec.intersection()
FusedChannelSpec.union()
FusedChannelSpec.issubset()
FusedChannelSpec.issuperset()
FusedChannelSpec.component_indices()
FusedChannelSpec.streams()
FusedChannelSpec.fuse()
SensorChanSpec
- CocoDataset API
- Subpackages
- kwcoco package