Prechádzať zdrojové kódy

Better camera model error message

bkerbl 2 rokov pred
rodič
commit
6a50784106
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      scene/dataset_readers.py

+ 1 - 1
scene/dataset_readers.py

@@ -92,7 +92,7 @@ def readColmapCameras(cam_extrinsics, cam_intrinsics, images_folder):
             FovY = focal2fov(focal_length_y, height)
             FovX = focal2fov(focal_length_x, width)
         else:
-            assert False, "Colmap camera model not handled!"
+            assert False, "Colmap camera model not handled: only undistorted datasets (PINHOLE or SIMPLE_PINHOLE cameras) supported!"
 
         image_path = os.path.join(images_folder, os.path.basename(extr.name))
         image_name = os.path.basename(image_path).split(".")[0]