Open aymanaboghonim opened 1 year ago
Does anyone can help ?? @Keiku @anurag1paul @hachreak @hhaAndroid
@aymanaboghonim Yes, it is possible that some algorithms do not handle it very robustly. Can you help to find out what exactly needs to be modified?
@hhaAndroid Sorry, I could not catch any bug but I tried the same algo with the same settings few months ago and it was working properly with Negative images.
Is there any fix for this bug ?
hi @hhaAndroid ,
I faced the same issue with point rend in detectron2 but I could fix it following this solution https://github.com/facebookresearch/detectron2/issues/4383#issuecomment-1274648871
I tried to modify the ( /mmcv/ops/point_sample.py) which throws the error but I failed .
can you help me fix this error based on the given solution .
here is my trial :
`## edit to include negative examples
sR, sP, s2 = rel_roi_points.shape
assert s2 == 2, rel_roi_points.shape
if point_feats:
point_feats = torch.cat(point_feats, dim=0)
else:
point_feats = torch.zeros((sR, sP), dtype=rel_roi_points.dtype, layout=rel_roi_points.layout, device=rel_roi_points.device)
Checklist
Describe the bug I could not start training with negative images (images that include no objects but background only) . when I start training , it threw this error message . when I filter out empty images by setting
filter-empty-gt = True
, training is started normally which strongly indicated that is something related to negative images handling not an installation/config issue.Reproduction
Bug fix If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!