|
def resize_sparse_flow_map(self, flow, valid, fx=1.0, fy=1.0): |
I created Valid mask before-hand for FlyingThings. When I use this to resize it my numbers are vastly off from just re-scaling the flows and recalculating the Valid mask. That and my model doesn't learn when resize_sparse_flow_map is used. I'm not sure what is wrong with it, but something isn't right.
I thought perhaps the x and y coordinates were swapped, but thought perhaps that was due to the reshape that is used. Not too sure.
Or maybe it just doesn't work on Valid masks that only have a view invalid pixels.