Cudnn not found and AI Models not optimized

Hello
I’m having bad time trying to install the sdk and make everything work
I want to track body, and that is the one tutorial python script i cannot achieve to run
when i run it it says that cudnn is not installed, but it is, following nvidia’s installation instructions

I tried to run the diagnostic tool, everything is okay, except the ai models that are not optimized, and i cannot find something to make it work, here is the diagnostic :slight_smile:

{
    "AI Models": {
        "info": [
            "MULTI CLASS DETECTION is not optimized",
            "MULTI CLASS MEDIUM DETECTION is not optimized",
            "MULTI CLASS ACCURATE DETECTION is not optimized",
            "HUMAN BODY FAST DETECTION is not optimized",
            "HUMAN BODY MEDIUM DETECTION is not optimized",
            "HUMAN BODY ACCURATE DETECTION is not optimized",
            "PERSON HEAD DETECTION is not optimized",
            "PERSON HEAD ACCURATE DETECTION is not optimized",
            "REID ASSOCIATION is not optimized",
            "NEURAL DEPTH is not optimized"
        ]
    },
    "Camera Test": {
        "InternalDevicesCount": 2,
        "ZEDCount": 1,
        "camera": {
            "Device ID": 0,
            "Firmware": 1523,
            "Init Output": "OK",
            "Model": "ZED 2i",
            "Serial Number": 31363832,
            "valid": [
                "<b>Camera: </b>ZED 2i",
                "<b>Firmware: </b>1523"
            ]
        },
        "resolutions": {
            "HD1080@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 1080,
                "height (output)": 1080,
                "initialization": "OK",
                "status": true,
                "width (input)": 1920,
                "width (output)": 1920
            },
            "HD1080@30": {
                "fps (input)": 30,
                "fps (output)": 30,
                "height (input)": 1080,
                "height (output)": 1080,
                "initialization": "OK",
                "status": true,
                "width (input)": 1920,
                "width (output)": 1920
            },
            "HD2K@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 1242,
                "height (output)": 1242,
                "initialization": "OK",
                "status": true,
                "width (input)": 2208,
                "width (output)": 2208
            },
            "HD720@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 720,
                "height (output)": 720,
                "initialization": "OK",
                "status": true,
                "width (input)": 1280,
                "width (output)": 1280
            },
            "HD720@30": {
                "fps (input)": 30,
                "fps (output)": 30,
                "height (input)": 720,
                "height (output)": 720,
                "initialization": "OK",
                "status": true,
                "width (input)": 1280,
                "width (output)": 1280
            },
            "HD720@60": {
                "dropCount": 3,
                "fps (input)": 60,
                "fps (output)": 59,
                "height (input)": 720,
                "height (output)": 720,
                "imageCount": 497,
                "initialization": "OK",
                "status": true,
                "tearingCount": 0,
                "width (input)": 1280,
                "width (output)": 1280
            },
            "VGA@100": {
                "fps (input)": 100,
                "fps (output)": 38,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@30": {
                "fps (input)": 30,
                "fps (output)": 18,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@60": {
                "fps (input)": 60,
                "fps (output)": 31,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            }
        },
        "sensors": {
            "Firmware": 777,
            "Init Output": "OK",
            "Model": "ZED 2i (MCU)",
            "Serial Number": 31363832
        }
    },
    "Graphics Card": {
        "deviceCount": 1,
        "deviceDriverVersion": 11070,
        "devices": [
            {
                "arch": "Turing",
                "computeCapability": "7.5",
                "cores": 3840,
                "name": "NVIDIA GeForce RTX 2060",
                "totalMemoryBytes": "6442123264",
                "totalMemoryMB": 6143.6875
            }
        ],
        "initResult": 0,
        "valid": [
            "<b>Graphics card: </b> NVIDIA GeForce RTX 2060"
        ]
    },
    "Processor": {
        "OS": "Windows 10 FallCreators",
        "avxSupported": true,
        "coreCount": "6",
        "cpu": "Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz",
        "datetime": "2022-10-24 17:12:01",
        "hyperThreading": "1",
        "motherboard": "0TTHVM, Dell Inc.",
        "ramCapacity": "15.7673",
        "ramUsage": "0",
        "ramUsed": "6.68895",
        "threadCount": "12",
        "valid": [
            "<b>Processor: </b> Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz",
            "<b>Motherboard: </b> 0TTHVM, Dell Inc."
        ]
    },
    "USB": {
        "ASMediaFound": false,
        "CorruptedFirmware": false,
        "MCUDetected": true,
        "OC_Cam_Detected": false,
        "OtherUSBDevices": [
        ],
        "USBList": [
            {
                "USBMode": 2,
                "USB_path": "/3/2",
                "bDescriptorType": 1,
                "bDeviceProtocol": 0,
                "bLength": 18,
                "bMaxPacketSize0": 64,
                "bNumConfigurations": 1,
                "bcdDevice": "3.9",
                "bcdUSB": "2.0",
                "bcdUSBClass": 0,
                "bcdUSBSubClass": 0,
                "busNumber": 3,
                "device": "ZED2i MCU",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 3,
                "idProduct": "0xf881",
                "idVendor": "0x2b03"
            },
            {
                "USB_path": "/11",
                "idProduct": "0x0550",
                "idVendor": "0x187c"
            },
            {
                "USBMode": 3,
                "USB_path": "/19",
                "bDescriptorType": 1,
                "bDeviceProtocol": 1,
                "bLength": 18,
                "bMaxPacketSize0": 9,
                "bNumConfigurations": 1,
                "bcdDevice": "1.0",
                "bcdUSB": "3.0",
                "bcdUSBClass": 239,
                "bcdUSBSubClass": 2,
                "busNumber": 3,
                "device": "ZED2i",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 4,
                "idProduct": "0xf880",
                "idVendor": "0x2b03"
            },
            {
                "USBMode": 3,
                "USB_path": "/19",
                "bDescriptorType": 1,
                "bDeviceProtocol": 1,
                "bLength": 18,
                "bMaxPacketSize0": 9,
                "bNumConfigurations": 1,
                "bcdDevice": "1.0",
                "bcdUSB": "3.0",
                "bcdUSBClass": 239,
                "bcdUSBSubClass": 2,
                "busNumber": 3,
                "device": "ZED2i",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 4,
                "idProduct": "0xf880",
                "idVendor": "0x2b03"
            },
            {
                "USB_path": "/14",
                "idProduct": "0x0026",
                "idVendor": "0x8087"
            },
            {
                "USB_path": "/5",
                "idProduct": "0x5538",
                "idVendor": "0x0bda"
            },
            {
                "USB_path": "/3",
                "idProduct": "0x2512",
                "idVendor": "0x0424"
            },
            {
                "USB_path": "/5",
                "idProduct": "0x5538",
                "idVendor": "0x0bda"
            }
        ],
        "USBMode": 3,
        "ZED Camera Module Detected": 63616,
        "ZED MCU Module Detected": 63617,
        "ZEDDetected": true,
        "captureDevices": [
        ],
        "controllers": [
            {
                "CompatibleIDs": "PCI\\VEN_8086&DEV_15E9&REV_06",
                "Description": "USB xHCI Compliant Host Controller",
                "DeviceName": "Intel(R) USB 3.1 eXtensible Host Controller - 1.10 (Microsoft)",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0003",
                "Location": "PCI bus 6, device 0, function 0",
                "Manufacturer": "Generic USB xHCI Host Controller",
                "Name": "PCI",
                "PhysicalName": "\\Device\\NTPNP_PCI0030"
            },
            {
                "CompatibleIDs": "PCI\\VEN_10DE&DEV_1ADA&REV_A1",
                "Description": "USB xHCI Compliant Host Controller",
                "DeviceName": "NVIDIA USB 3.10 eXtensible Host Controller - 1.10 (Microsoft)",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0001",
                "Location": "PCI bus 1, device 0, function 2",
                "Manufacturer": "Generic USB xHCI Host Controller",
                "Name": "PCI",
                "PhysicalName": "\\Device\\NTPNP_PCI0022"
            },
            {
                "CompatibleIDs": "PCI\\VEN_8086&DEV_06ED&REV_00",
                "Description": "USB xHCI Compliant Host Controller",
                "DeviceName": "Intel(R) USB 3.1 eXtensible Host Controller - 1.10 (Microsoft)",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0000",
                "Location": "PCI bus 0, device 20, function 0",
                "Manufacturer": "Generic USB xHCI Host Controller",
                "Name": "PCI",
                "PhysicalName": "\\Device\\NTPNP_PCI0007"
            },
            {
                "CompatibleIDs": "",
                "Description": "USB Root Hub (USB 3.0)",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0005",
                "Location": "",
                "Manufacturer": "(Standard USB HUBs)",
                "Name": "USB",
                "PhysicalName": "\\Device\\USBPDO-0"
            },
            {
                "CompatibleIDs": "",
                "Description": "USB Root Hub (USB 3.0)",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0004",
                "Location": "",
                "Manufacturer": "(Standard USB HUBs)",
                "Name": "USB",
                "PhysicalName": "\\Device\\USBPDO-1"
            },
            {
                "CompatibleIDs": "",
                "Description": "USB Root Hub (USB 3.0)",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0006",
                "Location": "",
                "Manufacturer": "(Standard USB HUBs)",
                "Name": "USB",
                "PhysicalName": "\\Device\\USBPDO-2"
            },
            {
                "CompatibleIDs": "USB\\USB20_HUB",
                "Description": "Generic USB Hub",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0034",
                "Location": "Port_#0001.Hub_#0002",
                "Manufacturer": "(Standard USB HUBs)",
                "Name": "USB",
                "PhysicalName": ""
            }
        ],
        "valid": [
            "<b>USB Bandwidth: </b> OK"
        ]
    },
    "ZED SDK": {
        "CUDA Toolkit version": "V11.7.64 -->located in C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/bin/nvcc.exe",
        "CUDA loading": false,
        "CUDA_reachable": true,
        "ZED SDK Version (Diag)": "3.8.0",
        "ZED SDK Version (RT)": "3.8.0",
        "ai": {
            "checkAI": true,
            "cudaVersion": 11070,
            "cudnnCudartVersion": 11080,
            "cudnnVersion": 8600,
            "cudnnVersionExpected": 8401,
            "tensorVersion": 8402
        },
        "binFiles": [
            "cudnn64_8.dll",
            "cudnn_adv_infer64_8.dll",
            "cudnn_adv_train64_8.dll",
            "cudnn_cnn_infer64_8.dll",
            "cudnn_cnn_train64_8.dll",
            "cudnn_ops_infer64_8.dll",
            "cudnn_ops_train64_8.dll",
            "nvinfer.dll",
            "nvinfer_builder_resource.dll",
            "nvinfer_plugin.dll",
            "nvonnxparser.dll",
            "nvparsers.dll",
            "sl_ai64.dll",
            "sl_zed64.dll",
            "zlibwapi.dll"
        ],
        "driverVersion": "516.94",
        "drivervDllVersion": "31.0.15.1694",
        "resourcesFiles": [
        ],
        "resourcesFilesExpected": [
            "objects_performance_2.2"
        ],
        "runtimeDllVersion": 11070,
        "valid": [
            "<b>ZED SDK version:</b> 3.8.0",
            "<b>CUDA version:</b> V11.7.64"
        ]
    }
}

