diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-09 13:16:51 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-09 13:16:51 +0100 |
| commit | 21bb879e00eea74a5df9e703749b8cfa20ec1732 (patch) | |
| tree | 46728510c70b97a7325d1b95daeb0146e357f730 /cli/app/search/live.py | |
| parent | dcf472bbd3d26072b03924b2b0d1592e964d6392 (diff) | |
video
Diffstat (limited to 'cli/app/search/live.py')
| -rw-r--r-- | cli/app/search/live.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 = { |
