Skip to content

Instantly share code, notes, and snippets.

@ArnoutDevos
Created January 8, 2018 14:09
Show Gist options
  • Save ArnoutDevos/92c9a9a096762a5bf668e0889840d7e6 to your computer and use it in GitHub Desktop.
Save ArnoutDevos/92c9a9a096762a5bf668e0889840d7e6 to your computer and use it in GitHub Desktop.
# Content loss emphasis.
ALPHA = 0.0025
# Style loss emphasis.
BETA = 1
total_loss = ALPHA * content_loss + BETA * style_loss
optimizer = tf.train.AdamOptimizer(2.0)
train_step = optimizer.minimize(total_loss)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment