how I can use the CNN for texture synthesis?

2 Ansichten (letzte 30 Tage)
youb mr
youb mr am 4 Mär. 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);

Antworten (0)

Kategorien

Mehr zu Text Analytics Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by