Open ahmadh84 opened 7 years ago
How much does it affect the performance?
This is a good point i have noticed also. The paper describes this technique as: "Sample a patch so that the minimum jaccard overlap with the objects is 0.1, 0.3, 0.5, 0.7, or 0.9.".
maybe line 269 should be (the use of max_iou doesn't make any sense):
if overlap.max() < min_iou:
I have a question in the same place. slightly different though! Should overlap be intersection only not IoU? IoU will eliminate very small boxes wouldn't it?
I think that "if overlap.max() < min_iou:" would be a good choice.
I wanted to point out that the line 269 in augmentations.py is incorrect:
This line in
RandomSampleCrop
will always be false because for all casesmax_iou
isinf
. The effect of this is that it doesn't matter what value ofmin_iou
is randomly sampled. The loop will always sample a patch which fulfills the aspect ratio condition, and if it has at least one object whose center falls inside the sampled patch.I know I am pointing a glitch, but I really appreciate the code! Its extremely well commented. Hats off!