I think there is an issue with the way you implement flow loss in the code. In the main paper it says that the flow loss is the sum of spatial movement distance for any two adjacent pixels. In the code you are doing the following:
`
def forward(self, f):
The problem is that on the lines you are computingdiff_uanddiff_v, you only compute the sum for the neighboring pixel on the top left. I guess this is probably a small typo in the code. In fact, I think those two lines should be like this: diff_u = F.conv2d(f_u, self.filters)[0]`.
Please correct me if I am wrong. thanks in advance for your reply.
Hello,
I think there is an issue with the way you implement flow loss in the code. In the main paper it says that the flow loss is the sum of spatial movement distance for any two adjacent pixels. In the code you are doing the following: ` def forward(self, f):
TODO: padding
The problem is that on the lines you are computing
diff_uand
diff_v, you only compute the sum for the neighboring pixel on the top left. I guess this is probably a small typo in the code. In fact, I think those two lines should be like this:
diff_u = F.conv2d(f_u, self.filters)[0]`. Please correct me if I am wrong. thanks in advance for your reply.