Fix xyxyxyxyn calculation in obb result (#8188)
This commit is contained in:
parent
22feb682d4
commit
f9e9cdf2c3
1 changed files with 1 additions and 1 deletions
|
|
@ -710,7 +710,7 @@ class OBB(BaseTensor):
|
|||
def xyxyxyxyn(self):
|
||||
"""Return the boxes in xyxyxyxy format, (N, 4, 2)."""
|
||||
xyxyxyxyn = self.xyxyxyxy.clone() if isinstance(self.xyxyxyxy, torch.Tensor) else np.copy(self.xyxyxyxy)
|
||||
xyxyxyxyn[..., 0] /= self.orig_shape[1]
|
||||
xyxyxyxyn[..., 0] /= self.orig_shape[0]
|
||||
xyxyxyxyn[..., 1] /= self.orig_shape[1]
|
||||
return xyxyxyxyn
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue