diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-19 01:36:22 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-19 01:36:22 +0100 |
| commit | a1ce42a7b33d466016d26b638f60e0beeafd9289 (patch) | |
| tree | 72c82a7de4d1de6a68a9ffdbdf8b2d9fa84f9c25 /cli/app/search | |
| parent | 8faf32de6de59e22d8f2d82c813e93f1ccce8e73 (diff) | |
parameter smoothing
Diffstat (limited to 'cli/app/search')
| -rw-r--r-- | cli/app/search/live.py | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |
