arrayfire / arrayfire/arrayfire-python

SIFT memory leak

Open
#169 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
422
Forks
63
PR merge metrics
No merged PRs in 30d

Description

It seems that the SIFT detection leaks memory. Here is the example script I am running.

```python
import arrayfire as af
import time

while True:
im = af.load_image('image.jpg')
feats, desc = af.vision.sift(im)

af.device.device_gc()
af.print_mem_info()
time.sleep(1)
```

I solved part of the leaks in #168. Apparently the features destructor wasn't called, and af_release_features needed to be called explicitly from python.

With this fix the ORB feature detection works without leaks, but SIFT and GLOH still do.

Running pretty much the same methods in C works without a memory leak. So I think there might be another destructor that ought to be called explicitly, just like af_release_features, but I could not figure out where the leak was originated from.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.