how do i convert this code to HDL using hdl coder?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
clc
clear all
warning off
imds = imageDatastore('E:\BACK UP\matlab','Includesubfolders',true,'Labelsource','foldernames')
[traindata,testdata] = splitEachLabel(imds, 0.7);
layers = [imageInputLayer([25, 25,3]);
convolution2dLayer(5,20)
reluLayer
maxPooling2dLayer(2,'Stride',2)
fullyConnectedLayer(2)
softmaxLayer
classificationLayer()];
options = trainingOptions('sgdm',...
'LearnRateSchedule', 'piecewise', ...
'LearnRateDropFactor', 0.2, ...
'LearnRateDropPeriod', 5, ...
'MaxEpoch',110,...
'MiniBatchSize', 100,...
'InitialLearnRate',0.0001,...
'Plots','training-progress');
[net,info] =trainNetwork(traindata,layers,options);
save net net;
hdlcfg.GenerateHDLTestBench = true;
0 Commenti
Risposte (1)
Vedere anche
Categorie
Scopri di più su HDL Coder 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!