Skip to content

Instantly share code, notes, and snippets.

View fedral's full-sized avatar

Fu Zeshan fedral

  • shanghai,china
View GitHub Profile
import numpy as np
import re
import sys
from tqdm import tqdm
TAG_CHAR = np.array([202021.25], np.float32)
'''
Load a PFM file into a Numpy array. Note that it will have
a shape of H x W, not W x H. Returns a tuple containing the