MCPcopy Create free account
hub / github.com/InternRobotics/P3Former / _load_bboxes

Method _load_bboxes

datasets/transforms/loading.py:290–303  ·  view source on GitHub ↗

Private function to load bounding box annotations. The only difference is it remove the proceess for `ignore_flag` Args: results (dict): Result dict from :obj:`mmcv.BaseDataset`. Returns: dict: The dict contains loaded bounding box annotatio

(self, results: dict)

Source from the content-addressed store, hash-verified

288 return results
289
290 def _load_bboxes(self, results: dict) -> None:
291 """Private function to load bounding box annotations.
292
293 The only difference is it remove the proceess for
294 `ignore_flag`
295
296 Args:
297 results (dict): Result dict from :obj:`mmcv.BaseDataset`.
298
299 Returns:
300 dict: The dict contains loaded bounding box annotations.
301 """
302
303 results['gt_bboxes'] = results['ann_info']['gt_bboxes']
304
305 def _load_labels(self, results: dict) -> None:
306 """Private function to load label annotations.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected