def normalize_angles(self) -> None:
        """
        Restrict angles to the range of [-180, 180) degrees
        """
        angle_tensor = (self.tensor[:, 4] + 180.0) % 360.0 - 180.0
        self.tensor = torch.cat((self.tensor[:, :4], angle_tensor[:, None]), dim=1)

        Restrict angles to the range of [-180, 180) degrees
        
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/rotated_boxes.py