AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.65k stars 7.96k forks source link

How to release GPU memory after detection? #8521

Open ChenCong7375 opened 2 years ago

ChenCong7375 commented 2 years ago

I use darknet_image.py for detection like from darknet_image import darknet_detect

but through multi-times detection the gpu memory increases,I think the darknet exe has been loaded for several times. So,what should I do in my .py file to fix it?

1027663760 commented 2 years ago

can do