              self.decoder.load_weights(str(self.model_dir / hdf['decoderH5']))
              self.inter_both.load_weights(str(self.model_dir / hdf['inter_bothH5']))
              self.inter_A.load_weights(str(self.model_dir / face_A))
              self.inter_B.load_weights(str(self.model_dir / face_B))
              print('loaded model weights')
              return True
          except Exception as e:
              print('Failed loading existing training data.')
              print(e)
              return False
 
</s> remove             print('loaded model weights')
 </s> add             logger.info('loaded model weights')
 </s> remove         except Exception as e:
            print('Failed loading existing training data.')
            print(e)
 </s> add         except Exception:
            logger.warning('Failed loading existing training data. Starting a fresh model: %s', self.model_dir) </s> remove             print('loaded model weights')
 </s> add             logger.info('loaded model weights') </s> remove             print('Failed loading existing training data.')
            print(e)
 </s> add             logger.warning('Failed loading existing training data. Starting a fresh model: %s', self.model_dir) </s> remove             print('Failed loading existing training data.')
            print(e)
            return False                            
 </s> add             logger.warning('Failed loading existing training data. Starting a fresh model: %s', self.model_dir)
            return False

            logger.info('loaded model weights')
              self.decoder.load_weights(str(self.model_dir / hdf['decoderH5']))
              self.inter_both.load_weights(str(self.model_dir / hdf['inter_bothH5']))
              self.inter_A.load_weights(str(self.model_dir / face_A))
              self.inter_B.load_weights(str(self.model_dir / face_B))
            logger.info('loaded model weights')
              return True
          except Exception as e:
              print('Failed loading existing training data.')
              print(e)
              return False
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 
plugins/model/Model_IAE/AutoEncoder.py