          self.verbose = False
          self.stats = GPUStats()
          self.vram_free = None
          self.vram_total = None
          self.scale_to = None
  
          self.device = self.set_device()
  
 
</s> remove         self.initialize(detector, mtcnn_kwargs)
 </s> add         self.initialize(detector, mtcnn_kwargs, dlib_buffer) </s> remove         free_mem = self.vram_free - buffer
 </s> add         free_mem = self.vram_free - self.dlib_buffer  # overhead buffer
        if self.verbose:
            print("Allocating for DLib: {}".format(free_mem)) </s> remove     def __init__(self, input_image_bgr, detector, mtcnn_kwargs=None,
                 verbose=False, input_is_predetected_face=False):
 </s> add     def __init__(self, input_image_bgr, detector, dlib_buffer=64,
                 mtcnn_kwargs=None, verbose=False,
                 input_is_predetected_face=False): </s> remove class Align(object):
 </s> add class Align():
        self.dlib_buffer = 64
          self.verbose = False
          self.stats = GPUStats()
        self.dlib_buffer = 64
          self.vram_free = None
          self.vram_total = None
          self.scale_to = None
  
          self.device = self.set_device()
  
keep add keep keep keep keep keep keep
 Add option to change dlib-cnn buffer size 
lib/face_alignment/vram_allocation.py