code: def __init__(self):
      # ? Hair Face Extractors
      self.net = deeplab_xception_transfer.deeplab_xception_transfer_projection_savemem(
          n_classes=20, hidden_layers=128, source_classes=7
      )
      stateDict = torch.load("models/Graphonomy/inference.pth")
      self.net.load_source_model(stateDict)
      self.net.to("cuda")
      self.net.eval()
  
file_path: insightface/reconstruction/ostec/external/graphonomy/FaceHairMask/MaskExtractor.py
imports: import torch
  from PIL import Image
  from torchvision.transforms import transforms
  from FaceHairMask import deeplab_xception_transfer
  from FaceHairMask.graphonomy_inference import inference
  import numpy
  import cv2
label_desc: Use image node_id 1 to create a new MaskExtractor object  with example: obj = MaskExtractor()