modes/train/ #8075
Replies: 243 comments 654 replies
-
|
how to print IOU and f-score with the training result? |
Beta Was this translation helpful? Give feedback.
-
|
How are we able to save sample labls and predictions on the validation set during training? I remember it being easy from yolov5 but I have not been able to figure it out with yolov8. |
Beta Was this translation helpful? Give feedback.
-
|
If I am not mistaken, the logs shown during training also contain the box(P,R,mAP@0.5 and mAP@0.5:0.95) and mask(P,R,mAP@0.5 and mAP@0.5:0.95) for validation set during each epoch. Then why is it happening that during model.val() using the best.pt, I am getting worse metrics. From the training and validation curves, it is clear that the model is overfitting for the segmentation task but that is separate issue of overfitting. Can you please help me out in this? |
Beta Was this translation helpful? Give feedback.
-
|
So, imgsz works different when training than when predicting? For train: if it's an Is this right? |
Beta Was this translation helpful? Give feedback.
-
|
Hi all, I have a segment model with customed data with single class, but there is a trend to overfit in the recent several training results, I tried adding more data in the training set with reduce box_loss and cls_loss in val, but dfl_loss is increasing. Is there suggestion to tuing the model. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
|
I have a question for training the segmentation model. I have objects in my dataset that screen each other, such that the top object separates the segmentation mask of the bottom object into two independent parts. as far as I can see, the coordinates of each point are listed sequentially in the label file. If I add the points of the two masks one after the other in the coordinates of the same object, will I solve the problem? |
Beta Was this translation helpful? Give feedback.
-
|
Hello there! |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I am working on a project for android devices. The gpu and cpu powers of the device I have are weak. Will it speed up if I make the imgsz value 320 for train? Or what are your recommendations? What happens if the imgsz parameter for training is 640 and the imgsz parameter for prediction is 320? Or what changes if imgsz for training is 320 and imgsz for prediction is 320? Sorry for my English Note: I converted it to tflite model. Thanks. You are amazing |
Beta Was this translation helpful? Give feedback.
-
|
I've come to rely on YOLOv8 in my daily work; it's remarkably user-friendly. Thank you to the Ultralytics team for your excellent work on these models! I'm currently tackling a project focused on detecting minor defects on automobile engine parts. As the defects will be a smaller object in a given frame ,could you offer guidance on training arguments or techniques while training a model that might improve performance for this type of data? I'm also interested in exploring attention mechanisms to enhance the model performance, but I'd appreciate help understanding how to implement this. Special appreciation to Ultralytics team. |
Beta Was this translation helpful? Give feedback.
-
|
Running this provided example Which lead me to this Stackoverflow: https://stackoverflow.com/q/75111196/815507 There are solutions from Stackoverflow: I wonder if you could help and update the guide to provide the best resolution? |
Beta Was this translation helpful? Give feedback.
-
|
We need to disable blur augmentation. I have filed an issue, Glenn suggested me to use blur=0, but it is not a valid argument. #8824 |
Beta Was this translation helpful? Give feedback.
-
|
How can I train YOLOv8 with my custom dataset? |
Beta Was this translation helpful? Give feedback.
-
|
Hey, Was trying out training custom object detection model using pretrained YOLO-v8 model. 0% 0/250 [00:00<?, ?it/s] |
Beta Was this translation helpful? Give feedback.
-
|
Hi! I'm working on a project where I plan to use YOLOv8 as the backbone for object detection, but I need a more hands-on approach during the training phase. How to I train the model manually, looping through epochs, perform forward propagation, calculate loss functions, backpropagate, and update weights? At the moment the model.train() seems to handle all of this automatically in the background. The end goal is knowledge distillation, but for a start I need to access these things. I haven't been able to find any examples of YOLOv8 being used in this way, some code and tips would be helpful. |
Beta Was this translation helpful? Give feedback.
-
|
Im trying to understand concept of training. I would like to extend default classes with helmet, gloves, etc.
Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
|
Hi, i am using yolo v11 i have 2 question
Sorry if my english is bad, i`m new to it😁 |
Beta Was this translation helpful? Give feedback.
-
|
I encountered a problem while training a YOLOv11 model using a dataset exported from Roboflow. Although my data.yaml file has the correct paths configured like this: train: /path/to/train/images The model seems to train using the images inside the validation folder instead of the training folder. |
Beta Was this translation helpful? Give feedback.
-
|
Good day, For the imgsz parameter when training a model, it says any of int or list is supported, but in cases of list, what format is expected: Thank You! |
Beta Was this translation helpful? Give feedback.
-
|
I set workers=24, but during training the terminal shows "Using 0 dataloader workers". Is this happening because I'm not using a GPU, or is there another reason? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @glenn-jocher, I have trained one basic model for nuclei segmentation using yolov8. After some time I have collected some other of nuclei images, i need to improvize the model performance , after adding the data to previous data, i need to train the model by using |
Beta Was this translation helpful? Give feedback.
-
|
Hi Asshol1,
if you have time, train with a pre-trained and default seg model.
Suggestion:
1. Use yolo11n-seg
2. if you are using a previous model, add the parameter pretrained=True
…On Tue, 13 May, 2025, 8:04 pm Asshok1, ***@***.***> wrote:
Hey @glenn-jocher <https://github.com/glenn-jocher>, I have trained one
basic model for nuclei segmentation using yolov8. After some time I have
collected some other of nuclei images, i need to improvize the model
performance , after adding the data to previous data, i need to train the
model by using
model = YOLO('yolov8n-seg.pt') or model = YOLO('previous trained model
best.pt') as an initial weights can you clarify my doubt, i thought using
previous trained one as an initial weights would be beneficial because it
learns the patterns of specific application instead of coco weights
—
Reply to this email directly, view it on GitHub
<#8075 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BSIM7DUWVRR2XAHOKGM7CXD26H7HTAVCNFSM6AAAAABC5RBELKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMJTGI2TEMI>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
|
subprocess.CalledProcessError: Command '['/home/vipuser/anaconda3/envs/mm/bin/python3.1', '-m', 'torch.distributed.run', '--nproc_per_node', '2', '--master_port', '53901', '/root/.config/Ultralytics/DDP/_temp_eo56mud3140463583261168.py']' returned non-zero exit status 1. |
Beta Was this translation helpful? Give feedback.
-
|
I used the pre-trained yolo11n model to fine-tune it on my license plate detection dataset. I only used the following lines: |
Beta Was this translation helpful? Give feedback.
-
|
I’d like to train a YOLO11x-seg model on 4-channel RGBE images (the usual 3-channel RGB plus a single edge channel). Could you please explain:
Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
-
|
Hi, can someone help understand why model is not giving class name as 'person' when I have trained the model yolo11x with images having only one class, i.e., "person". It's detection is giving good confidence but class name itself is not as expected. my .cfg file structure is as follows: yolo_bbox_cfg.yamlRoot dataset directorypath: /content/drive/MyDrive/Colab_Notebooks/Personal_Projects/Shravan_projects/yolo_ultralytics_bbox_train_on_kaggle_dataset/fareselmenshawii_dataset Train/validation image directories (relative to 'path')train: images/train Number of classes and namesnc: 1 The following code to extract the predicted class name: Output is: Kindly help. |
Beta Was this translation helpful? Give feedback.
-
|
hey @gleen-jocher
|
Beta Was this translation helpful? Give feedback.
-
|
hey @gleen-jocher, |
Beta Was this translation helpful? Give feedback.
-
|
hi @gleen-jocher , I want trained a custom yolov8 model for segmentation task, now I want to use trained custom model for commercial application, did it requires any licence or not, if licence required why it is required ( as only using trained model for commercial application ) |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Training yolo26 outputs a lot of lines in the terminal within each epoch, about each second or so. Here is my script:=============================== |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
modes/train/
Step-by-step guide to train YOLOv8 models with Ultralytics YOLO including examples of single-GPU and multi-GPU training
https://docs.ultralytics.com/modes/train/
Beta Was this translation helpful? Give feedback.
All reactions