Using existing PointRend models
The steps for performing object instance segmentation using existing PointRend models are similar to that of performing object instance segmentation using existing Detectron2 models in the Detectron2 Model Zoo, as described in the previous chapter. Therefore, this section covers more of the differences. For PointRend, we need to clone the Detectron2 repository to use its configuration files from the PointRend project:
!git clone --branch https://github.com/facebookresearch/detectron2.git detectron2_repo
The repository is stored in the detectron2_repo
folder in the current working directory. With this repository cloned, the code to generate the configuration is a little different:
# some other common import statements are removed here from detectron2.projects import point_rend config_file = "detectron2_repo/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_X_101_32x8d_FPN_3x_coco.yaml" checkpoint_url = "detectron2...