添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
面冷心慈的马克杯  ·  Vue3 ...·  2 月前    · 
乐观的四季豆  ·  秦二世陵_百度百科·  3 月前    · 
风流倜傥的小笼包  ·  Python pytest ...·  3 月前    · 
Melvyn Smith' s comment originally posted as an answer moved here:
That much is apparent from the error code itself. However, this is MATLAB demonstration code (with the images downloaded by the code itself, so I assume they are OK) downloaded from the MATLAB website, here:
https://uk.mathworks.com/videos/using-feature-extraction-with-neural-networks-in-matlab-1492009542601.html
So, why the error?
I am relatively new to deep learning and in the process of deciding whether to use MATLAB for my deep learning needs. I had thought there would be lots of support for it but other than a few introductory videos on their website, there does not seem to be a lot.
I googled the demo you mentioned because no link was provided. It led to a file exchange by Math Works and someone else has recently left a comment on that page with the same error. Actually, there are quite a few errors listed in the comments.
I'm unfamiliar with the toolbox and we don't have much info here. If the demo is just meant to be run without any user inputs then the error may be due to an incompatible matlab release/version.
I hope this is not too late for your question. I just found the answer from this post
This works for me. There are two lines from the example code that need to correct. The first one is
trainingFeatures = activations(convnet, trainingSet, featureLayer,'OutputAs','rows');
The second one is
testFeatures = activations(convnet, testSet, featureLayer,'OutputAs','rows');
Yes, I see those comments also. That page does not seem to be a forum for getting help (lots of questions but no answers). Actually, there does not seem to be much help and guidance available generally for MATLAB and deep learning. I've only found a couple of books and nothing really good on-line. Maybe MATLB is not the way to go and something like Python or Java is better. I am trying to get into CNNs. I read several books and feel I know the underlying concepts. Unfortunately, the valley of death seems to be going from that to coding CNNs for one's own applications.

Community Treasure Hunt

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

Start Hunting!