// Function to restore VGG16 parameters.
// TODO(iansimon): This is ugly, but assign_from_checkpoint_fn doesn"t
// exist yet.
saver_vgg = tf.train.Saver(slim.get_variables("vgg_16"))
def init_fn_vgg(session):
saver_vgg.restore(session, vgg.checkpoint_file())
// Function to restore N-styles parameters.
// TODO(iansimon): This is ugly, but assign_from_checkpoint_fn doesn"t
// exist yet.
saver_n_styles = tf.train.Saver(other_vars)
def init_fn_n_styles(session):
saver_n_styles.restore(session, os.path.expanduser(FLAGS.checkpoint))
def init_fn(session):