Concatenating poses in test.py
lichunshang opened this issue · comments
Lines 81 to 104 in 14d8790
For the section of the code here, what is the significance of checking for i == 0?
Specifically, at line 99 shown below, why only composing the last pose? Since all poses returned by the network are relative poses, shouldn't you compose all the relative poses returned by the network?
Line 99 in 14d8790
@lichunshang this is needed because of sequence overlap. With the default parameters you have sequence length = 6 and overlap = 1. So it looks like this:
Sequence 0 images: 1, 2, 3, 4, 5, 6
Sequence 1 images: 2, 3, 4, 5, 6 ,7
Sequence 2 images: 3, 4, 5, 6, 7, 8
The current implementation takes the whole Sequence 0 (i==0) and then just add the last pose from all the following sequences.
Ahh, I see. Overlap is set to set to sequence length minus one
Line 40 in 14d8790
instead of just one in main.py. For sure an odd way to do this.
Line 28 in 14d8790
Thanks @alexart13