Comments (1)
@1005183361 hello,
Thank you for reaching out and providing details about the issue you're experiencing with the OBB rotating box detection model. To better assist you, could you please provide a minimum reproducible code example? This will help us understand the context and reproduce the issue on our end. You can find guidelines for creating a minimum reproducible example here. 📝
Additionally, please ensure that you are using the latest versions of torch
and ultralytics
. You can update your packages using the following commands:
pip install --upgrade torch ultralytics
Here are a few suggestions that might help improve the convergence of your losses:
-
Data Quality and Augmentation: Ensure that your dataset is well-annotated and balanced. Sometimes, data augmentation techniques can help improve model robustness.
-
Hyperparameter Tuning: While you have already tried adjusting the learning rate and weight decay, consider experimenting with other hyperparameters such as batch size and momentum.
-
Learning Rate Scheduler: Using a learning rate scheduler can help in adjusting the learning rate dynamically during training. For example, you can use
ReduceLROnPlateau
to reduce the learning rate when a metric has stopped improving. -
Model Architecture: Sometimes, tweaking the model architecture can help. You might want to experiment with different backbone networks or modify the existing layers.
-
Loss Function: Ensure that the loss function is appropriate for your specific task. Customizing the loss function to better suit the characteristics of your data might yield better results.
Here is a basic example of how you might set up a learning rate scheduler in your training script:
from torch.optim.lr_scheduler import ReduceLROnPlateau
# Assuming 'optimizer' is already defined
scheduler = ReduceLROnPlateau(optimizer, mode='min', factor=0.1, patience=10, verbose=True)
for epoch in range(num_epochs):
train_one_epoch() # Your training function
val_loss = validate() # Your validation function
scheduler.step(val_loss)
If you continue to face issues, please share more details about your dataset and training configuration. This will help us provide more targeted advice.
Looking forward to your response!
from ultralytics.
Related Issues (20)
- Extracting Keypoint IDs (an, if possible, Keypoint Labels) in YOLOv8 for Pose Estimation HOT 9
- New YOLOv# Format for Pose Estimation with Keypoints Labels HOT 2
- Error after running make and ./Yolov8CPPInference in C++ HOT 3
- rtdetr fp16 inference HOT 4
- Simple question: How can I check the visual result of tracking video in Colab? HOT 2
- got an unexpected keyword argument 'allow_empty HOT 3
- How to publish an application to the client in python and run it using the GPU HOT 13
- When predicting, does yolov8's behavior change when there are different sized images in the input image list? HOT 2
- Yolov9 onnx export HOT 3
- Trainning not improving: Decreasing mAP and Early Stopping at Epoch 100 HOT 1
- Training on a new dataset based on best.pt HOT 7
- The effect of the random function HOT 3
- During validation, the result is different when setting the "save_txt" is True or False HOT 5
- SPAM HOT 2
- Erro when export yolo8n.pt to yolov8n.engine HOT 14
- When I use device='cpu', I always get' Process finished with exit code-1073741819 (0xC0000005) ' HOT 10
- Predict result HOT 2
- How to determine which predict layer is responsible for detection ? HOT 4
- about drawing the ground truth box HOT 1
- YOLOv8 OBB height issues HOT 1
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.