alicevision / AliceVision

Photogrammetric Computer Vision Framework
http://alicevision.org
Other
2.96k stars 821 forks source link

Crash with: Invalid distortion model for pinhole camera. #1640

Open svenstaro opened 8 months ago

svenstaro commented 8 months ago

This is with AliceVision 3.2.0 and Meshroom 2023.3.0. I'm trying to start a pipeline via meshroom. I try to load the official sample image set. I get this:

terminate called after throwing an instance of 'std::out_of_range'
  what():  Invalid distortion model for pinhole camera.

The full terminal output is this:

ALICEVISION_ROOT=/usr ALICEVISION_SENSOR_DB=/usr/share/aliceVision/cameraSensors.db meshroom
WARNING:root:== The following "submitters" plugins could not be loaded ==
  * rippleSubmitter: No module named 'mpc'
  * simpleFarmSubmitter: No module named 'simpleFarm'

[2024-01-07 04:17:07.155292] [0x00007efebd5776c0] [trace]   Embedded OCIO configuration file: '/usr/share/aliceVision/config.ocio' found.                                                                   [2024-01-07 04:17:20.328510] [0x00007f2397070000] [trace]   Embedded OCIO configuration file: '/usr/share/aliceVision/config.ocio' found.
Program called with the following parameters:
 * allowSingleView = 1
 * allowedCameraModels = "pinhole,radial1,radial3,brown,fisheye4,fisheye1,3deanamorphic4,3deradial4,3declassicld"
 * colorProfileDatabase = "" (default)
 * defaultCameraModel = "" (default)
 * defaultFieldOfView = 45
 * defaultFocalLength = -1 (default)
 * defaultFocalRatio = 1 (default)
 * defaultOffsetX = 0 (default)
 * defaultOffsetY = 0 (default)
 * errorOnMissingColorProfile = 1 (default)
 * groupCameraFallback =  Unknown Type "20EGroupCameraFallback"
 * imageFolder = "" (default)
 * input = "/tmp/tmp1qxar4y_/CameraInit/961e54591174ec5a2457c66da8eadc0cb03d89ba/viewpoints.sfm"
 * lensCorrectionProfileInfo = ""
 * lensCorrectionProfileSearchIgnoreCameraModel = 1
 * maxCoresAvailable =  Unknown Type "j" (default)
 * maxMemoryAvailable = 18446744073709551615 (default)
 * output = "/tmp/tmp1qxar4y_/CameraInit/961e54591174ec5a2457c66da8eadc0cb03d89ba/cameraInit.sfm"
 * rawColorInterpretation =  Unknown Type "N11aliceVision5image23ERawColorInterpretationE"
 * sensorDatabase = "/usr/share/aliceVision/cameraSensors.db"
 * verboseLevel = "info"
 * viewIdMethod =  Unknown Type "N11aliceVision9sfmDataIO13EViewIdMethodE"
 * viewIdRegex = ".*?(\d+)" (default)

Hardware :
        Detected core count : 64
        OpenMP will use 64 cores
        Detected available memory : 95859 Mo

terminate called after throwing an instance of 'std::out_of_range'
  what():  Invalid distortion model for pinhole camera.
ERROR:root:Error while building intrinsics: CameraInit failed with error code -6.
Command was: "aliceVision_cameraInit  --sensorDatabase "/usr/share/aliceVision/cameraSensors.db" --lensCorrectionProfileInfo "${ALICEVISION_LENS_PROFILE_INFO}" --lensCorrectionProfileSearchIgnoreCameraModel True --defaultFieldOfView 45.0 --groupCameraFallback folder --allowedCameraModels pinhole,radial1,radial3,brown,fisheye4,fisheye1,3deanamorphic4,3deradial4,3declassicld --rawColorInterpretation LibRawWhiteBalancing --viewIdMethod metadata --verboseLevel info --output "/tmp/tmp1qxar4y_/CameraInit/961e54591174ec5a2457c66da8eadc0cb03d89ba/cameraInit.sfm" --allowSingleView 1 --input "/tmp/tmp1qxar4y_/CameraInit/961e54591174ec5a2457c66da8eadc0cb03d89ba/viewpoints.sfm"".

QQmlComponent: Created graphical object was not placed in the graphics scene.

I build AliceVision like this and Meshroom like this.

anselm-baur commented 6 months ago

Hi, here is also already some discussions ongoing about the same error: https://github.com/alicevision/Meshroom/issues/2260