code: def __init__(self, pretrained=True, layers=None, **kwargs):
      backbone = inceptionv4(
          pretrained="imagenet" if pretrained else None
      )
      channels = [64, 192, 384, 1024, 1536]
      strides = [2, 4, 8, 16, 32]  # Note output strides are approximate
      if layers is None:
          layers = [1, 2, 3, 4]
      features = backbone.features
      super().__init__(channels, strides, layers)
  
      self.layer0 = features[0:3]
      self.layer1 = features[3:5]
      self.layer2 = features[5:10]
      self.layer3 = features[10:18]
      self.layer4 = features[18:22]
  
      self._output_strides = _take(strides, layers)
      self._output_filters = _take(channels, layers)
  
imports: from .common import EncoderModule, _take, make_n_channel_input
  from ..backbone.inceptionv4 import inceptionv4
label_desc: Use image node_id 1 to create a new InceptionV4Encoder object from inherited base classes: EncoderModule with example: obj = InceptionV4Encoder(pretrained, layers)