Model Optimization suddenly stops without any error message

Hello, i tried running the Depth-Viewer with the Neural model but the optimization failed. Therefore i tried optimizing the neural depth model and all models manually based on https://support.stereolabs.com/hc/en-us/articles/9747407795223-How-can-I-optimize-the-ZED-SDK-AI-models-manually. The optimization always suddenly stops without any error message. Running the respective python samples resulted in the same. I also ran a diagnostic, which only resulted in the warning that none of the models are optimized yet. I have a hard time fixing the problem since i didnt receive any form of error messages. Could anyone help me?

System Information:
Windows 11
CPU: Intel Xeon E5-1620 v3
GPU: Nvidia Quadro K4200
SDK 3.7.7
Cuda 10.2
Zed 2i


Hi @julius0906
Welcome to the Stereolabs community.

Please run the ZED Diagnostic tool, save the report and send it

Hi @Myzhar, thanks for the response. I copied the diagnostic file in here:

{
    "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,
            "Firmware": 1523,
            "Init Output": "OK",
            "Model": "ZED 2i",
            "Serial Number": 37382940,
            "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)": 25,
                "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)": 28,
                "height (input)": 720,
                "height (output)": 720,
                "initialization": "OK",
                "status": true,
                "width (input)": 1280,
                "width (output)": 1280
            },
            "HD720@60": {
                "dropCount": 0,
                "fps (input)": 60,
                "fps (output)": 41,
                "height (input)": 720,
                "height (output)": 720,
                "imageCount": 500,
                "initialization": "OK",
                "status": true,
                "tearingCount": 0,
                "width (input)": 1280,
                "width (output)": 1280
            },
            "VGA@100": {
                "fps (input)": 100,
                "fps (output)": 65,
                "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)": 30,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@60": {
                "fps (input)": 60,
                "fps (output)": 41,
                "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": 37382940
        }
    },
    "Graphics Card": {
        "deviceCount": 1,
        "deviceDriverVersion": 10020,
        "devices": [
            {
                "arch": "Kepler",
                "computeCapability": "3.0",
                "cores": 1344,
                "name": "Quadro K4200",
                "totalMemoryBytes": "4294967296",
                "totalMemoryMB": 4096
            }
        ],
        "initResult": 0,
        "valid": [
            "<b>Graphics card: </b> Quadro K4200"
        ]
    },
    "Processor": {
        "OS": "Windows 10 FallCreators",
        "avxSupported": true,
        "coreCount": "4",
        "cpu": "Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz",
        "datetime": "2025-02-11 16:56:54",
        "hyperThreading": "1",
        "motherboard": "0K240Y, Dell Inc.",
        "ramCapacity": "63.924",
        "ramUsage": "1.30078e-311",
        "ramUsed": "10.4581",
        "threadCount": "8",
        "valid": [
            "<b>Processor: </b> Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz",
            "<b>Motherboard: </b> 0K240Y, Dell Inc."
        ]
    },
    "USB": {
        "ASMediaFound": false,
        "CorruptedFirmware": false,
        "MCUDetected": true,
        "OC_Cam_Detected": false,
        "OtherUSBDevices": [
        ],
        "USBList": [
            {
                "USB_path": "/6",
                "idProduct": "0x1010",
                "idVendor": "0x413c"
            },
            {
                "USB_path": "/6/4",
                "idProduct": "0x2110",
                "idVendor": "0x413c"
            },
            {
                "USBMode": 3,
                "USB_path": "/16",
                "bDescriptorType": 1,
                "bDeviceProtocol": 1,
                "bLength": 18,
                "bMaxPacketSize0": 9,
                "bNumConfigurations": 1,
                "bcdDevice": "1.0",
                "bcdUSB": "3.0",
                "bcdUSBClass": 239,
                "bcdUSBSubClass": 2,
                "busNumber": 2,
                "device": "ZED2i",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 4,
                "idProduct": "0xf880",
                "idVendor": "0x2b03"
            },
            {
                "USBMode": 2,
                "USB_path": "/5/2",
                "bDescriptorType": 1,
                "bDeviceProtocol": 0,
                "bLength": 18,
                "bMaxPacketSize0": 64,
                "bNumConfigurations": 1,
                "bcdDevice": "3.9",
                "bcdUSB": "2.0",
                "bcdUSBClass": 0,
                "bcdUSBSubClass": 0,
                "busNumber": 2,
                "device": "ZED2i MCU",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 3,
                "idProduct": "0xf881",
                "idVendor": "0x2b03"
            },
            {
                "USB_path": "/6/1",
                "idProduct": "0x301a",
                "idVendor": "0x413c"
            },
            {
                "USB_path": "/5",
                "idProduct": "0x2512",
                "idVendor": "0x0424"
            },
            {
                "USB_path": "/1",
                "idProduct": "0x800a",
                "idVendor": "0x8087"
            },
            {
                "USB_path": "/1",
                "idProduct": "0x8002",
                "idVendor": "0x8087"
            }
        ],
        "USBMode": 3,
        "ZED Camera Module Detected": 63616,
        "ZED MCU Module Detected": 63617,
        "ZEDDetected": true,
        "captureDevices": [
        ],
        "controllers": [
            {
                "CompatibleIDs": "USB\\USB20_HUB",
                "Description": "Generischer USB-Hub",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0011",
                "Location": "Port_#0006.Hub_#0003",
                "Manufacturer": "(Standardm  ige USB-HUBs)",
                "Name": "USB",
                "PhysicalName": "\\Device\\USBPDO-3"
            },
            {
                "CompatibleIDs": "USB\\USB20_HUB",
                "Description": "Generischer USB-Hub",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0009",
                "Location": "Port_#0008.Hub_#0003",
                "Manufacturer": "(Standardm  ige USB-HUBs)",
                "Name": "USB",
                "PhysicalName": ""
            },
            {
                "CompatibleIDs": "",
                "Description": "USB-Root-Hub",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0003",
                "Location": "",
                "Manufacturer": "(Standard-USB-Hostcontroller)",
                "Name": "USB",
                "PhysicalName": "\\Device\\USBPDO-1"
            },
            {
                "CompatibleIDs": "PCI\\VEN_8086&DEV_8D31&REV_05",
                "Description": "USB-xHCI-kompatibler Hostcontroller",
                "DeviceName": "Intel(R) USB 3.0 eXtensible-Hostcontroller \u0013 1.0 (Microsoft)",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0000",
                "Location": "PCI-Bus 0, Ger t 20, Funktion 0",
                "Manufacturer": "Generischer USB-xHCI-Hostcontroller",
                "Name": "PCI",
                "PhysicalName": "\\Device\\NTPNP_PCI0068"
            },
            {
                "CompatibleIDs": "",
                "Description": "USB-Root-Hub (USB 3.0)",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0005",
                "Location": "",
                "Manufacturer": "(Standardm  ige USB-HUBs)",
                "Name": "USB",
                "PhysicalName": "\\Device\\USBPDO-0"
            },
            {
                "CompatibleIDs": "",
                "Description": "USB-Root-Hub",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0004",
                "Location": "",
                "Manufacturer": "(Standard-USB-Hostcontroller)",
                "Name": "USB",
                "PhysicalName": "\\Device\\USBPDO-2"
            },
            {
                "CompatibleIDs": "PCI\\VEN_8086&DEV_8D2D&REV_05",
                "Description": "Intel(R) C610 series/X99 chipset USB Enhanced Host Controller #2 - 8D2D",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0001",
                "Location": "PCI-Bus 0, Ger t 26, Funktion 0",
                "Manufacturer": "INTEL",
                "Name": "PCI",
                "PhysicalName": "\\Device\\NTPNP_PCI0073"
            },
            {
                "CompatibleIDs": "USB\\USB20_HUB",
                "Description": "Generischer USB-Hub",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0015",
                "Location": "Port_#0014.Hub_#0003",
                "Manufacturer": "(Standardm  ige USB-HUBs)",
                "Name": "USB",
                "PhysicalName": ""
            },
            {
                "CompatibleIDs": "USB\\COMPAT_VID_8087&Class_09&SubClass_00&Prot_00",
                "Description": "Generic USB Hub",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0007",
                "Location": "Port_#0001.Hub_#0001",
                "Manufacturer": "(Generic USB Hub)",
                "Name": "USB",
                "PhysicalName": "\\Device\\USBPDO-4"
            },
            {
                "CompatibleIDs": "PCI\\VEN_8086&DEV_8D26&REV_05",
                "Description": "Intel(R) C610 series/X99 chipset USB Enhanced Host Controller #1 - 8D26",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0002",
                "Location": "PCI-Bus 0, Ger t 29, Funktion 0",
                "Manufacturer": "INTEL",
                "Name": "PCI",
                "PhysicalName": "\\Device\\NTPNP_PCI0077"
            },
            {
                "CompatibleIDs": "USB\\COMPAT_VID_8087&Class_09&SubClass_00&Prot_00",
                "Description": "Generic USB Hub",
                "DeviceName": "",
                "Driver": "{36fc9e60-c465-11cf-8056-444553540000}\\0008",
                "Location": "Port_#0001.Hub_#0002",
                "Manufacturer": "(Generic USB Hub)",
                "Name": "USB",
                "PhysicalName": "\\Device\\USBPDO-5"
            }
        ],
        "valid": [
            "<b>USB Bandwidth: </b> OK"
        ]
    },
    "ZED SDK": {
        "CUDA Toolkit version": "V10.2.89 -->located in C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/bin/nvcc.exe",
        "CUDA loading": false,
        "CUDA_reachable": true,
        "ZED SDK Version (Diag)": "3.7.7",
        "ZED SDK Version (RT)": "3.7.7",
        "ai": {
            "checkAI": true,
            "cudaVersion": 10020,
            "cudnnCudartVersion": 10020,
            "cudnnVersion": 8204,
            "cudnnVersionExpected": 8204,
            "tensorVersion": 8200
        },
        "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": "441.22",
        "drivervDllVersion": "26.21.14.4122",
        "resourcesFiles": [
            "objects_performance_2.2.model"
        ],
        "resourcesFilesExpected": [
            "objects_performance_2.2"
        ],
        "runtimeDllVersion": 10020,
        "valid": [
            "<b>ZED SDK version:</b> 3.7.7",
            "<b>CUDA version:</b> V10.2.89"
        ]
    }
}

The Quadro K4200 is an old GPU card. The Kepler architecture is no more supported.

Thanks for the response. Does this only apply for the model optimization? Since the rest of the SDK seems to run fine with CUDA 10.2. And if its impossible to optimize the models on the K4200 is it possible to do that on another device and run the trained models on the K4200 device?

Yes, the AI module uses the latest available technologies.

Alright, thanks for the answer. Do you know which is the oldest architecture that is still supported?

We recommend using an RTX GPU card.
In any case, we support up to the Pascal architecture

Okay thank you for the support!