dlib_mmod do not detect too small rectangles #2892
Replies: 1 comment 2 replies
-
Some time ago, I played quite a bit with the MMOD loss. Without more information, it's hard for me to say what's going on. Usually, I hardly ever touched the pyramid levels. You want to make sure that the difference between two levels is not too big so that the objects appear at the right scale somewhere. Are you training on extreme aspect-ratios? Are you sure the training has converged? I find it surprising that you get false positives with the MMOD loss, since it uses all non-labeled image as the negative examples. When I played with it, I rarely got false positives. False negatives were way more likely. What was your expected behavior for
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I would like to train a detector for specific objects. I have a database of matching rectangles, and I am using the
dlib::loss_mmod
for the network. After a little manual optimization of the layer parameters, particularly the number of pyramid levels, I have managed to find topologies which detect the objects reasonably. The problem is, that the detector also returns countless false positives, but mostly rectangles which are too small to be an object.What is the appropriate strategy in this case? Should I simply create a heuristic and throw away too small rectangles a posteriori? Should I collect negative detections and add them to the training manually? The training in the example program uses the cropper to collect negative samples. It is selecting rectangles around the object and labels them false. If so, it raises a question of how many false detections should I select, and in which proportion should I use them in the training?
Also the
dlib::mmod_options::min_target_size
does not work as I would expect it. However, even if it really filters the detections by size, it is not always appropriate, as I have elongated objects, where the short dimension for the true object could be the long dimension for the false detection.Beta Was this translation helpful? Give feedback.
All reactions