# How can I use SVO files for neural network batch loading? (Memory Leak)

**URL:** <https://community.stereolabs.com/t/how-can-i-use-svo-files-for-neural-network-batch-loading-memory-leak/2133>\
**Category:** Python\
**Tags:** svo, python\
**Created:** [February 16, 2023, 5:02am UTC](https://community.stereolabs.com/t/how-can-i-use-svo-files-for-neural-network-batch-loading-memory-leak/2133 "2023-02-16T05:02:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khazataky](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/k/a3d4f5/32.png) [@Khazataky](https://community.stereolabs.com/u/Khazataky)\
**Post date:** [February 16, 2023, 5:02am UTC](https://community.stereolabs.com/t/how-can-i-use-svo-files-for-neural-network-batch-loading-memory-leak/2133/1 "2023-02-16T05:02:33Z")

</div>

I’m saving data in the form of SVO files, and would like to load multiple SVO files to get batches of this data to train a neural network.

However, when I do this I get a memory leak that eventually (rather quickly) causes my program to crash.

Has anyone encountered this issue before / does anyone have a solution?

The memory leak seems to be discussed here and have been around for a while: [Memory leak in SVO reader · Issue #111 · stereolabs/zed-python-api · GitHub](https://github.com/stereolabs/zed-python-api/issues/111)

I am using the most recent SDK which claims to have solved the SVO memory leak.

---

<div class="post-metadata">

**Author:** ![alassagne](https://community.stereolabs.com/user_avatar/community.stereolabs.com/alassagne/32/2428_2.png) [@alassagne](https://community.stereolabs.com/u/alassagne)\
**Post date:** [February 16, 2023, 8:44pm UTC](https://community.stereolabs.com/t/how-can-i-use-svo-files-for-neural-network-batch-loading-memory-leak/2133/2 "2023-02-16T20:44:15Z")

</div>

Hi, this post a a duplicate from here : [Memory Leak In SVO Reading · Issue #534 · stereolabs/zed-examples · GitHub](https://github.com/stereolabs/zed-examples/issues/534)

Since the thread is older on GitHub and has people working on it, I’ll let you continue your conversion there.

Antoine
