code: def __init__(self):
      super(Resnet18, self).__init__()
      self.conv1 = nn.Conv2d(
          3, 64, kernel_size=7, stride=2, padding=3, bias=False
      )
      self.bn1 = nn.BatchNorm2d(64)
      self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1)
      self.layer1 = create_layer_basic(64, 64, bnum=2, stride=1)
      self.layer2 = create_layer_basic(64, 128, bnum=2, stride=2)
      self.layer3 = create_layer_basic(128, 256, bnum=2, stride=2)
      self.layer4 = create_layer_basic(256, 512, bnum=2, stride=2)
      self.init_weight()
  
file_path: insightface/reconstruction/ostec/external/graphonomy/FaceHairMask/ParsingResnet.py
imports: import torch.nn
  import torch.nn.functional
  import torch.utils.model_zoo
label_desc: Use image node_id 1 to create a new Resnet18 object from inherited base classes: nn with example: obj = Resnet18()