  # Improved-AutoEncoder base classes
  
  import os, shutil
  
  encoderH5 = 'IAE_encoder.h5'
  decoderH5 = 'IAE_decoder.h5'
  inter_AH5 = 'IAE_inter_A.h5'
  inter_BH5 = 'IAE_inter_B.h5'
 
</s> remove import os, shutil
 </s> add from lib.utils import backup_file </s> remove encoderH5 = 'encoder.h5'
decoder_AH5 = 'decoder_A.h5'
decoder_BH5 = 'decoder_B.h5'
 </s> add hdf = {'encoderH5': 'encoder.h5',
       'decoder_AH5': 'decoder_A.h5',
       'decoder_BH5': 'decoder_B.h5'}
 </s> remove             netGA.load_weights(str(self.model_dir / netGAH5))
            netGB.load_weights(str(self.model_dir / netGBH5))
 </s> add             netGA.load_weights(str(self.model_dir / hdf['netGAH5']))
            netGB.load_weights(str(self.model_dir / hdf['netGBH5']))

from lib.utils import backup_file
  # Improved-AutoEncoder base classes
  
from lib.utils import backup_file
  
  encoderH5 = 'IAE_encoder.h5'
  decoderH5 = 'IAE_decoder.h5'
  inter_AH5 = 'IAE_inter_A.h5'
  inter_BH5 = 'IAE_inter_B.h5'
keep keep replace keep keep keep keep keep
 Model backup bugfix (#371)

* model backup bugfix - original model

* Model backup bugfix - remaining models 
plugins/Model_IAE/AutoEncoder.py