diff options
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/app/search/live.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py index c03dc1b..644fd05 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -105,9 +105,19 @@ class SinParam: self.orbit_speed = orbit_speed self.orbit_time = orbit_time self.output = output + self.noise = noise + self.lerp = lerp + self.t = 0 def update(self): self.orbit_time.value += (np.pi * 2) / self.orbit_speed.value + self.t += 1 + # randomize the orbit when possible - + # - check if we've done one full orbital period + # - check if the noise is done transitioning + if self.lerp and self.t >= self.orbit_speed.value and self.noise.n.value == 0 or self.noise.n.value == 1: + self.noise.randomize() + self.t = 0 class LerpParam: def __init__(self, name, shape, a_in=None, b_in=None, datatype="noise"): @@ -332,10 +342,6 @@ class Interpolator: new_label = np.expand_dims(data['label'], axis=0) new_encoding = np.expand_dims(data['encoding'], axis=0) - # self.opts['latent_stored'].assign(new_latent) - # self.opts['label_stored'].assign(new_label) - # self.opts['encoding_stored'].assign(new_encoding) - # encoding_stored_mix.switch() latent_stored = self.lerp_params['latent_stored'] label_stored = self.lerp_params['label_stored'] encoding_stored = self.lerp_params['encoding_stored'] |
