Spaces:
Runtime error
Runtime error
Update audio_style_transfer/models/timedomain.py
Browse files
audio_style_transfer/models/timedomain.py
CHANGED
|
@@ -244,7 +244,9 @@ def compute_stylization(kernels,
|
|
| 244 |
with tf.compat.v1.Session() as sess:
|
| 245 |
sess.run(tf.compat.v1.initialize_all_variables())
|
| 246 |
print('Started optimization.')
|
| 247 |
-
|
|
|
|
|
|
|
| 248 |
result = x.eval()
|
| 249 |
else:
|
| 250 |
opt = tf.compat.v1.train.AdamOptimizer(
|
|
|
|
| 244 |
with tf.compat.v1.Session() as sess:
|
| 245 |
sess.run(tf.compat.v1.initialize_all_variables())
|
| 246 |
print('Started optimization.')
|
| 247 |
+
for i in range(iterations):
|
| 248 |
+
s, c, l, _ = sess.run([style_loss, content_loss, loss, opt])
|
| 249 |
+
print('Style:', s, 'Content:', c, end='\r')
|
| 250 |
result = x.eval()
|
| 251 |
else:
|
| 252 |
opt = tf.compat.v1.train.AdamOptimizer(
|