From 84065a092be1d6c045e206db95c5875156296d45 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 19 Dec 2019 19:52:16 +0100 Subject: redo lerping and sineing --- inversion/live.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'inversion') diff --git a/inversion/live.py b/inversion/live.py index 58cfa1e..38c98b6 100644 --- a/inversion/live.py +++ b/inversion/live.py @@ -159,15 +159,13 @@ class InterpolatorParam: class Interpolator: def __init__(self): - self.opts = { - # 'time': InterpolatorParam(name='t', value=time.time()), - 'truncation' : InterpolatorParam(name='truncation', value=1.0), - 'num_classes' : InterpolatorParam(name='num_classes', value=1.0), - } + self.opts = {} self.sin_params = {} self.lerp_params = {} def build(self): + self.opts['truncation'] = InterpolatorParam(name='truncation', value=1.0), + self.opts['num_classes'] = InterpolatorParam(name='num_classes', value=1.0), lerp_z = LerpParam('latent', [BATCH_SIZE, Z_DIM]) sin_z = SinParam('orbit', [BATCH_SIZE, Z_DIM]) lerp_label = LerpParam('label', [BATCH_SIZE, N_CLASS]) -- cgit v1.2.3-70-g09d2