darknet
darknet copied to clipboard
added OO python detector and venv setup file.
Seems memory isn't released (especially GPU) after deleting Detector instance.
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.