# Incorrect angle detection when going from 180 degrees to 0 degrees Yolov8-obb

**URL:** <https://community.ultralytics.com/t/incorrect-angle-detection-when-going-from-180-degrees-to-0-degrees-yolov8-obb/749>\
**Category:** YOLO\
**Tags:** question, troubleshooting, yolo, support\
**Created:** [February 8, 2025, 6:11pm UTC](https://community.ultralytics.com/t/incorrect-angle-detection-when-going-from-180-degrees-to-0-degrees-yolov8-obb/749 "2025-02-08T18:11:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick\_dmnv](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/nick_dmnv/32/584_2.png) [@nick\_dmnv](https://community.ultralytics.com/u/nick_dmnv)\
**Post date:** [February 8, 2025, 6:11pm UTC](https://community.ultralytics.com/t/incorrect-angle-detection-when-going-from-180-degrees-to-0-degrees-yolov8-obb/749/1 "2025-02-08T18:11:38Z")

</div>

Hello. I have the following problem: I have made a frame of images in CVAT, I used a rectangle for marking (the object is asymmetric, both its ends are not similar to each other), when marking the angle was from 0 to 360 degrees. After that I converted the dataset and started training the YOLOv8-obb ​​model. I have only 1 class in my project and the object is perfectly detected and the rotation angle is perfectly determined, but at points between 180 and 0 degrees an anomaly occurs and completely incorrect angle readings are displayed. I would like to see the angle either from 0 to 360 or -180-0-180. How can I solve this problem? Please help me figure it out.

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [February 9, 2025, 9:50am UTC](https://community.ultralytics.com/t/incorrect-angle-detection-when-going-from-180-degrees-to-0-degrees-yolov8-obb/749/2 "2025-02-09T09:50:43Z")

</div>

The range of OBB is 0-90. It can’t predict angles beyond that. Angles beyond that degenrates to a range between 0-90 due to how it works.

---

<div class="post-metadata">

**Author:** ![n111](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/n111/32/730_2.png) [@n111](https://community.ultralytics.com/u/n111)\
**Post date:** [May 5, 2025, 7:50am UTC](https://community.ultralytics.com/t/incorrect-angle-detection-when-going-from-180-degrees-to-0-degrees-yolov8-obb/749/3 "2025-05-05T07:50:21Z")

</div>

Hi, could you know how to solve it given the limited range?

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [May 5, 2025, 10:08am UTC](https://community.ultralytics.com/t/incorrect-angle-detection-when-going-from-180-degrees-to-0-degrees-yolov8-obb/749/4 "2025-05-05T10:08:32Z")

</div>

You can try using keypoints to calculate the angle.
