prabindh / darknet-cpp-windows

Visual studio project files for Darknet-cpp inference
35 stars 18 forks source link

Huge RAM usage #8

Closed lukaszkepka closed 6 years ago

lukaszkepka commented 6 years ago

Hello,

I have runned arapaho.exe with YOLOv3 configuration. Everything works perfectly, but after loading network process memory reaches up to 3,2 GB (!). Is that normal behaviour?

prabindh commented 6 years ago

What is the input image resolution, and what is the .cfg used ?

lukaszkepka commented 6 years ago

I'm using image resolution 416x416 and configuration from https://github.com/pjreddie/darknet/blob/master/cfg/yolov3-voc.cfg. To rectify, 3,2 GB appears in Visual Studio Diagnostic Tools. Without debugger attached process takes 1,5 GB RAM (value from task manager)

prabindh commented 6 years ago

I suspect the exe might be running within Visual Studio - can this be run independently (ex, from command line) and the memory checked again ?

lukaszkepka commented 6 years ago

When application is running as standalone, RAM usage is about 1,5 GB. Do you have similar results on your machine?

prabindh commented 6 years ago

Yes...BTW, the GPU usage is documented at (for yolov2) - https://github.com/prabindh/darknet/blob/master/arapaho/Arapaho-GPU-Z%20Sensor-Log.txt. The yolov3 usage is higher.

lukaszkepka commented 6 years ago

Ok, i have also checked newest implementation of YOLO3 in OpenCV. It also takes ~1,5 GB so i guess that everything is ok. Thanks for your help!