How to use my own pretrained model to detect custom object after training

3 ビュー (過去 30 日間)
Ayoub THABIT
Ayoub THABIT 2020 年 10 月 19 日
回答済み: Kei Otsuka 2020 年 10 月 28 日
Well, i trained an SSD detector following the example
then i saved the detector using save(detector) and it got saved under the name 'detector.mat'
but when i try to use it again after shuting my laptop,
detector = load('detector.mat')
matlab doesn't recognize and it tells me it's either undefined or parameter wrong type. however i can use the matlab pretrained network that i downloaded
Please how can i use my own pretrained network?

回答 (1 件)

Kei Otsuka
Kei Otsuka 2020 年 10 月 28 日
save('detector') saves all variables from the current workspace. So, you need to extract detector from all variables after loading mat file like this;
vers = load('detector');
vers.detector
Or, please try to use following syntax to save only the detector instead.
save('detector.mat', 'detector')

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by