              raise e
              exit(1)
  
      def set_tf_allow_growth(self):
          import tensorflow as tf
          from keras.backend.tensorflow_backend import set_session
          config = tf.ConfigProto()
          config.gpu_options.allow_growth = True
          config.gpu_options.visible_device_list="0"
          set_session(tf.Session(config=config))
  
 
</s> remove import face_recognition
 </s> add  </s> remove         import threading
 </s> add  </s> remove         from lib import FaceLandmarksExtractor
 </s> add         import_FaceLandmarksExtractor() </s> remove         from lib import FaceLandmarksExtractor
 </s> add         import_FaceLandmarksExtractor()
        import_tensorflow_keras()
              raise e
              exit(1)
  
      def set_tf_allow_growth(self):
        import_tensorflow_keras()
        import_tensorflow_keras()
          config = tf.ConfigProto()
          config.gpu_options.allow_growth = True
          config.gpu_options.visible_device_list="0"
          set_session(tf.Session(config=config))
  
keep keep keep keep replace 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