December 2019
Intermediate to advanced
468 pages
14h 28m
English
In this section, we'll use a pretrained PyTorch Mask R-CNN with a ResNet50 backbone for instance segmentation. This example requires PyTorch 1.1.0, torchvision 0.3.0, and OpenCV 3.4.2. This example is very similar to the one we implemented in the Implementing Faster R-CNN with PyTorch section. Because of this, we'll omit some parts of the code to avoid repetition. Let's start:
model = torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=True)model.eval()
Read now
Unlock full access