          return os.path.exists(fn)
  
      def get_faces_alignments(self, filename, image):
          faces_count = 0
          faces = self.faces_detected[os.path.basename(filename)]
          for rawface in faces:
              face = DetectedFace(**rawface)
              # Rotate the image if necessary
 
</s> remove         import threading
 </s> add 
        import_faces_detect()
          return os.path.exists(fn)
  
      def get_faces_alignments(self, filename, image):
        import_faces_detect()
          faces_count = 0
          faces = self.faces_detected[os.path.basename(filename)]
          for rawface in faces:
              face = DetectedFace(**rawface)
              # Rotate the image if necessary
keep keep add 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 
lib/cli.py