From a1ce42a7b33d466016d26b638f60e0beeafd9289 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 19 Jan 2020 01:36:22 +0100 Subject: parameter smoothing --- cli/app/search/live.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/app/search/live.py') diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 8f7cc2b..c9418ba 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -115,7 +115,7 @@ class SinParam: self.t = 0 def update(self): - self.orbit_time.assign((np.pi * 0.75) / self.orbit_speed.value, immediate=True) + self.orbit_time.assign((np.pi * 0.5) / self.orbit_speed.value, immediate=True) self.t += 1 # randomize the orbit when possible - # - check if we've done one full orbital period @@ -528,5 +528,5 @@ class Listener: self.rpc_client.send_pil_image("frame_{:05d}.png".format(i+1), meta, img_to_send, 'jpg') send_time_total += time.time() - send_time if (i % 100) == 0 or i == 1: - print("step: {}, gen: {:2f}, pil: {:2f}, save: {:2f}, resize: {:2f}, send: {:2f}".format(i, gen_time_total / i, to_pil_time_total / i, save_time_total / i, resize_time_total / i, send_time_total / i)) + print("step: {}, gen: {:.2f}, pil: {:.2f}, save: {:.2f}, resize: {:.2f}, send: {:.2f}".format(i, gen_time_total / i, to_pil_time_total / i, save_time_total / i, resize_time_total / i, send_time_total / i)) -- cgit v1.2.3-70-g09d2