transfer learning using Pre-trained vgg-16
6 views (last 30 days)
Show older comments
How can I train my own CNN using the pre-trained imagenet-vgg-verydeep-16 network. I have tried to use the fully connected layer 'fc7' to train my network and I get the following error.
Undefined function or variable 'activations'. trainingFeatures = activations(convnet, trainingSet, featureLayer, ...
can anybody help please.
0 Comments
Answers (2)
mizuki
on 13 Aug 2017
The function "activations" is in Neural Network Toolbox. Do you see NNTB in your license? First check with the following command:
>> ver
Also, the path might not be set correctly. Please follow the below article.
4 Comments
mizuki
on 15 Aug 2017
NNTB appeared to the output of VER, which means NNTB is installed. I did not get what you have tried exactly. Did you type
>> which -all activations
and resulted in the error message " activations not found"? If so, that is fine since activations is a class, which is not usually searched with doc command.
The situation that AlexNet worked fine but VGG16 does not work sounds that your installation of VGG16 did not work well. How about the result of
>> which -all vgg16
Have you tried the following commands, which is on the page that I mentioned before?
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
Also, ACTIVATIONS is: - activations https://www.mathworks.com/help/releases/R2017a/nnet/ref/seriesnetwork.activations.html
See Also
Categories
Find more on Image Data Workflows in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!