summaryrefslogtreecommitdiff
path: root/inversion
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-12-19 17:49:04 +0100
committerJules Laplace <julescarbon@gmail.com>2019-12-19 17:49:04 +0100
commitdfaa0fc9c6e102ee68065b4e1c51da91eb9bdc8e (patch)
treefe3d4752e3730059e396f3534021b3b796b87cec /inversion
parentbd05d7912dc7e8b66b90aff04bcfb5bc8b57507a (diff)
less logging
Diffstat (limited to 'inversion')
-rw-r--r--inversion/live.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/inversion/live.py b/inversion/live.py
index d53bb02..b5f4f70 100644
--- a/inversion/live.py
+++ b/inversion/live.py
@@ -86,7 +86,7 @@ def lerp(opts, key, shape):
a = InterpolatorParam(name=key + '_a', shape=shape)
b = InterpolatorParam(name=key + '_b', shape=shape)
n = InterpolatorParam(name=key + '_n', value=0.0)
- speed = InterpolatorParam(name=key + '_speed')
+ speed = InterpolatorParam(name=key + '_speed', value=0.1)
out = a.variable * (1 - n.variable) + b.variable * n.variable
opts[key + '_a'] = a
opts[key + '_b'] = b
@@ -203,14 +203,16 @@ class Listener:
self.rpc_client.send_status('processing', True)
dt = 1 / FPS
for i in range(99999):
- print("Step {}".format(i))
+ if (i % 100) == 0:
+ print("Step {}".format(i))
gen_time = time.time()
self.interpolator.opts['time'].assign(gen_time)
gen_images = self.interpolator.on_step(i, self.sess)
if gen_images is None:
print("Exiting...")
break
- print("Generation time: {:.1f}s".format(time.time() - gen_time))
+ if (i % 100) == 0:
+ print("Generation time: {:.1f}s".format(time.time() - gen_time))
out_img = vs.data2pil(gen_images[0])
if out_img is not None:
#if out_img.resize_before_sending: