summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-07-04 02:11:44 +0200
committerJules Laplace <julescarbon@gmail.com>2017-07-04 02:11:44 +0200
commit2263f412817d6d2d36372e7617feb0d97fa57af8 (patch)
treec5bc7fd177636a295a508c12e1cc2d703c252056 /python
parent0075896decfe2ebf81c2610f4367929c0d51b1d8 (diff)
break out browser and tasks
Diffstat (limited to 'python')
-rw-r--r--python/nsatf.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/nsatf.py b/python/nsatf.py
index a35cf51..796f448 100644
--- a/python/nsatf.py
+++ b/python/nsatf.py
@@ -35,7 +35,6 @@ else:
# display(Audio(CONTENT_FILENAME))
# display(Audio(STYLE_FILENAME))
-
# In[7]:
# Reads wav file and produces spectrum
@@ -138,7 +137,6 @@ with g.as_default(), g.device('/cpu:0'), tf.Session() as sess:
from sys import stderr
-learning_rate= 1e-3
iterations = 100
result = None
@@ -159,7 +157,7 @@ with tf.Graph().as_default():
net = tf.nn.relu(conv)
- content_loss = ALPHA * 2 * tf.nn.l2_loss( net - content_features)
+ content_loss = ALPHA * 2 * tf.nn.l2_loss( net - content_features )
style_loss = 0