utils.py 938 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. from mmdet.structures.bbox import BaseBoxes
  2. class ToyBaseBoxes(BaseBoxes):
  3. box_dim = 4
  4. @property
  5. def centers(self):
  6. pass
  7. @property
  8. def areas(self):
  9. pass
  10. @property
  11. def widths(self):
  12. pass
  13. @property
  14. def heights(self):
  15. pass
  16. def flip_(self, img_shape, direction='horizontal'):
  17. pass
  18. def translate_(self, distances):
  19. pass
  20. def clip_(self, img_shape):
  21. pass
  22. def rotate_(self, center, angle):
  23. pass
  24. def project_(self, homography_matrix):
  25. pass
  26. def rescale_(self, scale_factor):
  27. pass
  28. def resize_(self, scale_factor):
  29. pass
  30. def is_inside(self, img_shape):
  31. pass
  32. def find_inside_points(self, points, is_aligned=False):
  33. pass
  34. def overlaps(bboxes1, bboxes2, mode='iou', is_aligned=False, eps=1e-6):
  35. pass
  36. def from_instance_masks(masks):
  37. pass