Detectron.pytorch icon indicating copy to clipboard operation
Detectron.pytorch copied to clipboard

Generalized_RCNN object has no attribute 'grid_size'

Open Rizhiy opened this issue 6 years ago • 1 comments

If you try to use RoICrop as a ROI_XFROM_METHOD it fails on the following line https://github.com/roytseng-tw/Detectron.pytorch/blob/dddeb6f4ff9fe14e122c26ec0ab5c1928027d8dc/lib/modeling/model_builder.py#L283 as grid_size is not defined for Generalized_RCNN.

It appears that original Detectron doesn't support RoICrop, so perhaps just remove that option?

Rizhiy avatar Jul 31 '18 14:07 Rizhiy

If you try to use RoICrop as a ROI_XFROM_METHOD it fails on the following line Detectron.pytorch/lib/modeling/model_builder.py

Line 283 in dddeb6f

rois, bl_in.size()[2:], self.grid_size)

as grid_size is not defined for Generalized_RCNN. It appears that original Detectron doesn't support RoICrop, so perhaps just remove that option?

I happened to this error either.

qinhaifangpku avatar Oct 08 '18 02:10 qinhaifangpku