Closed gorkaydemir closed 5 months ago
Hi @gorkaydemir, yes, you are right. Initially, the model only worked for a batch size of 1 due to various reasons, but yesterday, we released a new version that fixed this problem. Now you can run and train the model with different batch sizes. Please let me know if you have any other questions.
Hi, Thank you for your great work. I am little bit confused about the indexing operations in the
forward_batch()
function inco-tracker/train.py
.I think
vis_g
variable has the shape(B, T, N)
, with respect toclass CoTrackerData
.So that, with this operation, you find the
first_positive_inds
of shape(B, N)
:__, first_positive_inds = torch.max(vis_g, dim=1)
Then, this one follows:
Does not
vis_g[0, :, i]
correspond to the visibility in the first batch item, but not the first frame of different batch items?After that step,
rand_vis_inds
is calculated and has the shape(1, N)
. Isn't this a problem while concatenating the[rand_vis_inds[:, :N_rand], first_positive_inds[:, N_rand:]]
, having different dimension 0, 1 vsN
? What am I missing about the shapes?Thank you