"Object Detection Using Deep Learning" toturial doesn't use GPU

조회 수: 9 (최근 30일)
Tico Laugs
Tico Laugs 2018년 12월 18일
댓글: Tico Laugs 2019년 1월 6일
I am trying to do the "Object Detection Using Deep Learning" toturial from Matlab.
When i get to the "Train CNN Using CIFAR-10 Data" chapter, it starts to train the CNN, to accelerate the training it uses my GPU (an Nvidia Quadro M2200) and it works fine.
In one of the next chapters "Train R-CNN Stop Sign Detector" i have to retrain the network using new data. For retraining you can also use the GPU to accelerate the process, however when i run the code to retrain it says that it uses my GPU but using the task manager 'preformance' tab (in Windows 10) i can clearly see it doesn't and it retrains only using the cpu (which takes a lot longer).
My question is, why doesn't it use my GPU and how can i change it to use my GPU?
ps. my GPU supports CUDA version 5.2.
  댓글 수: 2
Joss Knight
Joss Knight 2019년 1월 1일
편집: Joss Knight 2019년 1월 1일
I'm speculating, but R-CNN also does a lot of stuff on the CPU, processing candidate regions of interest. It's possible that you're expecting the GPU to be being used continuously while in fact the GPU computation of weight gradients is not the most compute-intensive part in terms of wall-clock time. What exactly are you looking at that makes you think the GPU isn't being used at all? Have you tried forcing training to happen on the CPU (using training option 'ExecutionEnvironment', 'cpu') to see whether there is any difference in training time?
Tico Laugs
Tico Laugs 2019년 1월 6일
Joss Knight thank you for the reply, i have tried focring the training on the CPU and it seems that doesn't make a difference. If it is the case that R-CNN does (almost) everything on the CPU then i don't understand why the toturial states that "a CUDA-capable NVIDIA™ GPU with compute capability 3.0 or higher is highly recommended for training".

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel and Cloud에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by