caffe icon indicating copy to clipboard operation
caffe copied to clipboard

GPU usage of new code

Open ShadowLau opened this issue 10 years ago • 4 comments

Hi, @weiliu89 Thanks for updating your code. I use your new code to train a model, but when the code comes to "testing net", the GPU usage almost double. Is that a bug? Thank you

ShadowLau avatar Nov 28 '16 06:11 ShadowLau

Hopefully, it means that the inference is much more efficient (i.e. less time spent on CPU part). I will update the models on VOC/COCO later. The provided script (ssd_pascal.py) should reach 77.* mAP on VOC07 test.

weiliu89 avatar Nov 28 '16 07:11 weiliu89

Hi, @weiliu89 Sorry to bother you again, but i have a problem. I only have one TitanX, and i use your new code to trian on my own dataset. In the training process, the GPU usage is 6835MiB, but when it comes to "testing net", the GPU usage is about 12000MiB, I only have 12189MiB memory, so it often gets a "out of memory" result. How can i modify that? Thank you

ShadowLau avatar Nov 28 '16 08:11 ShadowLau

Reduce the test_batch_size in the script.

weiliu89 avatar Nov 28 '16 20:11 weiliu89

@weiliu89 Thank you!

ShadowLau avatar Nov 30 '16 02:11 ShadowLau