Skip to content

Commit b8b6568

Browse files
committed
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.
1 parent 851099d commit b8b6568

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

meshroom/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def addToEnvPath(var, val, index=-1):
120120
qtPluginsDir = os.path.join(rootDir, "qtPlugins")
121121
sensorDBPath = os.path.join(aliceVisionShareDir, "cameraSensors.db")
122122
voctreePath = os.path.join(aliceVisionShareDir, "vlfeat_K80L3.SIFT.tree")
123+
sphereDetectionModel = os.path.join(aliceVisionShareDir, "sphereDetection_Mask-RCNN.onnx")
123124

124125
env = {
125126
'PATH': aliceVisionBinDir,
@@ -134,7 +135,8 @@ def addToEnvPath(var, val, index=-1):
134135
variables = {
135136
"ALICEVISION_ROOT": aliceVisionDir,
136137
"ALICEVISION_SENSOR_DB": sensorDBPath,
137-
"ALICEVISION_VOCTREE": voctreePath
138+
"ALICEVISION_VOCTREE": voctreePath,
139+
"ALICEVISION_SPHERE_DETECTION_MODEL": sphereDetectionModel
138140
}
139141

140142
for key, value in variables.items():

0 commit comments

Comments
 (0)