필터 지우기
필터 지우기

How can I use a trained CNN to predict a new image label?

조회 수: 6 (최근 30일)
abich
abich 2017년 5월 16일
댓글: Kristian Dubrie 2019년 4월 10일
I was applying the following CNN fine-tuning example : https://www.mathworks.com/help/nnet/examples/transfer-learning-and-fine-tuning-of-convolutional-neural-networks.html
The example shows how to fine-tune a pre-trained CNN on letters to classify images of digits. Now i would like to use this new fine-tuned CNN on new images of digits that i have on my computer. How can I do that?
  댓글 수: 2
Gergely Szépvölgyi
Gergely Szépvölgyi 2017년 9월 24일
Has there been a solution to this since may? I'm facing the exact same problem here.
Kristian Dubrie
Kristian Dubrie 2019년 4월 10일
Any help here?

댓글을 달려면 로그인하십시오.

채택된 답변

Cam Salzberger
Cam Salzberger 2017년 5월 16일
Hello Abich,
The example you linked shows how to train on a new set of images. I am not a neural networks expert, but if the output you are looking for is the same as the output from the retrained network (digits 0-9), I do not even think you need to replace the final three layers of the network. You can just create the image datastore for your new images, set any options you would like with "trainingOptions", and then call "trainNetwork".
Did you have some specific questions about a particular step?
-Cam
  댓글 수: 7
abich
abich 2017년 5월 19일
Thank you very much.
An Grg
An Grg 2018년 4월 16일
편집: An Grg 2018년 4월 16일
I just wanted to know did it work the classifier? I am having a problem trying to output the probability/predict the testing image.
Thanks and would appreciate reply.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by