how I can use the CNN for texture synthesis?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Image Data Workflows en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!