필터 지우기
필터 지우기

GPU Code generation for 'vehicle detector yolov2' in matlab2020a

조회 수: 3 (최근 30일)
Nithin M
Nithin M 2020년 11월 12일
답변: Hariprasad Ravishankar 2020년 11월 30일
Hi,
I was trying to generate GPU cuda code for my program using matlab2020a. Am using detector 'vehicleDetectorYOLOv2()' for generating the vehicle detections and then using another neural network (network generated using 'patternnet') for color detection of detected vehicles.
is there any way I can generate GPU cuda code for vehicleDetectorYOLOv2() & neural network generated using patternnet using GPU coder?
I have found one link: https://in.mathworks.com/help/gpucoder/ug/code-generation-for-object-detection-using-YOLOv2.html. Could someone please suggest whether I should follow the same steps for 'vehicleDetectorYOLOv2()'?
Also any useful information regarding gpu code generation for 'neural network (network generated using 'patternnet')' also most welcome.
Am planning to use the generated CUDA code on a windows machine with installed NVIDIA GPU. any suggestions / adviceor usefull links on this?

답변 (1개)

Hariprasad Ravishankar
Hariprasad Ravishankar 2020년 11월 30일
Hi Nithin,
GPU Coder and MATLAB Coder support code generation for detect method of yolov2ObjectDetector in R2020a and therefore also supports the detector object returned by vehicleDetectorYOLOv2 function.
You can follow the steps in the example here to try it out.
The patternnet function however is not supported for code generation. To workaround this limitation, you can create and train a shallow MLP SeriesNetwork object consisting of fullyConnected layers using the trainNetwork function in Deep Learning Toolbox.
Here is an example.
You can then save the trained SeriesNetwork object into a MAT file and generate code for the predict method using MATLAB Coder and GPU Coder.
Here is an example you can follow for generating code for SeriesNetwork and DAGNetwork objects.
Please let me know if this helps.
Hari

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by