Can't load saved yoloV2 network in standalone Matlab app 2021a

1 回表示 (過去 30 日間)
Ilia Vitsnudel
Ilia Vitsnudel 2021 年 12 月 30 日
回答済み: Steven Lord 2021 年 12 月 30 日
Hello,
I have trained yoloV2 detector network and saved it (ver 2021a). I want to load it in a standalone Matlab app (generated in 2021a), but I am getting a warning and then error:
Warning: Variable 'detector' originally saved as a yolov2ObjectDetector cannot be instantiated as an object and will be read as a uint32
Error: Unrecognized function or variable 'detect'
I am able to load the network inside Matlab itself, but no in Matlab standalone app.
I am working in Matlab 2021a
When I was woring in 2020b everything was normal.
Thank you.

回答 (1 件)

Steven Lord
Steven Lord 2021 年 12 月 30 日
See the Tip in the "Fixing Callback Problems: Missing Functions" section of this documentation page. Use the %#function pragma to tell MATLAB to include the class definition yolov2ObjectDetector in your application.

カテゴリ

Help Center および File ExchangeImage and Video Ground Truth Labeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by