ref: 589e6741165d77385393f207f755f8560c940f3e
parent: a866abe3c36098d9c0bf5927b8d29258667755f6
author: jbuethe <jbuethe@amazon.de>
date: Thu Sep 29 11:53:43 EDT 2022
alignment fix in fec_encoder
--- a/dnn/training_tf2/fec_encoder.py
+++ b/dnn/training_tf2/fec_encoder.py
@@ -133,9 +133,9 @@
for i in range(offset, num_frames):
print(f"processing frame {i - offset}...")- features = decoder.predict([symbols[:, i - 2 * input_length + 1 : i + 1 : 2, :], quant_embed_dec[:, :input_length, :], quant_gru_state_dec[:, i, :]])
+ features = decoder.predict([symbols[:, i - 2 * input_length + 2 : i + 1 : 2, :], quant_embed_dec[:, i - 2 * input_length + 2 : i + 1 : 2, :], quant_gru_state_dec[:, i, :]])
packets.append(features)
- packet_size = 8 * int((np.sum(rates[:, i - 2 * input_length + 1 : i + 1 : 2]) + 7) / 8) + 64
+ packet_size = 8 * int((np.sum(rates[:, i - 2 * input_length + 2 : i + 1 : 2]) + 7) / 8) + 64
packet_sizes.append(packet_size)
--
⑨