Memory Leak importing ONNX?

When I import a new ONNX model. The RAM usage goes up quite a lot (several GB). So then I close Unity and open it again and the RAM goes down. (The onnx file was about 500MB)

1 Like

Thank you for flagging this, we’ll investigate.

Doesn’t that make sense depending on how many weights you have in your model? Do you also reuse your tensors for input and output or are you creating new ones each time?

This is just dragging the ONNX file into the editor. Not using it.

Hey guys, just wanted to let you know that we are working on a fix for this. Stay tuned.

Hey everyone, we shipped an update today to address the RAM at import time. Let us know if you see any improvement.