              l = ( (fl[27][0]-fl[0][0]) + (fl[28][0]-fl[1][0]) + (fl[29][0]-fl[2][0]) ) / 3.0   
              r = ( (fl[16][0]-fl[27][0]) + (fl[15][0]-fl[28][0]) + (fl[14][0]-fl[29][0]) ) / 3.0
              return r-l
              
          from lib import FaceLandmarksExtractor
          input_dir = self.arguments.input_dir
      
          img_list = []
          for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout):
              d = FaceLandmarksExtractor.extract(cv2.imread(x), 'cnn', True, input_is_predetected_face=True)
 
</s> remove             from lib import FaceLandmarksExtractor
 </s> add             import_FaceLandmarksExtractor() </s> remove         from lib import FaceLandmarksExtractor
 </s> add         import_FaceLandmarksExtractor() </s> remove         from lib import FaceLandmarksExtractor
 </s> add         import_FaceLandmarksExtractor()
        import_FaceLandmarksExtractor()
              l = ( (fl[27][0]-fl[0][0]) + (fl[28][0]-fl[1][0]) + (fl[29][0]-fl[2][0]) ) / 3.0   
              r = ( (fl[16][0]-fl[27][0]) + (fl[15][0]-fl[28][0]) + (fl[14][0]-fl[29][0]) ) / 3.0
              return r-l
              
        import_FaceLandmarksExtractor()
          input_dir = self.arguments.input_dir
      
          img_list = []
          for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout):
              d = FaceLandmarksExtractor.extract(cv2.imread(x), 'cnn', True, input_is_predetected_face=True)
keep keep keep keep replace keep keep keep keep keep
 Only import DLIB related modules when required and minor import relocations (#315)

* Move imports to top and add conditions to load modules requiring GPU

* Fix type

* Fix typo

* Import relocation and dlib import on demand

* refactor to remove extra code lines

* remove unnecessary sys import 
tools/sort.py