"Object Detection Using Deep Learning" toturial doesn't use GPU
9 次查看(过去 30 天)
显示 更早的评论
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
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?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel and Cloud 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!