I’m on windows,
Do you have any suggestions ?
Thanks !

Hello and thank you for reaching out to us,

I don’t see immediate problems in your diagnostic, indeed. Can you publish the cudnn error that you get when running the script ?
Also, How did you install CUDA ? Did the SDK install from scratch, did you install it manually, did you update an existing version ?

Antoine

I installed cuda via the zed sdk
I installed cudnn via nvidia’s instructions
Here is the error:

[ZED][INFO] Logging level INFO
[ZED][INFO] [Init]  Depth mode: PERFORMANCE
[ZED][INFO] [Init]  Camera successfully opened.
[ZED][INFO] [Init]  Sensors FW version: 777
[ZED][INFO] [Init]  Camera FW version: 1523
[ZED][INFO] [Init]  Video mode: HD720@60
Object Detection: Loading Module...
[ZED][ERROR] [Object Detection]  cuDNN library not found
[ZED][ERROR] [ZED] [Object Detection]  CUDNN NOT FOUND
CORRUPTED SDK INSTALLATION

I tried reinstalling the SDK but it is the same

The SDK also installs cuDNN, you don’t need to install it yourself. However, it may have trouble installing it if another installation competes with him.

You should remove any instance of cuda / cudnn and fresh install the SDK.

Antoine

i installed it because i had the error the first time, after a fresh install of the sdk with the cuda toolkit included

