              
          return img_list
  
      def sort_face_dissim(self):
          input_dir = self.arguments.input_dir
  
          print ("Sorting by face dissimilarity...")
  
          img_list = [ [x, face_recognition.face_encodings(cv2.imread(x)), 0 ] for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout) ]
  
 
</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_face_recognition()
        
              
          return img_list
  
      def sort_face_dissim(self):
        import_face_recognition()
        
          input_dir = self.arguments.input_dir
  
          print ("Sorting by face dissimilarity...")
  
          img_list = [ [x, face_recognition.face_encodings(cv2.imread(x)), 0 ] for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout) ]
  
keep keep keep add keep 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