Giter VIP home page Giter VIP logo

Comments (5)

glenn-jocher avatar glenn-jocher commented on September 26, 2024

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:

  1. 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.

  2. Fine-Tuning: Sometimes, slightly adjusting the learning rate can also help the model to focus more on finer details like orientation.

  3. 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.

yucath avatar yucath commented on September 26, 2024

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.

yucath avatar yucath commented on September 26, 2024

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.

glenn-jocher avatar glenn-jocher commented on September 26, 2024

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.

github-actions avatar github-actions commented on September 26, 2024

👋 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:

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.