  
      def initialize(self, detector, mtcnn_kwargs):
          """ initialize Keras and Dlib """
          if not VRAM.initialized:
              self.initialize_vram(detector)
  
          if not self.keras.initialized:
              self.initialize_keras(detector)
              # VRAM Scaling factor must be set AFTER Keras has loaded
              VRAM.set_scale_to(detector)
 
</s> remove     def initialize(self, detector, mtcnn_kwargs):
 </s> add     def initialize(self, detector, mtcnn_kwargs, dlib_buffer): </s> remove     def initialize_vram(self, detector):
 </s> add     def initialize_vram(self, detector, dlib_buffer): </s> remove         faces = detect_faces(image, self.args.detector, self.args.verbose,
                             rotation=rotation, mtcnn_kwargs=self.mtcnn_kwargs)
 </s> add         faces = detect_faces(image,
                             self.args.detector,
                             self.args.verbose,
                             rotation=rotation,
                             dlib_buffer=self.args.dlib_buffer,
                             mtcnn_kwargs=self.mtcnn_kwargs) </s> remove class Frame(object):
 </s> add class Frame(): </s> remove class FaceSwapArgs(object):
 </s> add class FaceSwapArgs():
            self.initialize_vram(detector, dlib_buffer)
  
      def initialize(self, detector, mtcnn_kwargs):
          """ initialize Keras and Dlib """
          if not VRAM.initialized:
            self.initialize_vram(detector, dlib_buffer)
  
          if not self.keras.initialized:
              self.initialize_keras(detector)
              # VRAM Scaling factor must be set AFTER Keras has loaded
              VRAM.set_scale_to(detector)
keep keep keep keep replace keep keep keep keep keep
 Add option to change dlib-cnn buffer size 
lib/face_alignment/extractor.py