code: def __init__(self, config: omegaconf.DictConfig):
      super().__init__()
      self.device = torch.device(config.MODEL.DEVICE)
      self.backbone = build_backbone(config)
      self.proposal_generator = RPN(
          config, self.backbone.output_shape()
      )
      self._fix_proposal_generator(config)
      self.roi_heads = Res5ROIHeads(
          config, self.backbone.output_shape()
      )
      self._fix_res5_block(config)
      self.to(self.device)
  
file_path: mmf/mmf/models/frcnn.py
imports: from typing import List
  import omegaconf
  import torch
  from torch import nn
  from torch.nn import functional
label_desc: Use image node_id 1 to create a new GeneralizedRCNN object from inherited base classes: nn with example: obj = GeneralizedRCNN(config)