I’m trying to load disparity images from https://lmb.informatik.uni-freiburg.de/resources/datasets/SceneFlowDatasets.en.html 12 into pytorch tensors for my network.
They are stored in PFM format and this code https://lmb.informatik.uni-freiburg.de/resources/datasets/SceneFlow/assets/code/python_pfm.py 29 is provided for reading them.
It returns a numpy array, so i just used torch.from_numpy(), but i get
RuntimeError: some of the strides of a given numpy array are negative. This is currently not supported, but will be added in future releases.
Does anyone know a workaround for this or an ETA for negative strides support?