Skip to content

Add flow_to_image() visualization utilΒ #5091

@NicolasHug

Description

@NicolasHug

Now that RAFT is done, it'd be nice to have a conversion util from a 2xHxW flow to a 3xHxW RGB image. I think the implementation of the original RAFT paper follows a standard color map, so we could do something similar (trimmed down to the minimal parts, e.g. no BRG etc.) https://github.com/princeton-vl/RAFT/blob/master/core/utils/flow_viz.py

Note: this is a visualization util meant to land in torchvision.utils; it's not meant to be a transform nor an ops.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions