New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extremely inaccurate reading. #2843
Comments
Check your dataset by using Yolo_mark. |
|
I am using Windows. |
https://github.com/AlexeyAB/darknet#when-should-i-stop-training
|
This is not very bad accuracy for Yolo v2.
|
Hello? Are you still there? I don't want to be pushy, but I really need to do this right. |
Can you share your dataset (images, labels, train.txt, obj.data, obj.names) and your cfg-file? For example, by using Google disk? |
Is there anything wrong with the data I have, or do I just need to train ever longer (though I feel Yolo gets crazier when I train it for a long time) |
@AlexeyAB are you available now? |
@Soccer9001 Hi, Yes, your Yolo v2 model trained very bad. Also I didn't find To avoid overfitting you should use 2x-4x more images, with higher resolution and use separate validation dataset to check the mAP. I just trained cfg-file, commands and Detection results are pretty good: |
I am trying to re-train my data with better image quality, but I will check out the data you gave me. I will let you know if things work out. Thank you for your help btw, I was super confused about everything and felt very useless. |
Actually, I am trying out your stuff with a 640 x 640 image now. Should I consider increasing width and height of the cfg file to something higher? |
Yes, set |
Start training from the begining with batch=64 subdivisions=64 width=320 height=320 in yolov3-obj.cfg And train at least 6000 iterations. |
Okay, I will do that when I get the chance. |
It is possible for me to run your yolo on a Jupyter notebook? My computer isn't the best but I have access to a good Jupyter notebook. If so, can you teach me how to run it there? I am very new to Jupyter. |
Hey @AlexeyAB , I am trying to integrate Yolo into a html to run, so I am wondering if it is possible to run yolo detector via a python script instead of having to run it from commard prompt everytime. |
Hi @AlexeyAB , sorry for the long wait, I hope you are still getting this. Here is my results. I couldn't run the training program even at 320 x 320, so I went to 256 x 256 instead. The results are somewhat mixed. It is better than v2 training, but it is still making a lot of mistakes and missing a lot of objects. |
What should I do now to further improve the model? |
Here is the sample data I used to train. https://drive.google.com/file/d/1K3Ry86WUabhH9gRsXxiyFhAf-xhmULHN/view?usp=sharing |
Hello @AlexeyAB? Are you still there? |
@AlexeyAB Hello? Maybe I should close this thread and create a new one? |
@Soccer9001 Hi,
|
|
Do you have GTX 1050 with only 3GB GPU-RAM? Change all 3 lines: |
Only these 3 lines |
Okay, should I continue with the 6000 int weight or start from the beginning |
Start from the begining |
@AlexeyAB Hello again. The result is slightly better, but still have some error. Anything else I can do to improve? My mAP seems to be capped at 60% to 78%, how can I improve it?. |
@Soccer9001 Hi,
|
I used "medibang paint pro" to crop the pictures. I will try to take pictures of an empty tray later. Those data is meant to be in the cfg file right? You are adding new features? Will I have to re download everything to take advantage of it? When will it be out? I have a deadline within about 2 weeks. What should I do now? Should I restart training again or wait for your new features? |
Yes.
If I add this feature this week, I will tell you. Now you can try to train by using
|
Is there anything I need to change in the yolov3-spp.cfg file? |
Yes
Use default |
Here is a link to the data set I am using. |
Hi @AlexeyAB , bad news. I tried out the new weight, and this is overall a steo backwards. The result is similar to the one before, but now missing french fries and circling more non existent burger boxes. |
Hello @AlexeyAB, are you there? Any update on your new feature as well as what I should do from here? |
@Soccer9001 Did you train yolov3-spp.cfg width=608 height=608 with default anchors? |
I didn't try 608x608 because I ran out of memeory with the other one. I only set to 256x256. I could try it later. I didn't touch the anchors, do you want me to replace the anchors in the file with the one you gave me previously? |
@AlexeyAB Hello. I have tried to train with 608 x 608, unfortunately, it says Cuda is out of memory and recommend me to set subdivision to 64 even though I have already set it to 64. |
@AlexeyAB Hello? Is there anything else I can do? |
@AlexeyAB Hello? Please respond. |
@Soccer9001 Hi, Download the latest version of Darknet, compile it with GPU, cuDNN and OpenCV. |
Hi, I am done with Yolo right now for the most part. The accuracy wasn't the best but it was acceptable at the end. If I ever need your help again, I will contact you again. Thank you for your help and I will be closing this thread now. |
Hi, What mAP did you get at the end? |
I been trying to train YOLO to read image of fast food trash, but YOLO constantly makes prediction in places that doesn't really make any sense whatsoever. And the more I train, the more crazier YOLO becomes.
This is with an avg loss of 0.09 and over 4000+ iteration.
I do have to mention I used 128 x 128 image to train, but this issue still pops up when I used high resolution image.
The text was updated successfully, but these errors were encountered: