darknet icon indicating copy to clipboard operation
darknet copied to clipboard

added OO python detector and venv setup file.

Open sarafalamaki opened this issue 4 years ago • 2 comments

sarafalamaki avatar May 18 '20 10:05 sarafalamaki

Seems memory isn't released (especially GPU) after deleting Detector instance.

danlapko avatar May 26 '20 14:05 danlapko

Seems memory isn't released (especially GPU) after deleting Detector instance.

Yeah, I just copied how the detector.py file worked, but turned it all into a class. In my case I use the object as a persistent object (I create 3 different detectors and use them until the program ends), so it's not an issue, but if you send me the references for the destructors, I'll create a clean-up function. I'd imagine that'd be useful if you have a thread pool or something.

sarafalamaki avatar May 28 '20 07:05 sarafalamaki