From 21bb879e00eea74a5df9e703749b8cfa20ec1732 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 9 Jan 2020 13:16:51 +0100 Subject: video --- cli/app/search/live.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/app/search/live.py') diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 0b97f15..33e00b3 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -21,6 +21,7 @@ from app.settings import app_cfg tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../../../live-cortex/rpc/')) from rpc import CortexRPC +from app.search.params import timestamp FPS = 25 @@ -332,6 +333,7 @@ class Listener: print("Building interpolator...") interpolator.build() self.rpc_client.send_status('processing', True) + tag = "biggan_" + timestamp() dt = 1 / FPS for i in range(99999): if i == 0: @@ -348,6 +350,7 @@ class Listener: print("Step {}. Generation time: {:.2f}s".format(i, time.time() - gen_time)) out_img = vs.data2pil(gen_images[0]) if out_img is not None: + # save image #if out_img.resize_before_sending: img_to_send = out_img.resize((256, 256), Image.BICUBIC) meta = { -- cgit v1.2.3-70-g09d2