summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron <cysmith1010@gmail.com>2016-10-11 15:34:37 -0600
committerGitHub <noreply@github.com>2016-10-11 15:34:37 -0600
commit2a033027e3850afa4f1085c1b8b607864a15769d (patch)
treee3f0ea48bb0059fcfaf10d07bf013e94f15cd2f3
parenta487bcfe95be2f0cad4e65382c600bceef94bc9a (diff)
Fixed tab indentation
-rw-r--r--neural_style.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/neural_style.py b/neural_style.py
index bac5222..2f9673f 100644
--- a/neural_style.py
+++ b/neural_style.py
@@ -340,11 +340,11 @@ def content_layer_loss(p, x):
M = h.value * w.value
N = d.value
if args.content_loss_function == 1:
- K = 1. / (2. * N**0.5 * M**0.5)
+ K = 1. / (2. * N**0.5 * M**0.5)
elif args.content_loss_function == 2:
K = 1. / (N * M)
elif args.content_loss_function == 3:
- K = 1. / 2.
+ K = 1. / 2.
loss = K * tf.reduce_sum(tf.pow((x - p), 2))
return loss