How to plot output labels from model.val() #6497
Replies: 1 comment
-
@hamedgorji hello! 😊 After running To visualize and save the labels on the corresponding images, you can use the from ultralytics import YOLO
# Load your trained model
model = YOLO('path/to/your/model.pt')
# Perform prediction on your test dataset and save the images
results = model.predict(source='path/to/your/test/images', save=True) This will save the images with the predictions in the I hope this helps! If you have any more questions, feel free to ask. Happy coding! 🚀 |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I utilized the command metrics = model.val(data="Data/data-test.yaml", split='test', save_txt=True) and it created a "labels" folder. Is there an existing command to plot and save all the labels along with their corresponding images, or do I need to write custom code for this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions