File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -520,7 +520,6 @@ def detect_device_preset(input_dir):
520
520
if args .device_preset :
521
521
device_preset = args .device_preset
522
522
523
-
524
523
if device_preset : print (f"Selected device type: { device_preset } " , flush = True )
525
524
else : print ("Warning! Couldn't automatically detect device preset, to ensure best results suply one via --device_preset argument" , flush = True )
526
525
@@ -539,7 +538,7 @@ def detect_device_preset(input_dir):
539
538
elif device_preset == 'oak-d' :
540
539
config ['stereoPointCloudMinDepth' ] = 0.5
541
540
config ['stereoPointCloudStride' ] = 30
542
- elif "orbbec" in device_preset :
541
+ elif device_preset is not None and "orbbec" in device_preset :
543
542
if prefer_icp :
544
543
parameter_sets .extend (['icp' ])
545
544
if not args .fast : parameter_sets .append ('offline-icp' )
You can’t perform that action at this time.
0 commit comments