Closed ChengFengGu closed 2 years ago
Hi @ChengFengGu, my understanding is that the "idx[len(idx) // 2]" is used for seq2seq VPR tasks, in which case it selects the image id that is at the middle of the sequence. I didn't write this code, msls.py is heavily copied from: https://github.com/mapillary/mapillary_sls
Patch-NetVLAD never uses seq2seq, only the im2im task. The same method works for both im2im and seq2seq tasks, since in the im2im case len(idx) = 1 (idx is always a list even for the im2im task).
During process msls dataset for im2im train task, i know should filter them for this subtask, but why use "idx[len(idx) // 2]"(original code)
What's it physical meaning. Thansks sincerely!