autonomousvision/unimatch

Resetting hidden state during refinement

qzed opened this issue · 2 comments

qzed commented

It looks looks you're resetting the hidden-state during each RAFT-based refinement step. Is this done on purpose?

net, inp = torch.chunk(proj, chunks=2, dim=1)
net = torch.tanh(net)
inp = torch.relu(inp)
net, up_mask, residual_flow = self.refine(net, inp, correlation, flow.clone(),

No, just based on intuitions :)

Thanks! Feel free to close this issue (although I think it could be nice to have a comparison whether this leads to some improvement).