Skip to content

Commit bdb3a0a

Browse files
authored
Merge pull request #2083 from alicevision/build/sphereDetectionSetup
Set `ALICEVISION_SPHERE_DETECTION_MODEL` variable during the initialisation
2 parents 851099d + b8b6568 commit bdb3a0a

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)