  import cv2
  import numpy
  import time
  
  from threading import Lock
  from lib.utils import get_image_paths, get_folder
  from lib.cli import FullPaths
  from plugins.PluginLoader import PluginLoader
  
  class TrainingProcessor(object):
 
</s> remove import face_recognition
 </s> add  </s> remove         import tensorflow as tf
        from keras.backend.tensorflow_backend import set_session
 </s> add         import_tensorflow_keras() </s> remove         import threading
 </s> add  </s> remove         from lib import FaceLandmarksExtractor
 </s> add         import_FaceLandmarksExtractor()
import threading 
  import cv2
  import numpy
  import time
  
import threading 
  from lib.utils import get_image_paths, get_folder
  from lib.cli import FullPaths
  from plugins.PluginLoader import PluginLoader
  
  class TrainingProcessor(object):
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 
scripts/train.py