diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 18:04:31 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 18:04:31 +0100 |
| commit | 85881436bc728b5c61f5bfac558830651015d44f (patch) | |
| tree | 074b0f91f3daef4e9badf3cf16bc12be1a4954c8 /inversion/live.py | |
| parent | 61a7dcf6bd99e167809ee9eebefec89fd4f402df (diff) | |
simplify
Diffstat (limited to 'inversion/live.py')
| -rw-r--r-- | inversion/live.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inversion/live.py b/inversion/live.py index a97e17f..8a8e912 100644 --- a/inversion/live.py +++ b/inversion/live.py @@ -78,7 +78,7 @@ def sin(opts, key, shape): scale = InterpolatorParam(name=key + '_scale', value=0.1) speed = InterpolatorParam(name=key + '_speed', value=1.0) time = opts['time'].variable - out = tf.sin(time + noise) * scale.variable + out = tf.math.sin(time + noise) * scale.variable opts[key + '_scale'] = scale opts[key + '_speed'] = speed return out @@ -135,7 +135,7 @@ class Interpolator: gen_in = {} gen_in['truncation'] = 1.0 # self.opts['truncation'].variable - gen_in['z'] = lerp_z + sin_z + gen_in['z'] = lerp_z # + sin_z gen_in['y'] = lerp_label gen_img = generator(gen_in, signature=gen_signature) |
