summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-15 00:37:52 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-15 00:37:52 +0200
commit543fb3466b75f24bf79ac5658607574fc9b4402e (patch)
tree9033a3510344e751127becd9ebed16a3766290a7
parent59878fa802537b2954ab505e01a4eaec25f23ee7 (diff)
lol typo
-rw-r--r--model.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/model.py b/model.py
index d2a6947..7f6be27 100644
--- a/model.py
+++ b/model.py
@@ -369,8 +369,10 @@ class PrimedGenerator(Runner):
sub_sequence_b = out_sequences[:, i-n : i] # recursive
tmp_sub_sequence = tmp_sequences[:, i-n : i] # tmp/output
+ pj = bottom_frame_size - n
for j in range(n):
- ratio = (bottom_frame_size-j-1) / (bottom_frame_size-1)
+ ratio = (pj + j) / (bottom_frame_size-1)
+ ratio *= ratio
a = sub_sequence_a[:, j].float() * (1-ratio)
b = sub_sequence_b[:, j].float() * ratio
tmp_sub_sequence[:, j] = torch.clamp(a + b, 1, q_levels-1).long()