  
      def process_thread(self):
          """ The training process to be run inside a thread """
          try:
              print("Loading data, this may take a while...")
  
              if self.args.allow_growth:
                  self.set_tf_allow_growth()
  
              model = self.load_model()
 
</s> remove         print('Starting, this may take a while...')
        Utils.set_verbosity(self.args.verbose)
 </s> add         logger.info('Starting, this may take a while...')
        Utils.set_verbosity() </s> remove         print("Exit requested! The trainer will complete its current cycle, "
              "save the models and quit (it can take up a couple of seconds "
              "depending on your training speed). If you want to kill it now, "
              "press Ctrl + c")
 </s> add         logger.info("Exit requested! The trainer will complete its current cycle, "
                    "save the models and quit (it can take up a couple of seconds "
                    "depending on your training speed). If you want to kill it now, "
                    "press Ctrl + c") </s> remove     def join(self):
        """ Join the process """
        self.process.join()
 </s> add     def run(self):
        try:
            if self._target:
                self._target(*self._args, **self._kwargs)
        except Exception:  # pylint: disable=broad-except
            self.err = sys.exc_info()
        finally:
            # Avoid a refcycle if the thread is running a function with
            # an argument that has a member that points to the thread.
            del self._target, self._args, self._kwargs
            logger.info("Loading data, this may take a while...")
  
      def process_thread(self):
          """ The training process to be run inside a thread """
          try:
            logger.info("Loading data, this may take a while...")
  
              if self.args.allow_growth:
                  self.set_tf_allow_growth()
  
              model = self.load_model()
keep keep keep keep replace keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
scripts/train.py