# ZED 2i Docker Issue: Optimized Neural Weights Not Found After Running ZED\_Diagnostic

**URL:** <https://community.stereolabs.com/t/zed-2i-docker-issue-optimized-neural-weights-not-found-after-running-zed-diagnostic/11503>\
**Category:** Docker\
**Tags:** zed-sdk\
**Created:** [July 2, 2026, 3:20pm UTC](https://community.stereolabs.com/t/zed-2i-docker-issue-optimized-neural-weights-not-found-after-running-zed-diagnostic/11503 "2026-07-02T15:20:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoyBoy-IA](https://community.stereolabs.com/user_avatar/community.stereolabs.com/joyboy-ia/32/6374_2.png) [@JoyBoy-IA](https://community.stereolabs.com/u/JoyBoy-IA)\
**Post date:** [July 2, 2026, 3:20pm UTC](https://community.stereolabs.com/t/zed-2i-docker-issue-optimized-neural-weights-not-found-after-running-zed-diagnostic/11503/1 "2026-07-02T15:20:07Z")

</div>

Dear [Stereolabs](https://www.stereolabs.com/) Team,

Hi, we are experiencing an issue while using the ZED 2i camera, and we would like to share it in this forum.

When we build the Docker image, we run the following command:

`ZED_Diagnostic -nrlo`

It seems to work correctly and optimizes the neural weights as expected. However, the problem appears when we try to use the camera afterward. The library output indicates that it cannot find the optimized weights, so it starts the optimization process again.

Could you please help us understand why the optimized weights are not being detected after running `ZED_Diagnostic -nrlo` in the Dockerfile?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [July 2, 2026, 7:23pm UTC](https://community.stereolabs.com/t/zed-2i-docker-issue-optimized-neural-weights-not-found-after-running-zed-diagnostic/11503/2 "2026-07-02T19:23:00Z")

</div>

Hi @JoyBoy-IA  
Welcome to the [StereoLabs](https://www.stereolabs.com/) community… I love your avatar image 🙂

> [@JoyBoy-IA](#):
>
> It seems to work correctly and optimizes the neural weights as expected. However, the problem appears when we try to use the camera afterward. The library output indicates that it cannot find the optimized weights, so it starts the optimization process again.

When the Docker image is restarted, the optimized models are deleted, so a new download and optimization are required. You must add a shared volume as described here:

> **[Volumes - Creating a Docker Image for your ZED Application | StereoLabs](https://docs.stereolabs.com/docs/integrations/docker/create-docker-images#volumes)**
>
> This is the recommended workflow for creating your own Docker image for your application:
