(self, ae_model_path, ae_name, epoch, verbose=False)
Restore all the variables of a saved ae model.
Restore all the variables of a saved ae model.
Restore all the variables of a saved ae model .
def restore_ae_model(self, ae_model_path, ae_name, epoch, verbose=False):
        """Restore all the variables of a saved ae model.
        """
        global_vars = tf.global_variables()
        ae_params = [v for v in global_vars if v.name.startswith(ae_name)]

        saver_ae = tf.train.Saver(var_list=ae_params)
        saver_ae.restore(
            self.sess, osp.join(ae_model_path, MODEL_SAVER_ID + "-" + str(int(epoch)))
        )

        if verbose:
            print("AE Model restored from %s, in epoch %d" % (ae_model_path, epoch))
def restore_ae_model ( self , ae_model_path , ae_name , epoch , verbose = False ) : global_vars = tf . global_variables ( ) ae_params = [ v for v in global_vars if v . name . startswith ( ae_name ) ] saver_ae = tf . train . Saver ( var_list = ae_params ) saver_ae . restore ( self . sess , osp . join ( ae_model_path , MODEL_SAVER_ID + "-" + str ( int ( epoch ) ) ) ) if verbose : print ( "AE Model restored from %s, in epoch %d" % ( ae_model_path , epoch ) )