(self)
Restore the weights of models.
Restore the weights of models.
Restore the weights of models .
def restore(self):
    """Restore the weights of models."""
    gen_ckpt_dir = self.gen_ckpt_dir
    graph_sc09_gan = self.graph_sc09_gan
    saver_gan = self.saver_gan
    sess_sc09_gan = self.sess_sc09_gan

    inception_ckpt_dir = self.inception_ckpt_dir
    graph_sc09_class = self.graph_sc09_class
    saver_class = self.saver_class
    sess_sc09_class = self.sess_sc09_class

    with graph_sc09_gan.as_default():
      saver_gan.restore(
          sess_sc09_gan,
          os.path.join(gen_ckpt_dir, 'bridge', 'model.ckpt'))

    with graph_sc09_class.as_default():
      saver_class.restore(sess_sc09_class,
                          os.path.join(inception_ckpt_dir, 'best_acc-103005'))
def restore ( self ) : gen_ckpt_dir = self . gen_ckpt_dir graph_sc09_gan = self . graph_sc09_gan saver_gan = self . saver_gan sess_sc09_gan = self . sess_sc09_gan inception_ckpt_dir = self . inception_ckpt_dir graph_sc09_class = self . graph_sc09_class saver_class = self . saver_class sess_sc09_class = self . sess_sc09_class with graph_sc09_gan . as_default ( ) : saver_gan . restore ( sess_sc09_gan , os . path . join ( gen_ckpt_dir , 'bridge' , 'model.ckpt' ) ) with graph_sc09_class . as_default ( ) : saver_class . restore ( sess_sc09_class , os . path . join ( inception_ckpt_dir , 'best_acc-103005' ) )