summaryrefslogtreecommitdiff
path: root/cli/app/search/live.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/search/live.py')
-rw-r--r--cli/app/search/live.py3
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 = {