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

Before Change


      total_loss, loss_dict = learning.total_loss(
          inputs, stylized_inputs, style_gram_matrices, content_weights,
          style_weights)
      for key, value in loss_dict.iteritems():
        tf.summary.scalar(key, value)

      // Set up 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: 7

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: 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: 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