MCPcopy
hub / github.com/dbolya/yolact / get_coco_cat

Function get_coco_cat

eval.py:291–293  ·  view source on GitHub ↗

transformed_cat_id is [0,80) as indices in cfg.dataset.class_names

(transformed_cat_id)

Source from the content-addressed store, hash-verified

289
290
291def get_coco_cat(transformed_cat_id):
292 """ transformed_cat_id is [0,80) as indices in cfg.dataset.class_names """
293 return coco_cats[transformed_cat_id]
294
295def get_transformed_cat(coco_cat_id):
296 """ transformed_cat_id is [0,80) as indices in cfg.dataset.class_names """

Callers 2

add_bboxMethod · 0.85
add_maskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected