summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-17 10:27:34 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-17 10:27:34 +0100
commit6608d8c5c64096bd0a4e4a225b412cb82b1325d8 (patch)
treefd52efcd5c61f61ab77172d9a5d4aa8ed4fb1927
parent460f6d44f52866262d208e01d09409345c7f7fe7 (diff)
alt radius
-rw-r--r--cli/app/search/live.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py
index 0e9a724..7d6e692 100644
--- a/cli/app/search/live.py
+++ b/cli/app/search/live.py
@@ -88,8 +88,8 @@ def normal_z_sample(shape=(BATCH_SIZE, Z_DIM,)):
# --------------------------
class SinParam:
- def __init__(self, name, shape, datatype="noise", lerp=True):
- orbit_radius = InterpolatorParam(name=name + '_radius', value=0.25)
+ def __init__(self, name, shape, datatype="noise", lerp=True, radius=0.25):
+ orbit_radius = InterpolatorParam(name=name + '_radius', value=radius)
orbit_speed = InterpolatorParam(name=name + '_speed', value=FPS)
orbit_time = InterpolatorParam(name=name + '_time', value=0.0)
if lerp:
@@ -252,7 +252,7 @@ class Interpolator:
encoding_latent_placeholder = tf.constant(np.zeros(encoding_shape_np, dtype=np.float32))
# encoding_stored = InterpolatorParam('encoding_stored', shape=encoding_shape_np, datatype="noise")
encoding_stored = LerpParam('encoding_stored', shape=encoding_shape_np, datatype="noise")
- encoding_stored_sin = SinParam('encoding_orbit', shape=encoding_shape_np, datatype="noise")
+ encoding_stored_sin = SinParam('encoding_orbit', shape=encoding_shape_np, datatype="noise", radius=0.05)
encoding_stored_sum = encoding_stored.output + encoding_stored_sin.output
encoding_stored_mix = LerpParam('encoding_stored_mix', a_in=encoding_latent_placeholder, b_in=encoding_stored_sum, shape=encoding_shape_np, datatype="encoding")