how I can use the CNN for texture synthesis?

2 vues (au cours des 30 derniers jours)
youb mr
youb mr le 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);

Réponses (0)

Catégories

En savoir plus sur Text Analytics Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by