Skip to content
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

Loss converged but no detections? #535

Closed
rremani opened this issue Mar 30, 2017 · 10 comments
Closed

Loss converged but no detections? #535

rremani opened this issue Mar 30, 2017 · 10 comments

Comments

@rremani
Copy link

rremani commented Mar 30, 2017

Hi,
I just used one image with like 190 annotations for localizing characters from a form. Loss started with 10 and after 900 iterations loss was 0.01, after 10k iterations loss was 1e-4, but when I used the model to detect from the same image I got zero detection.

Does anybody have idea what could be the reason. Image size was height 1000 and width 600.

@rremani
Copy link
Author

rremani commented Mar 30, 2017

@Dectinc @wangdelp To detect 191 objects of same class from a single image training...shouldn't it be overfit but why I am not getting even single detection?

@jinyu121
Copy link

Hi~ I also met this problem several days ago, and I worked it out just now.

Please check your annotations, look carefully if any box out of image range. For example, x_min < 0, or the box is much larger than the image, or the box is totally out of image.

Here is a script to check the boxes,and you can also use the LabelImg tool to check them.

I fixed some annotations, and it works well now.

@rremani
Copy link
Author

rremani commented Apr 11, 2017

Hi, Thanks a lot but my annotations are fine. So there isn't any problem with number of predictions in a single image? Also my image was binary.

@djdam
Copy link

djdam commented May 12, 2017

be careful: you have to check the width and height of the boxes AFTER resize. In my case, the original boxes in the images were fine, but there were 2 boxes with zero width/height in the roidb.
Here is a script I use for imdb analysis:

https://github.com/djdam/faster-rcnn-scenarios/blob/master/src/analysis/imdb_analyse.py

(you have to add some fields to your custom imdb script first:

{'boxes' : boxes,
'filename': filename,
'gt_classes': gt_classes,
'gt_overlaps' : overlaps,
'flipped' : False,
'seg_areas' : seg_areas,
'width': width,
'height': height}

@rremani
Copy link
Author

rremani commented May 13, 2017

Thanks @djdam.

@djdam
Copy link

djdam commented May 13, 2017

@rremani was that the problem?

@rremani
Copy link
Author

rremani commented May 14, 2017

@djdam Is there a limit in faster-rcnn for total number of detections in an image? there wasn't any such problem with annotations as they were in the middle of the image.

@djdam
Copy link

djdam commented May 22, 2017

I don't think so, but I am not sure to be honest. I know that you can configure the "batch size" for both RPN as well as Fast RCNN parts, which basically limits the number of proposals fed to the RCNN part of the network.

@rremani
Copy link
Author

rremani commented May 22, 2017

ohk, thanks @djdam ill look more into it.

@rremani rremani closed this as completed May 22, 2017
@cy94
Copy link

cy94 commented Jan 17, 2018

There is an issue with large images not training/testing with cudnn < v5. Try this out #237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants