diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-02-22 17:11:01 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-02-22 17:11:01 +0100 |
| commit | 1b5f2564ba464d43a4e28e806e9fe94c3049da56 (patch) | |
| tree | 594b371e41ada0b79364d7c8635e6d9d0a7f3d5f /cli | |
| parent | dc11edd306c046b9acaa7d99039c395140d400aa (diff) | |
incorporate layers into live script
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/app/search/live.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 568267b..fb94c12 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -323,9 +323,9 @@ class Interpolator: layer_op = tf.get_default_graph().get_operation_by_name(op_name) ## unlike the encoding, here we update the layer op directly, so we don't need a temporary constant to swap - # raw_layer_placeholder = tf.constant(np.zeros(raw_tensor.shape, dtype=np.float32)) - layer_stored = LerpParam('layer_stored_{}'.format(layer_id), shape=raw_tensor.shape, datatype="noise") - layer_stored_mix = LerpParam('layer_stored_mix_{}'.format(layer_id), a_in=layer_tensor, b_in=layer_stored.output, shape=raw_tensor.shape, datatype="noise") + # raw_layer_placeholder = tf.constant(np.zeros(layer_tensor.shape, dtype=np.float32)) + layer_stored = LerpParam('layer_stored_{}'.format(layer_id), shape=layer_tensor.shape, datatype="noise") + layer_stored_mix = LerpParam('layer_stored_mix_{}'.format(layer_id), a_in=layer_tensor, b_in=layer_stored.output, shape=layer_tensor.shape, datatype="noise") layer_op._update_input(op_input_index, layer_stored_mix.output) |
