          self.autoencoder_A.compile(optimizer=optimizer, loss='mean_absolute_error')
          self.autoencoder_B.compile(optimizer=optimizer, loss='mean_absolute_error')
          
          
      def load(self, swapped):
          from json import JSONDecodeError
          face_A, face_B = (hdf['decoder_AH5'], hdf['decoder_BH5']) if not swapped else (hdf['decoder_BH5'], hdf['decoder_AH5'])
          
          state_dir = os.path.join(self.model_dir, 'state_{version_str}_{ENCODER.value}.json'.format(**globals()))
          ser = lib.Serializer.get_serializer('json')
 
</s> remove         state_dir = os.path.join(self.model_dir, 'state_{version_str}_{ENCODER.value}.json'.format(**globals()))
 </s> add         state_dir = os.path.join(model_dir, 'state_{version_str}_{ENCODER.value}.json'.format(**globals())) </s> remove         state_dir = os.path.join(self.model_dir, 'state_{version_str}_{ENCODER.value}.json'.format(**globals()))
 </s> add         state_dir = os.path.join(model_dir, 'state_{version_str}_{ENCODER.value}.json'.format(**globals())) </s> remove             print('Failed loading existing training data.', e)
            return False        

 </s> add             print('Failed loading training data:', str(e))            
      
        return False </s> remove         except (JSONDecodeError, IOError) as e:
            print('Failed loading training state metadata', e)
            self._epoch_no = 0        
 </s> add         except IOError as e:
            print('Error loading training info:', e.strerror)
            self._epoch_no = 0
        except JSONDecodeError as e:
            print('Error loading training info:', e.msg)
            self._epoch_no = 0                          </s> remove             self.encoder.load_weights(os.path.join(self.model_dir, hdf['encoderH5']))
            self.decoder_A.load_weights(os.path.join(self.model_dir, face_A))
            self.decoder_B.load_weights(os.path.join(self.model_dir, face_B))
 </s> add             self.encoder.load_weights(os.path.join(model_dir, hdf['encoderH5']))
            self.decoder_A.load_weights(os.path.join(model_dir, face_A))
            self.decoder_B.load_weights(os.path.join(model_dir, face_B))
    def load(self, swapped):        
        model_dir = str(self.model_dir)
        
          self.autoencoder_A.compile(optimizer=optimizer, loss='mean_absolute_error')
          self.autoencoder_B.compile(optimizer=optimizer, loss='mean_absolute_error')
          
          
    def load(self, swapped):        
        model_dir = str(self.model_dir)
        
          from json import JSONDecodeError
          face_A, face_B = (hdf['decoder_AH5'], hdf['decoder_BH5']) if not swapped else (hdf['decoder_BH5'], hdf['decoder_AH5'])
          
          state_dir = os.path.join(self.model_dir, 'state_{version_str}_{ENCODER.value}.json'.format(**globals()))
          ser = lib.Serializer.get_serializer('json')
keep keep keep keep replace keep keep keep keep keep
 fixed Windows 10 path error while loading weights (#442) 
plugins/Model_OriginalHighRes/Model.py