def __init__(self, device="cpu", model_path="assets/models/G.pth", retinaface_detection=None, face_skin=None, landmark_path=None):
        """
        Args:
            device (str): Device type and index, such as "cpu" or "cuda:2".
            device_id (int): Specifying which device index
                will be used for inference.
        """
        self.device = device
        self.solver = Solver(device, inference=model_path)
        self.preprocess = PreProcess(device, retinaface_detection=retinaface_detection, face_skin=face_skin, landmark_path=landmark_path)
        self.postprocess = PostProcess()

        Args:
            device (str): Device type and index, such as "cpu" or "cuda:2".
            device_id (int): Specifying which device index
                will be used for inference.
        
scripts/easyphoto_utils/psgan_utils.py