          intensity: The opacity of the alpha channel between 0 and 100
                     100 = transparent,
                     0 = solid  """
      assert 0 <= intensity <= 100, "Invalid intensity supplied"
      intensity = (255.0 / 100.0) * intensity
  
      d_type = image.dtype
      image = image.astype("float32")
  
 
</s> remove             if "128" in self.trainer: # TODO: Another hack to switch between 64 and 128
 </s> add             if "128" in self.trainer:  # TODO: Another hack to switch between 64 and 128
 </s> remove             new_face = numpy.clip( new_face * 255, 0, 255 ).astype( image.dtype )
 </s> add             new_face = numpy.clip(new_face * 255, 0, 255).astype(image.dtype)
 </s> remove             print('Error loading training info:', e.msg)
            self._epoch_no = 0   
        
        (face_A,face_B) = (hdf['decoder_AH5'], hdf['decoder_BH5']) if not swapped else (hdf['decoder_BH5'], hdf['decoder_AH5'])                
 </s> add             logger.warning('Error loading training info: %s', str(e.msg))
            self._epoch_no = 0

        (face_A,face_B) = (hdf['decoder_AH5'], hdf['decoder_BH5']) if not swapped else (hdf['decoder_BH5'], hdf['decoder_AH5'])
 </s> remove             mask = fake_output[:,:,:, :1]
            new_face = fake_output[:,:,:, 1:]
 </s> add             mask = fake_output[:, :, :, :1]
            new_face = fake_output[:, :, :, 1:]

    logger.trace("Adding alpha channel: intensity: %s", intensity)
          intensity: The opacity of the alpha channel between 0 and 100
                     100 = transparent,
                     0 = solid  """
    logger.trace("Adding alpha channel: intensity: %s", intensity)
      assert 0 <= intensity <= 100, "Invalid intensity supplied"
      intensity = (255.0 / 100.0) * intensity
  
      d_type = image.dtype
      image = image.astype("float32")
  
keep keep add keep 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 
lib/utils.py