The SDK can have trouvle installing CUDA if some parts of an old CUDA installation are still there. Make sure it is uninstalled correctly before installing it again.
You can also follow nvidia’s setup documentation, but be careful with the versions. I really don’t advise you to do that.

Was this issue resolved? I am having the same problem. I’ve uninstalled and reinstalled both the SDK and CUDA multiple times. I am currently using:
ZED SDK 4.0.7
CUDA 12.1
Python 3.11
Although I had the same issue with python versions 3.8 and 3.10, and with CUDA 12.2 and 11.7.

For my current installation, I uninstalled everything related to both the ZED SDK and CUDA, installed CUDA 12.1, and installed the ZED SDK. I ran get_python_api, and recieved the following error message:

→ Downloading PyOpenGL_accelerate-3.1.6-cp311-cp311-win_amd64.whl
Processing c:\users\jacob\pyopengl_accelerate-3.1.6-cp311-cp311-win_amd64.whl
ERROR: Wheel ‘pyopengl-accelerate’ located at C:\Users\jacob\PyOpenGL_accelerate-3.1.6-cp311-cp311-win_amd64.whl is invalid.

I then ran body_tracking.py, and recieved the following error message:

[2023-10-11 16:19:33 UTC][ZED][INFO] Logging level INFO
[2023-10-11 16:19:34 UTC][ZED][INFO] [Init] Depth mode: PERFORMANCE
[2023-10-11 16:19:34 UTC][ZED][INFO] [Init] Camera successfully opened.
[2023-10-11 16:19:34 UTC][ZED][INFO] [Init] Sensors FW version: 776
[2023-10-11 16:19:34 UTC][ZED][INFO] [Init] Camera FW version: 1523
[2023-10-11 16:19:34 UTC][ZED][INFO] [Init] Video mode: HD720@60
[2023-10-11 16:19:34 UTC][ZED][INFO] [Init] Serial Number: S/N 20066768
Body tracking: Loading Module…
Enable Body Tracking : CORRUPTED SDK INSTALLATION. Exit program.
[2023-10-11 16:19:36 UTC][ZED][ERROR] [Object Detection] cuDNN library not found
[2023-10-11 16:19:36 UTC][ZED][ERROR] [ZED] [Object Detection] CUDNN NOT FOUND

Any help is appreciated!

Hi there, unfortunately I’m running into the same issue as jmc.

  • windows 10
  • python 3.10
  • ZED SDK 4.07, 4.08
  • cuda 11.8, 12.1, 12.2, and 12.3. (tried all separately as fresh installs)

running body_tracking.py gives ‘cuDNN library not found’ error.
However, there are cudnn* files in the bin folder within the ZED SDK folder. I tried manually installing cudnn as well inside “Program files\Nvidia GPU computing toolkit” but no change.

other issues that are present as well:

  • depth_viewer stays blank, no point cloud is rendered
  • ZED_diagnostic crashes at 'Devices: 20%"

On another machine running windows 11 I seem to experience no issues like this.

Hi, does anyone have still this issue? I just tried it as well and was not succesful. I use Ubuntu 22.04.