  
  class Color(Adjustment):
      """ Adjust the mean of the color channels to be the same for the swap and old frame """
  
      @staticmethod
      def process(old_face, new_face, raw_mask):
          for _ in [0, 1]:
              diff = old_face - new_face
              avg_diff = np.sum(diff * raw_mask, axis=(0, 1))
              adjustment = avg_diff / np.sum(raw_mask, axis=(0, 1))
              new_face += adjustment
 
</s> remove     @staticmethod
    def process(old_face, new_face, raw_mask):
 </s> add     def process(self, old_face, new_face, raw_mask): </s> remove     def _get_image_mask(self, new_face, detected_face, predicted_mask, reference_face):
 </s> add     def _get_image_mask(self,
                        new_face: np.ndarray,
                        detected_face: "DetectedFace",
                        predicted_mask: Optional[np.ndarray],
                        reference_face: "AlignedFace") -> Tuple[np.ndarray, np.ndarray]: </s> remove         if self._adjustments["color"] is not None:
            new_face = self._adjustments["color"].run(old_face, new_face, raw_mask)
        if self._adjustments["seamless"] is not None:
            new_face = self._adjustments["seamless"].run(old_face, new_face, raw_mask)
        logger.trace("returning: new_face shape %s", new_face.shape)
 </s> add         if self._adjustments.color is not None:
            new_face = self._adjustments.color.run(old_face, new_face, raw_mask)
        if self._adjustments.seamless is not None:
            new_face = self._adjustments.seamless.run(old_face, new_face, raw_mask)
        logger.trace("returning: new_face shape %s", new_face.shape)  # type: ignore </s> remove     def _load_plugins(self, config=None, disable_logging=False):
 </s> add     def _load_plugins(self,
                      config: Optional["FaceswapConfig"] = None,
                      disable_logging: bool = False) -> None: </s> remove     def set_display_dimensions(self, dimensions):
 </s> add     def set_display_dimensions(self, dimensions: Tuple[int, int]) -> None:
    def process(self, old_face, new_face, raw_mask):
  
  class Color(Adjustment):
      """ Adjust the mean of the color channels to be the same for the swap and old frame """
  
    def process(self, old_face, new_face, raw_mask):
    def process(self, old_face, new_face, raw_mask):
          for _ in [0, 1]:
              diff = old_face - new_face
              avg_diff = np.sum(diff * raw_mask, axis=(0, 1))
              adjustment = avg_diff / np.sum(raw_mask, axis=(0, 1))
              new_face += adjustment
keep keep keep keep replace replace keep keep keep keep keep
 Bugfix: convert - Gif Writer
  - Fix non-launch error on Gif Writer
  - convert plugins - linting
  - convert/fs_media/preview/queue_manager - typing
  - Change convert items from dict to Dataclass 
plugins/convert/color/avg_color.py