Hey there,
generated_image = tf.Variable(tf.image.convert_image_dtype(content_image, tf.float32))
(just before the training loop).
I think this should be
generated_image = tf.Variable(tf.image.convert_image_dtype(generated_image, tf.float32))
Here, the generated_image
was created at step 5.3 .
Otherwise, the init-value of training at very begin will be pure content_image
based.
Slap me if I am wrong