Can I use cpu instead of gpu for the DeepLearningImageClassificationExample.m
Mostrar comentarios más antiguos
I was running the "DeepLearningImageClassificationExample.m" example but this failed because of unsupported GPU. I did see that this example requires a "CUDA-capable GPU card" but is there a manner to to use the parameters ['ExecutionEnvironment','cpu'] in the "activation" function, and use the CPU instead?
Respuestas (1)
Joss Knight
el 31 de Mayo de 2017
0 votos
2 comentarios
Fuad Noman
el 17 de Abr. de 2020
How?
Walter Roberson
el 17 de Abr. de 2020
On line 68 change
trainingFeatures = activations(net, augmentedTrainingSet, featureLayer, ...
'MiniBatchSize', 32, 'OutputAs', 'columns');
to
trainingFeatures = activations(net, augmentedTrainingSet, featureLayer, ...
'MiniBatchSize', 32, 'OutputAs', 'columns', 'ExecutionEnvironment', 'cpu');
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!