                                     name="face_out")
  
          outputs = [var_x]
  
          if self.config.get("mask_type", None) is not None:
              var_y = var_xy
              mask_a_complexity = 384
              for idx in range(self.upscalers_no-2):
                  var_y = self.blocks.upscale(var_y, mask_a_complexity // 2**idx)
              var_y = self.blocks.upscale(var_y, mask_a_complexity // 2**(idx + 1))
 
</s> remove         if self.config.get("mask_type", None) is not None:
 </s> add         if self.config.get("replicate_input_mask", False): </s> remove         if self.config.get("mask_type", None):
 </s> add         if self.config.get("replicate_input_mask", False): </s> remove         if self.config.get("mask_type", None):
 </s> add         if self.config.get("replicate_input_mask", False): </s> remove         # Mask
        if self.config.get("mask_type", None):
 </s> add         if self.config.get("replicate_input_mask", False): </s> remove         if self.config.get("mask_type", None):
 </s> add         if self.config.get("replicate_input_mask", False):
        if self.config.get("replicate_input_mask", False):
                                     name="face_out")
  
          outputs = [var_x]
  
        if self.config.get("replicate_input_mask", False):
              var_y = var_xy
              mask_a_complexity = 384
              for idx in range(self.upscalers_no-2):
                  var_y = self.blocks.upscale(var_y, mask_a_complexity // 2**idx)
              var_y = self.blocks.upscale(var_y, mask_a_complexity // 2**(idx + 1))
keep keep keep keep replace keep keep keep keep keep
 Smart Mask Exposure for Extraction & Training (#831)

Smart Masks - Initial Commit 
plugins/train/model/realface.py