  
      @staticmethod
      def get_avg_score_faces(f1encs, references):
          scores = []
          for f2encs in references:
              score = face_recognition.face_distance(f1encs, f2encs)[0]
              scores.append(score)
 
</s> remove         from lib import FaceLandmarksExtractor
 </s> add         import_FaceLandmarksExtractor() </s> remove             from lib import FaceLandmarksExtractor
 </s> add             import_FaceLandmarksExtractor() </s> remove         import threading
 </s> add 
        import_face_recognition()
  
      @staticmethod
      def get_avg_score_faces(f1encs, references):
        import_face_recognition()
          scores = []
          for f2encs in references:
              score = face_recognition.face_distance(f1encs, f2encs)[0]
              scores.append(score)
keep keep add 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