jetpacapp / DeepBeliefSDK

The SDK for Jetpac's iOS Deep Belief image recognition framework
Other
2.86k stars 437 forks source link

Memory Leak from jpcnn_create_network #29

Open billychasen opened 9 years ago

billychasen commented 9 years ago

I took SimpleExample and right after create_network, slept for 5 seconds and then called destroy_network. Here's the result http://i.imgur.com/GhCDGt6.png

It holds onto about 65mb of memory. Any way around this? Thanks

RomulanEyebrow commented 9 years ago

I'm also having this problem!

joeldrotleff commented 9 years ago

I am having this issue as well

joeldrotleff commented 9 years ago

After building from source the issue went away. I guess the compiled framework file is a bit out of date.

For anyone else having this issue: check the source folder, open up jpcnn.xcodeproj, build, and then in DerivedData there will be a DeepBelief.framework folder

foundry commented 8 years ago

(One year on from joeldrotleff )...i'm just dropping this note in case anyone is stuck: the memory leak is stil there.

Building source does fix it, but I was unable to build with the latest XCode (7.2) / baseSDK ios9.2 (well, perhaps if i had made additional tweaks - I didn't need to go that far).

XCode 6.4/ios8.4 buildsjpcnn.xcodeproj with no issues. You need to do this if you are planning to use the iOS framework, as that memory bug is too huge to ignore.