modes/val/ #8153
Replies: 63 comments 163 replies
-
This line of code "metrics.box.map50" gives error saying that "'NoneType' object has no attribute 'box' ". My code is described below: Load a YOLOv8 modelmodel = YOLO('yolov8n.pt') Train the modelresults_train = model.train(data='japan5.yaml', epochs=1, imgsz=600) Validate the modelmetrics = model.val() # no arguments needed, dataset and settings remembered Please suggest. |
Beta Was this translation helpful? Give feedback.
-
i was trying to train my model but, i dont find de predict file after training either best.pt |
Beta Was this translation helpful? Give feedback.
-
After the training of YOLOv8, I got my metrics results in csv file. However, I did validation. But I cannot get my results in csv format. Only images (png & jpeg). How to get validation results in csv? |
Beta Was this translation helpful? Give feedback.
-
Hey, I am trying to get metrics such as recall and also trying to save some images in validation. I am using coco.yaml. Any idea how I might do it? |
Beta Was this translation helpful? Give feedback.
-
I want to get parameters of a class in metrics and save it to csv. Thank you very much. |
Beta Was this translation helpful? Give feedback.
-
hey i want to do the evaluate my model i already get the detection images using ignition gazebo and ros2 but now i want to evaluate my model like accuracy or MAP or recall how to do it i did not have any dataset or any annotations i am using pretrained yolov8 model and using coco8.yaml |
Beta Was this translation helpful? Give feedback.
-
Hello i have two questions. |
Beta Was this translation helpful? Give feedback.
-
Hello i have two questions kindly help me out. when i have custom trained model. if i load the model and then to detect use" !yolo detect val model=/weights/best.pt data=/data.yaml save=True save_json=True conf=0.85 iou=0.5 split=val " can i give it a new yaml file other than the one which model was trained. For example i used an old dataset to train the model. Now i have new data on which i want to validation of the model i upload data in valid folder and give its yaml file to the model to load those images and validate against the model. (THOSE ARE NEW IMAGES ADDED AFTER TRAINING IN VALID) will it give me accurate results on the new dataset against the model trained? I added 10k images to my Valid folder and want to detection on those new images and see the validation of the model. Second question is that does conf threshold matters while doing validation? and can you please explain how is the confusion matrix is build after validation because its prediction against classes so it goes and compares with the ground truth? Please explain thankyou |
Beta Was this translation helpful? Give feedback.
-
Hi, I want to use the validate function to finetune my trained model and see how it performs against real life pictures. There is however a difference in parameters available between "predict" mode and val "mode". For instance, I would like to use specific settings for Augment and retina_mask as part of the validation. Is this possible? And out of curiosity, why are the default settings for Val different from Predict? |
Beta Was this translation helpful? Give feedback.
-
Hi, I am completing a vision project for an automated industrial packing cell. Currently I have trained 3 custom models for the different tasks. I want to test the performance of each with different scenarios like bright, dim, natural, artificial lighting and varied backgrounds or similar objects. What would be the best method to do so? Would it be best to create these standard test datasets, link with yaml then use the val function? Or use predict and count correct / incorrect detections and work out metrics from there? Once I have done this I also want to investigate performance with different model architecture sizes and training times so has to be easily repeatable. How is best to implement basically, thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
Hi, an iou (1) threshold is used during detection to prevent duplicate bounding boxes. |
Beta Was this translation helpful? Give feedback.
-
hi, the error is
|
Beta Was this translation helpful? Give feedback.
-
hi, |
Beta Was this translation helpful? Give feedback.
-
I use my own post-processing logic on the txts that i get from running inference the validation set. So now I have the post processed txts for the validation set and the original validation txts that i used for training. How to compute the val performance results using the txt files ? |
Beta Was this translation helpful? Give feedback.
-
What does save_hybrid=True do, does it generate more files than false, and why didn't I find it? |
Beta Was this translation helpful? Give feedback.
-
Hello, I have a question about the rect parameter. Is there a relationship between the image size diversity of the dataset and the performance when the reg parameter is activated? I found that the mAP50 decreases when the rect parameter is activated on a dataset with images of various sizes, but the performance is improved when the rect parameter is activated on an image dataset of only one size |
Beta Was this translation helpful? Give feedback.
-
Hello, I would like to know how to use Test-Time Augmentation (TTA) in YOLOv8. I only found the usage of TTA for YOLOv5 on the website https://docs.ultralytics.com/yolov5/tutorials/test_time_augmentation/#before-you-start, and I'm not sure how to apply it in YOLOv8. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
How do I add my own metrics and output them?? |
Beta Was this translation helpful? Give feedback.
-
I want math of Polar encoding algorithm in communication
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: christian ***@***.***>
Sent: Wednesday, September 18, 2024 8:47:59 PM
To: ultralytics/ultralytics ***@***.***>
Cc: MADASU VENKANNA ***@***.***>; Mention ***@***.***>
Subject: Re: [ultralytics/ultralytics] modes/val/ (Discussion #8153)
I want to ask if I don't pass any augment to model.val(), after training, which will be used, best model or last model ?
—
Reply to this email directly, view it on GitHub<#8153 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BAYDEQ6QJARX73F653EUMPDZXGKSPAVCNFSM6AAAAABDE2MO5CVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRYGMZDEOI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
1、I'm working on object detection, and I'm wondering if I need to change the default confidence threshold (conf). I noticed that the documentation mentions two options during validation: conf=0.001 and conf=0.25. I've seen some people using the default value of 0.001. How should I go about adjusting it? |
Beta Was this translation helpful? Give feedback.
-
How can I show all of my image detecting result and labels when validating? |
Beta Was this translation helpful? Give feedback.
-
Hello,in the default three metrics of precision, recall, and mAP, the IoU is set to 0.7 (default) when calculating precision and recall, while the IoU for calculating mAP is set to 0.5 (mAP50). What is the significance of this difference? |
Beta Was this translation helpful? Give feedback.
-
Dear developer, could you please explain why YOLOv8 has a higher number of parameters during training than during testing, while having a lower computational load? After testing and verification, only the best mAP50 values and curve graphs were saved, but the percision and recall at this time were not saved. They were only printed on the console. Can't they be automatically saved?I cannot know their P and R values at the best mAP50 through the P-Curve and R-curve images? |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm using a YOLO model and I've noticed that the processing times (speed) vary each time I run the code with the same dataset and the same model. Can you tell me what factors might cause these changes? The code is constant: |
Beta Was this translation helpful? Give feedback.
-
When i tried to evaluation model by command below: model = YOLO('yolov8n.pt') Why there was an error appear on the results section (i was using Google Colab) Error was below: Ultralytics 8.3.41 🚀 Python-3.10.12 torch-2.5.1+cu121 CUDA:0 (Tesla T4, 15102MiB)
|
Beta Was this translation helpful? Give feedback.
-
hello!please help me, I have some questions:
|
Beta Was this translation helpful? Give feedback.
-
"yolo val" outputs "p","r","mAP50" and "mAP50:95". |
Beta Was this translation helpful? Give feedback.
-
modes/val/
Guide for Validating YOLOv8 Models. Learn how to evaluate the performance of your YOLO models using validation settings and metrics with Python and CLI examples.
https://docs.ultralytics.com/modes/val/
Beta Was this translation helpful? Give feedback.
All reactions