  # Based on the original https://www.reddit.com/r/deepfakes/ code sample
  # Adjust code made by https://github.com/yangchen8710
  
  import cv2
  import numpy
  import os
  
  class Convert(object):
      def __init__(self, encoder, smooth_mask=True, avg_color_adjust=True, **kwargs):
          self.encoder = encoder
  
 
</s> remove # Based on the original https://www.reddit.com/r/deepfakes/ code sample
# Adjust code made by https://github.com/yangchen8710
 </s> add #!/usr/bin/env python3
""" Adjust converter for faceswap.py

    Based on the original https://www.reddit.com/r/deepfakes/ code sample
    Adjust code made by https://github.com/yangchen8710 """ </s> remove class Convert(object):
    def __init__(self, encoder, smooth_mask=True, avg_color_adjust=True, **kwargs):
 </s> add class Convert():
    """ Adjust Converter """
    def __init__(self, encoder, smooth_mask=True, avg_color_adjust=True,
                 **kwargs): </s> remove import cv2
import numpy as np

from lib.aligner import get_align_mat
from lib.align_eyes import FACIAL_LANDMARKS_IDXS
 </s> add  </s> remove import numpy as np
 </s> add  </s> remove from datetime import datetime
 </s> add 
import numpy as np

  # Based on the original https://www.reddit.com/r/deepfakes/ code sample
  # Adjust code made by https://github.com/yangchen8710
  
  import cv2
import numpy as np

import numpy as np

  
  class Convert(object):
      def __init__(self, encoder, smooth_mask=True, avg_color_adjust=True, **kwargs):
          self.encoder = encoder
  
keep keep keep keep replace replace keep keep keep keep keep
 Fix convert-adjust (#531)

* Add dimensions to alignments + refactor

* Add frame_dims + funcs to DetectFaces. Add alignments lib

* Convert Adjust working

* Refactor and tidy up 
plugins/convert/Convert_Adjust.py