how I can use the CNN for texture synthesis?

1 visualizzazione (ultimi 30 giorni)
youb mr
youb mr il 4 Mar 2020
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);

Risposte (0)

Categorie

Scopri di più su Text Analytics Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by