-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
mAP always zero #1108
Comments
If you're using your own dataset, you can't expect to match Jon's results exactly. Hopefully that's obvious.
My first thought would be that you may just need to wait longer. |
Thanks Luke. I trained it for 200 epochs and mAP, precision, and recall were 0 at the end. I'd expect it to nudge up above zero if it's learning anything. I suspect the label file or the custom class names, but I can't see what's wrong. |
Got it - I thought from your screenshot that you might just need to wait a little longer. I'm having a similar issue trying to adapt DetectNet to another dataset right now - I train for several dozen epochs and never get non-zero precision or recall. I'll let you know if I find anything helpful. |
I had the same problem, and it was because the data augmentation transformation didn't suit my dataset. When i disabled them it worked. |
Thanks Sherif. How did you disable the transformation? I'm guessing I need to change something here. |
just set the " detectnet_augmentation_param" probabilities to zero, except the cropping |
OK, like this? detectnet_augmentation_param { I'll let it train overnight. It's done 5 epochs so far and mAP remains 0. |
Should I enter anything in the "Python Layers" field or leave it blank when I create the model? In this article it says "DetectNet also uses the “Python Layers” interface to calculate and output a simplified mean Average Precision (mAP) score for the final set of output bounding boxes." |
You can leave it blank because the |
Thanks @gheinrich. The model has done nearly 185 epochs now. Interestingly, mAP shot up from 0 to 28.7 on the 121st epoch and has been slowly increasing since then. Thankfully it's learning. I appreciate your tip @sherifshehata. |
iam also in the similar situation i tried changing augmentation as mentioned but haven't worked .Please someone help solve it.i may attach the few lkstlines of log file here.I0413 06:08:56.441606 22206 net.cpp:159] Memory required for data: 5099532756 |
@shreyasramesh - I am currently in the same scenario. Did you manage to get it to train? |
Same problem. Any idea? |
I am also having this issue. Commenting for visibility. |
I had the same issue, it turned out that my label files were incorrect (the bounding box co-ordinates were in the wrong places). I'd suggest you re-verify your label text files. Thanks |
had the same problem as @ironhide23586 check your label files, and also train for more epochs had an mAP at 0 for a long time until it rose |
For how many epochs was your mAP at 0 @druedaplata ? |
Could you share exactly how you preprocessed your data? That's encouraging, thanks! :) |
In that picture above, I used a dataset without augmentation of around 600 images. I used that picture to show how mAP does change after some epochs. In a different one, using mirror and rotations, I got like 3000 images and mAP was 65% which is nice. |
So, did you resize the images by interpolation or by padding them? And that's pretty impressive! If its possible for you to share your pre-processed data and screenshots of the dataset creation page, that'd be a lifesaver. Thanks! |
I resize them outside digits with Imagemagick using mogrify to 640x640, i can't share data though. Just in case, I had problems with mAP in 0 before for this reasons:
|
Thanks a lot! I'll give this a try... |
I can't figure out why my model training mAP (val) doesn't get above zero. I'm trying to use the same approach and the SpaceNet_DetectNet_Train_Val.prototxt from this article.
My label files 000n.txt look like this:
p 0.0 0 0.0 0 0 24 118 0 0 0 0 0 0 0 0
My images are 1280x1280, and I'm using these custom classes:
dontcare,p
Where am I going wrong?
The text was updated successfully, but these errors were encountered: