Comments (3)
@pax7 hello,
Thank you for reaching out and providing detailed information about the issue you're experiencing. Let's address the points you've raised:
-
Reproducible Code Example: To help us investigate this further, could you please provide a minimum reproducible code example? This will allow us to replicate the issue on our end. You can refer to our guide on creating a minimum reproducible example here: Minimum Reproducible Example.
-
Version Check: Ensure that you are using the latest versions of
torch
andultralytics
. You can upgrade your packages using the following commands:pip install --upgrade torch ultralytics
If the issue persists after upgrading, please let us know.
-
Validation Step Slowdown: The slowdown during the validation step and the unreported step could be due to several factors, including data loading bottlenecks, GPU utilization issues, or memory constraints. Here are a few suggestions to diagnose and potentially mitigate the issue:
- Data Loading: Ensure that your data loading pipeline is optimized. You can increase the number of data loader workers by setting the
workers
parameter in your training script. - GPU Utilization: Verify that all GPUs are being utilized effectively. You can monitor GPU usage with
nvidia-smi
to see if there are any bottlenecks. - Memory Management: Check if there are any memory leaks or if the batch size is too large for the available GPU memory.
- Data Loading: Ensure that your data loading pipeline is optimized. You can increase the number of data loader workers by setting the
-
Unused GPU: The fact that one of the GPUs is almost never used despite being defined in the
device
list might indicate an issue with the data parallelism setup. Ensure that your training script is correctly configured to utilize all specified GPUs. You can use thetorch.nn.DataParallel
ortorch.nn.parallel.DistributedDataParallel
modules for multi-GPU training.
Here is a basic example of how to set up multi-GPU training with DataParallel
:
import torch
from ultralytics import YOLO
# Load model
model = YOLO('yolov8n.pt')
# Move model to GPUs
model = torch.nn.DataParallel(model, device_ids=[0,1,2,3,4,5,6,7])
model.to('cuda')
# Train model
model.train(data='path/to/data.yaml', epochs=100, batch_size=32)
Please try these suggestions and let us know if the issue persists. We're here to help! 😊
from ultralytics.
Related Issues (20)
- 'list' object has no attribute 'masks' HOT 6
- Dataset not found ⚠️, missing path HOT 6
- Trying to show the XY value for detecting objects on real-time
- Request for mAP of different scale HOT 8
- FATAL ERROR! reclaim_blob_allocator get wild allocator in Jetson Nano with NCNN Inference HOT 2
- data lable wrong when train yoloworld HOT 7
- Trained YOLOv8 model converted to CoreML doesn't give any predictions HOT 4
- About glean-t and yolov9-t HOT 4
- When I install torch_image, imgsz doesn't work. HOT 1
- Train subclass in Coco data set HOT 4
- Oriented Bounding box health check HOT 3
- [YoloV8] Torch compile model shows metrics degradation on the coco128 dataset HOT 4
- Address Discord badge error HOT 1
- How to reduce the number of target contour points predicted by YOLOv8-Sseg HOT 3
- Batch inference speed same than looping through a bunch of imgs HOT 1
- Using YOLOv8(seg) with SHAP HOT 5
- yolov8 object_counting in and out doesn't differentiate for defined line HOT 4
- how to set `verbose:false` so that model can predict the batches without printing anything in the terminal HOT 1
- Questions about incremental training HOT 3
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.