Problem detecting ZED 2i Camera and CUDA

Dear Community

I have installed CUDA 11.5 and the SDK3.7 on Ubuntu20.04. When I start the diagnostic tool it seems that it doesnt detect CUDA and either it doesnt detect the Camera. Can you help me out how to debug further? The Camera is not used from another process and it is connected to a USB3.0 port.

{
    "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",
            "REID ASSOCIATION is not optimized",
            "NEURAL DEPTH is not optimized"
        ]
    },
    "Camera Test": {
        "InternalDevicesCount": 2,
        "ZEDCount": 1,
        "camera": {
            "Device ID": 0,
            "Init Output": "Error : Cannot construct a valid video device (/dev/videoX) for the camera"
        },
        "error": [
            "<b>Specific resolutions are not available</b> <br/> Replug your device or connect the camera to another <b>USB 3.0</b> port."
        ],
        "resolutions": {
            "HD1080@15": {
                "initialization": "Error : Cannot start camera stream. Camera might already be used by another application.",
                "status": false
            },
            "HD1080@30": {
                "initialization": "Error : Cannot start camera stream. Camera might already be used by another application.",
                "status": false
            },
            "HD2K@15": {
                "initialization": "Error : Cannot start camera stream. Camera might already be used by another application.",
                "status": false
            },
            "HD720@15": {
                "initialization": "Error : Cannot start camera stream. Camera might already be used by another application.",
                "status": false
            },
            "HD720@30": {
                "initialization": "Error : Cannot start camera stream. Camera might already be used by another application.",
                "status": false
            },
            "HD720@60": {
                "initialization": "Error : Cannot start camera stream. Camera might already be used by another application.",
                "status": false
            },
            "VGA@100": {
                "fps (input)": 100,
                "fps (output)": 15,
                "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)": 15,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@60": {
                "fps (input)": 60,
                "fps (output)": 15,
                "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": 33151917
        }
    },
    "Graphics Card": {
        "deviceCount": 1,
        "deviceDriverVersion": 11060,
        "devices": [
            {
                "arch": "Turing",
                "computeCapability": "7.5",
                "cores": 3072,
                "name": "NVIDIA GeForce GTX 1660 Ti with Max-Q Design",
                "totalMemoryBytes": "6235947008",
                "totalMemoryMB": 5947.0625
            }
        ],
        "initResult": 0,
        "valid": [
            "<b>Graphics card: </b> NVIDIA GeForce GTX 1660 Ti with Max-Q Design"
        ]
    },
    "Processor": {
        "OS": "Ubuntu 20.04.4 LTS ",
        "avxSupported": true,
        "coreCount": "8",
        "cpu": " Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz",
        "datetime": "2022-03-09 17:44:46",
        "hyperThreading": "0",
        "motherboard": "Surface Book 3, Microsoft Corporation",
        "ramCapacity": "33.235448",
        "ramUsage": "",
        "ramUsed": "8.193774",
        "threadCount": "0",
        "valid": [
            "<b>Processor: </b>  Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz",
            "<b>Motherboard: </b> Surface Book 3, Microsoft Corporation"
        ]
    },
    "USB": {
        "CorruptedFirmware": false,
        "MCUDetected": true,
        "USBList": [
            {
                "USB_path": "/9",
                "idProduct": "0x091e",
                "idVendor": "0x045e"
            },
            {
                "USBMode": 2,
                "USB_path": "/2/2/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"
            },
            {
                "USBMode": 2,
                "USB_path": "/2/2/3/1",
                "bDescriptorType": 1,
                "bDeviceProtocol": 1,
                "bLength": 18,
                "bMaxPacketSize0": 64,
                "bNumConfigurations": 1,
                "bcdDevice": "1.0",
                "bcdUSB": "2.16",
                "bcdUSBClass": 239,
                "bcdUSBSubClass": 2,
                "busNumber": 3,
                "device": "ZED2i",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 4,
                "idProduct": "0xf880",
                "idVendor": "0x2b03"
            },
            {
                "USB_path": "/2/2/3",
                "idProduct": "0x2512",
                "idVendor": "0x0424"
            },
            {
                "USB_path": "/2/2",
                "idProduct": "0x0c14",
                "idVendor": "0x045e"
            },
            {
                "USB_path": "/2",
                "idProduct": "0x0c12",
                "idVendor": "0x045e"
            },
            {
                "USB_path": "/10",
                "idProduct": "0x0026",
                "idVendor": "0x8087"
            }
        ],
        "USBMode": 2,
        "ZED Camera Module Detected": 63616,
        "ZED MCU Module Detected": 63617,
        "ZEDDetected": true,
        "error": [
            "<b>USB 2.0 connection detected</b><br/> Please connect your camera to an <b>USB 3.0</b> port."
        ]
    },
    "ZED SDK": {
        "CUDA loading": false,
        "GPU Driver Version": "Driver Version                            : 510.47.03",
        "GPU Performance": "    Performance State                     : P0",
        "ZED SDK Version (Diag)": "3.7.0",
        "ZED SDK Version (RT)": "3.7.0",
        "ai": {
            "checkAI": true,
            "cudaVersion": 11050,
            "cudnnCudartVersion": 11050,
            "cudnnVersion": 8302,
            "cudnnVersionExpected": 8201,
            "tensorVersion": 8400
        },
        "binFiles": [
            "libsl_ai.so",
            "libsl_zed.so",
            "libsl_zed_static.a"
        ],
        "error": [
            "<b>CUDA 11.5 not detected</b> <br/> Make sure CUDA is installed and restart your computer. <a href='https://download.stereolabs.com/cuda11_5_web' style='color: #19b5ec;' >Download</a>."
        ],
        "resourcesFiles": [
        ],
        "resourcesFilesExpected": [
            "objects_performance_2.1"
        ],
        "valid": [
            "<b>ZED SDK version:</b> 3.7.0"
        ]
    }
}

Hi @floriankittelmann
it seems that you have two problems at the same time:

  1. the connection is not good
  2. CUDA 11.5 is not correctly installed

Try to strengthen the screws to get a reliable connection and be sure to have plugged the camera into a USB3 port.
Regarding CUDA, have you restarted after installing it?

Hi @Myzhar

Thank you for your reply and help. I think I had messed up my ubuntu installation by installing the wrong CUDA versions etc. I also had not enough space on my ubuntu root folder so the SDK installation script failed. So changed my partition such that I have enough space on the root folder of my ubuntu installation and installed as well ubuntu from scratch again. Afterwards I installed the nvidia drivers by:

sudo apt install nvidia-driver-510

Afterwards I run the SDK Installation script, which installs all the dependencies automatically. And it works now everything:

1 Like