Blur mapping using semantic segmentation

Hello Everyone, I am working on a project that includes blur mapping and blur scoring. My task is to generate a map which is black colored only for the area that is blurred in the original image. I am using simple semantic segmentation process with 2 classes (blur and not blur). I am using Vggnet for semantic segmentation in MATLAB 2017b. This is the Code,
This is the error I am getting, Error using nnet.internal.cnn.util.TrainNetworkDataValidator/assertCorrectResponseSizeForOutputLayer (line 217) Invalid training data. The output size (2) of the last layer doesn't match the number of classes (2). Please help me debug this error!! Thanks.

답변 (1개)

kobe liang
kobe liang 2018년 4월 30일

0 개 추천

i had this problem,too,which i think link to conv1x1,but i still not found any solution.

질문:

2017년 12월 16일

답변:

2018년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by