guides/yolo-common-issues/ #8350
Replies: 11 comments 23 replies
-
I trained my model on custom dataset but it's only detecting object which I trained it on. And I want it to detect other objects as well as pre-trained model do. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
I used these both codes for my custom training, Can you choose either one of them and let me know what changes need to be done? 1st Code - `import os from ultralytics import YOLO model = YOLO("yolov8n.pt") # build a new model from scratch results = model.train(data=os.path.join(ROOT_DIR, "google_colab_config.yaml"), epochs=100) # train the model` 2nd Code -
Thank you! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
First of all, thank you to all the team members. You all have been so helpful in my entire journey. I tried it again considering each suggestion you provided but still, it didn't work. I trained on 100, 50, and 30 epochs but it didn't retain the pretrained weights. Following up on your last statement I am attaching my graphs and matrix (of 50 epochs cus it worked best among all). Let me know if you need anything except than this. Additionally, I want to calculate the distance between the bicyclist and the other passing-by vehicles. So, my approach is to train my model on a bicycle helmet so it can make it more unique to detect and then find the center point of the helmet and other passing-by vehicle bounding boxes and calculate the distance between them. If you can suggest a better approach, it would be really helpful. Lastly, considering the final outcome please let me know what is the best and easiest possible way to calculate the distance between the bicycle helmet and other passing-by vehicles. (If it can't retain the pre-trained weights, I am thinking of adding more classes into my custom dataset like cars, buses, trucks, and motorcycles which are the most common vehicles found on the roads.) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply and help! Can you please guide me to find the coordinates of each bounding box? |
Beta Was this translation helpful? Give feedback.
-
While printing the coordinates, why am I getting this error? Kindly, go through my code and the errors and please help me out what changes I need to do. |
Beta Was this translation helpful? Give feedback.
-
Thank you soo much! It's working and I added a few extra lines of code and it's able to calculate the distance. And got the distance but not sure what its unit is.. Please check the images attached and can you tell me what is the default unit of calculated distance? |
Beta Was this translation helpful? Give feedback.
-
hi, I'm implementing yolov8 model in android gallery's search mechanism. the purpose of yolov8 model is to scan media files and return images that has a bounding box label that matches the search query. i can make it work with yolov5s.torchscript.ptl using org.pytorch:pytorch_android_lite:1.10.0 and org.pytorch:pytorch_android_torchvision_lite:1.10.0 but it wont work with yolov8s.torchscript. i really need help with this. |
Beta Was this translation helpful? Give feedback.
-
I have trained a custom model using yolov8 to identify a door as a obstacle. Using that custom model I have run a python script on raspberry pi 4 2gb detect the door from live feed( used a usb web cam with opencv capture the frame). but when the model is loaded fresh rate goes more slower. can I accelerate that refresh rate. I am undergraduate student and please help me. as a group we are going to make a wearable device for blind student in sri lanka to enhance the mobility. |
Beta Was this translation helpful? Give feedback.
-
guides/yolo-common-issues/
A comprehensive guide to troubleshooting common issues encountered while working with YOLOv8 in the Ultralytics ecosystem.
https://docs.ultralytics.com/guides/yolo-common-issues/
Beta Was this translation helpful? Give feedback.
All reactions