solve merge

This commit is contained in:
2024-10-28 18:27:16 +00:00
9 changed files with 237 additions and 19 deletions

View File

@@ -212,6 +212,17 @@ class DataLoadUtil:
else:
pts = np.load(npy_path)
return pts
@staticmethod
def load_from_preprocessed_nrm(path, file_type="npy"):
npy_path = os.path.join(
os.path.dirname(path), "nrm", os.path.basename(path) + "." + file_type
)
if file_type == "txt":
nrm = np.loadtxt(npy_path)
else:
nrm = np.load(npy_path)
return nrm
@staticmethod
def cam_pose_transformation(cam_pose_before):