Skip to content

How to decode optical flow GTs? #52

@lynnezixuan

Description

@lynnezixuan

I tried to load optical flow GTs with the commands below:

with h5py.File("./Shift/discrete/images/train/left_stereo/flow.hdf5", "r") as hdf5: # load the HDF5 file im_bytes = bytearray(hdf5['00aa-d36e/00000000_flow_left_stereo.npz']) # select the file we want flow = np.load(BytesIO(im_bytes)) # same as opening an ordinary png file from IO stream.

The output of np.asarray(flow['flow'], dtype=np.float32).max() is 0.01171875. The value range is not correct. (I tried to wrap frame 1 to frame 0, the results are not correct obviously)

Could you share the correct way to decode this value? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions