Download mmdetection/tests/test_structures/test_bbox/utils.py from Saurabh1105/MMDet: direct link, hf CLI and curl.
- Browser
- Download file 938 Bytes
-
https://huggingface.co/Saurabh1105/MMDet/resolve/main/mmdetection/tests/test_structures/test_bbox/utils.py
- Command line
-
hf download hf://Saurabh1105/MMDet/mmdetection/tests/test_structures/test_bbox/utils.py
-
curl -L -o utils.py https://huggingface.co/Saurabh1105/MMDet/resolve/main/mmdetection/tests/test_structures/test_bbox/utils.py
938 Bytes
| from mmdet.structures.bbox import BaseBoxes | |
| class ToyBaseBoxes(BaseBoxes): | |
| box_dim = 4 | |
| def centers(self): | |
| pass | |
| def areas(self): | |
| pass | |
| def widths(self): | |
| pass | |
| def heights(self): | |
| pass | |
| def flip_(self, img_shape, direction='horizontal'): | |
| pass | |
| def translate_(self, distances): | |
| pass | |
| def clip_(self, img_shape): | |
| pass | |
| def rotate_(self, center, angle): | |
| pass | |
| def project_(self, homography_matrix): | |
| pass | |
| def rescale_(self, scale_factor): | |
| pass | |
| def resize_(self, scale_factor): | |
| pass | |
| def is_inside(self, img_shape): | |
| pass | |
| def find_inside_points(self, points, is_aligned=False): | |
| pass | |
| def overlaps(bboxes1, bboxes2, mode='iou', is_aligned=False, eps=1e-6): | |
| pass | |
| def from_instance_masks(masks): | |
| pass | |