              self.get_available_vram()
              gradient = 213 / 524288
              constant = 307
  
          free_mem = self.vram_free - buffer
  
          self.scale_to = int((free_mem - constant) / gradient)
  
          if self.scale_to < 4097:
              raise ValueError("Images would be shrunk too much "
 
</s> remove         buffer = 64  # 64MB overhead buffer
 </s> add  </s> remove class DetectedFace(object):
 </s> add class DetectedFace(): </s> remove class Align(object):
 </s> add class Align(): </s> remove class Alignments(object):
 </s> add class Alignments():
        free_mem = self.vram_free - self.dlib_buffer  # overhead buffer
        if self.verbose:
            print("Allocating for DLib: {}".format(free_mem))
              self.get_available_vram()
              gradient = 213 / 524288
              constant = 307
  
        free_mem = self.vram_free - self.dlib_buffer  # overhead buffer
        if self.verbose:
            print("Allocating for DLib: {}".format(free_mem))
  
          self.scale_to = int((free_mem - constant) / gradient)
  
          if self.scale_to < 4097:
              raise ValueError("Images would be shrunk too much "
keep keep keep keep replace keep keep keep keep keep
 Add option to change dlib-cnn buffer size 
lib/face_alignment/vram_allocation.py