ad7d42093443bfdaeb1948e77f72b520419d39fc,magenta/models/image_stylization/image_stylization_train.py,,main,#Any#,66

Before Change


      // Function to restore VGG16 parameters
      // TODO(iansimon): This is ugly, but assign_from_checkpoint_fn doesn"t
      // exist yet.
      saver = tf.train.Saver(slim.get_variables("vgg_16"))
      def init_fn(session):
        saver.restore(session, vgg.checkpoint_file())

      // Run training

After Change


        tf.summary.scalar(key, loss_dict[key])

      // Adding Image summaries to the tensorboard.
      tf.summary.image("image/0_inputs", inputs, 3)
      tf.summary.image("image/1_styles", style_images, 3)
      tf.summary.image("image/2_styled_inputs", stylized_inputs, 3)

      // Set up training
      optimizer = tf.train.AdamOptimizer(FLAGS.learning_rate)
      train_op = slim.learning.create_train_op(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: tensorflow/magenta
Commit Name: ad7d42093443bfdaeb1948e77f72b520419d39fc
Time: 2019-08-20
Author: khanhlvg@users.noreply.github.com
File Name: magenta/models/image_stylization/image_stylization_train.py
Class Name:
Method Name: main


Project Name: tensorflow/magenta
Commit Name: 2bad305c7badb269af17b83693662f75dda5d7b6
Time: 2019-09-13
Author: khanhlvg@google.com
File Name: magenta/models/image_stylization/image_stylization_train.py
Class Name:
Method Name: main


Project Name: tensorflow/magenta
Commit Name: f9a33006e5794fe1bfae5be04c44a58c68f6696f
Time: 2019-08-23
Author: khanhlvg@users.noreply.github.com
File Name: magenta/models/image_stylization/image_stylization_train.py
Class Name:
Method Name: main


Project Name: tensorflow/magenta
Commit Name: ad7d42093443bfdaeb1948e77f72b520419d39fc
Time: 2019-08-20
Author: khanhlvg@users.noreply.github.com
File Name: magenta/models/image_stylization/image_stylization_train.py
Class Name:
Method Name: main