-
Notifications
You must be signed in to change notification settings - Fork 2.5k
ValueError: No proposal boxes available for one of the images during training #492
Comments
Hi, I think this error should only happen if there are no boxes output by the RPN, and not that the boxes do not overlap, which is very weird. Did you change anything else in the codebase? |
No, the coco-training is running perfectly, it is rather the database. |
Oh, I see, this error is not happening when matching the instances for the RPN, but when preparing the instances for the heads. |
The thing is that it runs for a while with an average number of proposals of 25 (not showing any kind of decrease) and suddenly when 0 proposals are made, then crash occurs, and I am not so sure at which point should I catch this error. Could you give some hints? |
are you sure that all the images have valid annotations? This sounds like there is an image that has problematic annotations |
I have printed all the instance labels for every image loaded, and no, every empty entries are removed from the dataset |
Same thing for boxes which have less than 1 size? |
printed the boxes' size as well, I remove any instance that is less than 100 pixels in area (sum reduced binary masks) not a single problem like this |
One thing I don't understand: you mentioned that there are 25 proposals on average: this seems very low to me, the default parameters should make something like 512. Why is that the case? |
try out printing proposals on the COCO dataset as well. It is higher than 25 but definitely not close to 512 |
So, I think there is a confusion between proposals and ground-truth boxes. The proposals are the ones returned by the RPN, and are in the order of 1000s. We select a subset of them to feed to the heads. The error you are mentioning says that there are no proposals: this is very weird and should not happen in general. |
If you'd like, I can get the number of proposals during a regular COCO training as well and report it here. Indeed, the error is quite odd, any tips on workaround? |
I'd first try to understand if your RPN is outputting the right things. It should output around 2000 proposals (that's the value we specify in the config). If that's lower than that then there is a problem there already |
I have found the source of this problem. |
hello I also have this issue; and how do you solved it. thanks! |
❓ Questions and Help
In #169 the case is discussed where no annotations are available.
During training on small objects it is quite frequent that the RPN does not generate any proposal, what can I do now?
Reducing
NMS_THRESH
andFG_IOU_THRESHOLD
does not seem to help.The text was updated successfully, but these errors were encountered: