airockchip / rknn_model_zoo

Apache License 2.0
1.05k stars 192 forks source link

rknn.inference爆内存 #162

Closed xuzhongming closed 3 months ago

xuzhongming commented 3 months ago

[问题描述] 用rknn_executor.py中的类RKNN_model_containner声明一个对象后,如果长时间多次调用类方法run()会使得内存慢慢增长,最终导致内存泄漏

[程序示例] model = RKNN_model_containner( model_path, 'rk3588', None ) while True: outputs = model.run( input_data ) # 这一行