Closed jiang1997 closed 3 years ago
https://github.com/chenyuntc/simple-faster-rcnn-pytorch/blob/master/model/faster_rcnn.py#L246
Here is a reverse process to the 'roi_cls_loc' when predicting. So it's kind of make sense to me now. Sorry for this superficial question.
I am working on 'Vison Transformer' based on this implementation of Faster RCNN. Feel free to contact me for exchanging ideas!
As far as I can see, this class will provide proposal target for the head to calculate loss. But I don't really know the purpose to normalize the "gt_roi_loc" before return them. I also have checked the faster-rcnn implemented in the torchvision and there is no such normalization.
https://github.com/chenyuntc/simple-faster-rcnn-pytorch/blob/master/model/utils/creator_tool.py#L129