Skip to content

Possible bug in data processing generating incorrect optical flow #4

@lzhyu

Description

@lzhyu

originalflow=torch.from_numpy(flow)
flow = torch.from_numpy(transform.resize(flow, (360, 640))).to(device).permute(2,0,1).float()
flow[0, :, :] *= float(flow.shape[1])/originalflow.shape[1]
flow[1, :, :] *= float(flow.shape[2])/originalflow.shape[2]

Here the shape of flow has been permuted, so it should be
flow[0, :, :] *= float(flow.shape[1])/originalflow.shape[0],
flow[1, :, :] *= float(flow.shape[2])/originalflow.shape[1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions