summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/model.py b/model.py
index e7a38fb..d2a6947 100644
--- a/model.py
+++ b/model.py
@@ -370,7 +370,7 @@ class PrimedGenerator(Runner):
tmp_sub_sequence = tmp_sequences[:, i-n : i] # tmp/output
for j in range(n):
- ratio = j / (bottom_frame_size-1)
+ ratio = (bottom_frame_size-j-1) / (bottom_frame_size-1)
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()