(self)
| 64 | raise TypeError(f"MaskData key {k} has an unsupported type {type(v)}.") |
| 65 | |
| 66 | def to_numpy(self) -> None: |
| 67 | for k, v in self._stats.items(): |
| 68 | if isinstance(v, mx.array): |
| 69 | self._stats[k] = np.array(v) |
| 70 | |
| 71 | |
| 72 | def is_box_near_crop_edge( |