junaid-simamdigital commited on
Commit
0a6600e
·
verified ·
1 Parent(s): 0516b0c

eval: require rigid camera poses

Browse files
Files changed (1) hide show
  1. validate_capture_manifest.py +4 -0
validate_capture_manifest.py CHANGED
@@ -57,6 +57,10 @@ def validate_capture_manifest(manifest_path: str | Path, check_files: bool = Fal
57
  errors.append(f"{prefix} extrinsics rotation is singular")
58
  elif not np.allclose(array[3], [0.0, 0.0, 0.0, 1.0], atol=1e-5):
59
  errors.append(f"{prefix} extrinsics bottom row must be [0, 0, 0, 1]")
 
 
 
 
60
  if "held_out" not in splits:
61
  errors.append("manifest must contain at least one held_out view")
62
  if "train" not in splits:
 
57
  errors.append(f"{prefix} extrinsics rotation is singular")
58
  elif not np.allclose(array[3], [0.0, 0.0, 0.0, 1.0], atol=1e-5):
59
  errors.append(f"{prefix} extrinsics bottom row must be [0, 0, 0, 1]")
60
+ elif float(np.linalg.det(array[:3, :3])) <= 0 or not np.allclose(
61
+ array[:3, :3].T @ array[:3, :3], np.eye(3), atol=1e-4
62
+ ):
63
+ errors.append(f"{prefix} extrinsics rotation must be a proper rigid rotation")
64
  if "held_out" not in splits:
65
  errors.append("manifest must contain at least one held_out view")
66
  if "train" not in splits: