  
          self.initModel()
  
      def load(self, swapped):
          (face_A,face_B) = (decoder_AH5, decoder_BH5) if not swapped else (decoder_BH5, decoder_AH5)
  
          try:
              #Part of Filename migration, should be remopved some reasonable time after first added
              if os.path.isfile(str(self.model_dir / old_encoderH5)):
                  print('Migrating to new filenames: ', end='')
 
</s> remove                 if os.path.isfile(str(self.model_dir / encoderH5)) is not True:
                    os.rename(str(self.model_dir / old_decoder_AH5), str(self.model_dir / decoder_AH5))
                    os.rename(str(self.model_dir / old_decoder_BH5), str(self.model_dir / decoder_BH5))
                    os.rename(str(self.model_dir / old_encoderH5), str(self.model_dir / encoderH5))
 </s> add                 if os.path.isfile(str(self.model_dir / hdf['encoderH5'])) is not True:
                    os.rename(str(self.model_dir / old_decoder_AH5), str(self.model_dir / hdf['decoder_AH5']))
                    os.rename(str(self.model_dir / old_decoder_BH5), str(self.model_dir / hdf['decoder_BH5']))
                    os.rename(str(self.model_dir / old_encoderH5), str(self.model_dir / hdf['encoderH5'])) </s> remove             self.encoder.load_weights(str(self.model_dir / encoderH5))
            self.decoder.load_weights(str(self.model_dir / decoderH5))
            self.inter_both.load_weights(str(self.model_dir / inter_bothH5))
 </s> add             self.encoder.load_weights(str(self.model_dir / hdf['encoderH5']))
            self.decoder.load_weights(str(self.model_dir / hdf['decoderH5']))
            self.inter_both.load_weights(str(self.model_dir / hdf['inter_bothH5'])) </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']))
 </s> remove         if os.path.isdir(model_dir + "_bk"):
            shutil.rmtree(model_dir + "_bk")
        shutil.move(model_dir,  model_dir + "_bk")
        os.mkdir(model_dir)
 </s> add         for model in hdf.values():
            backup_file(model_dir, model)

        (face_A,face_B) = (hdf['decoder_AH5'], hdf['decoder_BH5']) if not swapped else (hdf['decoder_BH5'], hdf['decoder_AH5'])
  
          self.initModel()
  
      def load(self, swapped):
        (face_A,face_B) = (hdf['decoder_AH5'], hdf['decoder_BH5']) if not swapped else (hdf['decoder_BH5'], hdf['decoder_AH5'])
  
          try:
              #Part of Filename migration, should be remopved some reasonable time after first added
              if os.path.isfile(str(self.model_dir / old_encoderH5)):
                  print('Migrating to new filenames: ', end='')
keep keep keep keep replace keep keep keep keep keep
 Model backup bugfix (#371)

* model backup bugfix - original model

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