Hi,
which DEPTH_MODE do you use? Have you tried DEPTH_MODE::NEURAL?
it is the more accurate mode.
You can also increase a bit the depth_stabilization, this will smooth the depth noise and should give better results.
But I’m having trouble with sl.DEPTH_MODE.NEURAL
It just prints Optimizing neural_depth_1.4 | 0.0%[> ] 4min 10s est. left
Then moves on to the next step.
And the output has nothing but NAN as a depth, and 100.0 as a confidence.
Here is how I initialize my camera.
def initialize_zed(input_path):
# Create a ZED camera object
init_parameters = sl.InitParameters()
init_parameters.depth_mode = sl.DEPTH_MODE.ULTRA
init_parameters.depth_mode = sl.DEPTH_MODE.NEURAL
init_parameters.coordinate_units = sl.UNIT.METER
init_parameters.depth_stabilization = 2 # default 1, the higher, the smoother the depth
init_parameters.set_from_svo_file(input_path)
# Open the ZED
zed = sl.Camera()
zed.open(init_parameters)
return zed
DEPTH_MODE::NEURAL need to be optimized for your GPU first, as this may take few minutes the best way to do it is with the tool “ZED Diagnostic”, you can run it in commande line with the “–nrlo” option, once it is done, you should be able to run your program.
Fri Dec 23 17:26:42 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 515.86.01 Driver Version: 515.86.01 CUDA Version: 11.7 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce … On | 00000000:01:00.0 Off | N/A |
| N/A 45C P0 N/A / N/A | 5MiB / 4096MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2511 G /usr/lib/xorg/Xorg 4MiB |
±----------------------------------------------------------------------------+