summaryrefslogtreecommitdiff
path: root/inversion/live.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-12-19 19:52:16 +0100
committerJules Laplace <julescarbon@gmail.com>2019-12-19 19:52:16 +0100
commit84065a092be1d6c045e206db95c5875156296d45 (patch)
tree86a65831998703bd351f4fe1f5d5a361939197dc /inversion/live.py
parente74cce82efad02ac47bedfc220f591930a238d3c (diff)
redo lerping and sineing
Diffstat (limited to 'inversion/live.py')
-rw-r--r--inversion/live.py8
1 files changed, 3 insertions, 5 deletions
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])