how do i convert this code to HDL using hdl coder?

8 Ansichten (letzte 30 Tage)
Ahmad Abulfathi
Ahmad Abulfathi am 29 Dez. 2022
Beantwortet: Kiran Kintali am 29 Dez. 2022
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;

Antworten (1)

Kiran Kintali
Kiran Kintali am 29 Dez. 2022
You can follow these examples in Deep Learning HDL Toolbox.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by