MCPcopy Create free account
hub / github.com/TRI-ML/dd3d / create_coco_format_cache

Function create_coco_format_cache

tridet/utils/coco.py:190–193  ·  view source on GitHub ↗
(dataset_dicts, metadata, dataset_name, cache_dir)

Source from the content-addressed store, hash-verified

188
189@broadcast_from_master
190def create_coco_format_cache(dataset_dicts, metadata, dataset_name, cache_dir):
191 cache_path = os.path.join(cache_dir, f"{dataset_name}_coco_format.json")
192 convert_to_coco_json(dataset_dicts, metadata, dataset_name, cache_path)
193 return cache_path

Callers 1

Calls 1

convert_to_coco_jsonFunction · 0.85

Tested by

no test coverage detected