Comments (5)
Hello!
Great question! To refine the orientation accuracy when working with oriented bounding boxes (OBB), you can indeed adjust certain hyperparameters. A common approach is to modify the loss weights in your model's configuration file. Here’s a quick guide:
-
Increase the Rotation Loss Weight: Enhance the weight of the rotation component in the loss function. This gives the model more incentive to correctly predict the orientation.
-
Fine-Tuning: Sometimes, slightly adjusting the learning rate can also help the model to focus more on finer details like orientation.
-
Custom Loss Function: If you're feeling adventurous, you can implement a custom loss function that more heavily penalizes inaccuracies in angle prediction.
Here's a snippet for adjusting the loss weights, assuming you’re using a custom YAML file:
# Example of increasing the orientation loss weight
loss:
box: 0.05 # bounding box loss weight
obj: 1.0 # objectness loss weight
cls: 0.5 # class confidence loss weight
angle: 2.0 # increase rotation angle loss weight
Remember to experiment with these hyperparameters carefully and monitor the training to ensure the model is not overfitting on the orientation at the expense of other important metrics.
Best of luck with your training! 🚀
from ultralytics.
Hi Glenn,
Thanks for the reply. I found the parameters box, obj, and cls, but didnt find any parameter called 'angle' in the config file. I am modifying the default yolov8 config file. when i tried to pass the 'angle' parameter i got a error saying 'angle' is not a valid YOLO argument. Is there any other way to include angle loss into the config.
from ultralytics.
I had two yaml files - one for config (which had train, augmentation and other configs), another for giving the paths of dataset and names of classes. I added the loss: \n angle: parameter into the path config yaml file, and it started training, but I cant find if it did actually train with those parameter. No errors were thrown so I assume this is correct?
from ultralytics.
Hello!
It sounds like you've made the right adjustments by adding the angle
parameter to your YAML configuration. If no errors were thrown during training, it's likely that the parameter was accepted. However, to confirm that the angle
parameter is actively influencing the training, you should monitor the training logs for any changes in loss values related to the orientation. Additionally, evaluating the model on a validation set and checking the orientation accuracy can provide more insights into the effectiveness of your modifications.
If you need further assistance or have more questions, feel free to ask! 😊
from ultralytics.
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.
For additional resources and information, please see the links below:
- Docs: https://docs.ultralytics.com
- HUB: https://hub.ultralytics.com
- Community: https://community.ultralytics.com
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!
Thank you for your contributions to YOLO 🚀 and Vision AI ⭐
from ultralytics.
Related Issues (20)
- run "pip install ultralytics" on a cpu-only server still install cuda-related modules HOT 3
- Warning generated by RT-DETR training HOT 2
- extremely low metrics for yolov8-obb training with DOTA1.5 dataset HOT 10
- set cuda device not work for predicting HOT 2
- AttributeError: 'AutoBackend' object has no attribute 'task' & WARNING Metadata not found for 'model=best.onnx' HOT 16
- YOLOv8-OBB angle convertion HOT 1
- Custom YOLOv9e-seg model underperforming YOLOv8x-seg? HOT 1
- Can anyone explain what the output shapes of YOLOv8n and YOLOv8n-seg means? HOT 12
- Training RT-DETR with obb HOT 3
- In a YOLOv8 segmentation task, does resizing images affect the accuracy of the ground truth mask, and can it cause the ground truth polygon to shift? HOT 1
- yolov8_pose HOT 3
- How can I find `pred_dist` function definition? HOT 1
- How to use bfloat for inference with a pytorch pt weight? HOT 4
- Ground truth masks that contain holes in training of segmentation tasks HOT 5
- The meaning of the two training maps HOT 12
- Is it possible to stratify metrics? HOT 3
- i need to modify the behavior of mlflow integration HOT 6
- Creating engine on NVIDIA AGX ORIN 64GB DevKit gets stuck HOT 4
- why callback function not executed in tune() HOT 6
- 如何在训练的时候取消LetterBox直接resize,我改了之后,可是没有效果 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultralytics.