GPU Coder won't accept ACF Object Detector model

조회 수: 1 (최근 30일)
John Rahman
John Rahman 2022년 1월 6일
답변: John Rahman 2022년 1월 10일
We have a need to identify specific objects in binary (BW) images. I successfuly trained an ACF Object Detector model to run on CPU hardware, but we need this code to run on a GPU based system. However the MATLAB GPU Coder rejected the ACF Object Detector model with this error message:
Error determining type for input '<detector-name>: detector'.
Class acfObjectDetector is not supported by coder.Type as it is a handle class.
Does the GPU Coder accept any of the MATLAB image detection/analysis tools like YOLO or CNN?

채택된 답변

Pratyush Roy
Pratyush Roy 2022년 1월 10일
Hi John,
Currently we are not supporting the feature for Code Generation for the ACF Detector Function. The error shows up since handle class objects are not supported as input or output from mex files.
As a workaround, you can convert the object into a struct and use the toStruct function to pass the acfObjectDetector object into generated code. Please refer to this link for more information.
For generating code for object detection using YOLOv2, one can refer to this link.
Hope this helps!

추가 답변 (1개)

John Rahman
John Rahman 2022년 1월 10일
Thanks for your reply.
This helps a lot.

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by