vision/faster_rcnn.py at main · pytorch/vision · GitHub
github.com › pytorch › visionNov 11, 2021 · >>> from torchvision.models.detection import FasterRCNN >>> from torchvision.models.detection.rpn import AnchorGenerator >>> # load a pre-trained model for classification and return >>> # only the features >>> backbone = torchvision.models.mobilenet_v2(pretrained=True).features >>> # FasterRCNN needs to know the number of