From b8b65688e6aa764ab3be360326c5040c9d0eaf51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Mon, 26 Jun 2023 12:01:39 +0200 Subject: [PATCH] Set `ALICEVISION_SPHERE_DETECTION_MODEL` variable The `ALICEVISION_SPHERE_DETECTION` variable needs to be declared and set using the installation path. If it is not, no node using it will be able to work unless the users set this environment variable on their own. --- meshroom/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meshroom/__init__.py b/meshroom/__init__.py index c0f9d00b5b..216751a092 100644 --- a/meshroom/__init__.py +++ b/meshroom/__init__.py @@ -120,6 +120,7 @@ def addToEnvPath(var, val, index=-1): qtPluginsDir = os.path.join(rootDir, "qtPlugins") sensorDBPath = os.path.join(aliceVisionShareDir, "cameraSensors.db") voctreePath = os.path.join(aliceVisionShareDir, "vlfeat_K80L3.SIFT.tree") + sphereDetectionModel = os.path.join(aliceVisionShareDir, "sphereDetection_Mask-RCNN.onnx") env = { 'PATH': aliceVisionBinDir, @@ -134,7 +135,8 @@ def addToEnvPath(var, val, index=-1): variables = { "ALICEVISION_ROOT": aliceVisionDir, "ALICEVISION_SENSOR_DB": sensorDBPath, - "ALICEVISION_VOCTREE": voctreePath + "ALICEVISION_VOCTREE": voctreePath, + "ALICEVISION_SPHERE_DETECTION_MODEL": sphereDetectionModel } for key, value in variables.items():