max icon indicating copy to clipboard operation
max copied to clipboard

[BUG]: Memory leak when run Yolo example

Open Shamaseen-iotistic opened this issue 1 year ago • 1 comments

Bug description

I ran the YOLO example from "max/examples/inference/yolo-python-onnx" and it worked well. However, I noticed that memory usage kept increasing until the device crashed.

To diagnose the issue, I used Memray to trace the program. My findings suggest that the memory leak originates from the api.py file.

edit

how to solve it ?

System information

AMD® Ryzen threadripper 2990wx 32-core processor × 64
Ubuntu 22.04.5 LTS
magic 0.3.0
mojo 24.5.0 (e8aacb95)
max 24.5.0 (e8aacb95)
Modular version 24.5.0

Shamaseen-iotistic avatar Sep 26 '24 11:09 Shamaseen-iotistic