how I can use the CNN for texture synthesis?

조회 수: 2 (최근 30일)
youb mr
youb mr 2020년 3월 4일
hello every one i want to use the convolutional neural networks for texture synthesis
this is the code CNN for classification how can i used for the image synthesis please help
clear all
clc
A =imread('2.png');
layers = [imageInputLayer([size(A,1) size(A,2) 1]);
convolution2dLayer(1,25,'Padding',2);
reluLayer();
convolution2dLayer(1,50,'Padding',2);
reluLayer();
convolution2dLayer(1,100,'Padding',2);
reluLayer();
fullyConnectedLayer(2);
softmaxLayer();
classificationLayer()];
options = trainingOptions('sgdm',...
'InitialLearnRate',0.01,...
'MaxEpochs',200,...
'MiniBatchSize',64,...
'Plots','training-progress');
C =categorical([zeros(5,1);ones(5,1)]);
model = trainNetwork(A,layers,options);
result = predict(model,x);

답변 (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