Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with modelGradients #19

Open
Hind-colla opened this issue May 4, 2021 · 1 comment
Open

Problem with modelGradients #19

Hind-colla opened this issue May 4, 2021 · 1 comment

Comments

@Hind-colla
Copy link

Hello guys, when i run this lines:
for numEpoch = 1:nEpochs
reset(preprocessedTrainingData);% Reset datastore.
iteration = 0;
while hasdata(preprocessedTrainingData)
t_start = tic;
% Custom training loop.
% Read batch of data and create batch of images and
% ground truths.
outDataTable = read(preprocessedTrainingData);
XTrain = outDataTable{1,1}{1};
YTrain = outDataTable{1,2}{1};
if isempty(YTrain)
continue;
end

    % Convert mini-batch of data to dlarray.
    XTrain = dlarray(single(XTrain),'SSCB');

% Evaluate the model gradients and loss using dlfeval and the
% modelGradients function.
[gradients,boxLoss,objLoss,clsLoss,totalLoss,state] = dlfeval(@modelGradients, model, XTrain, YTrain,yoloLayerNumber);

I get this error and i don't know what to do to fix it:
'modelGradients' is used in Generate Synthetic Signals Using Conditional Generative Adversarial Network.

Error in deep.internal.dlfeval (line 18)
[varargout{1:nout}] = fun(x{:});

Error in dlfeval (line 41)
[varargout{1:nout}] = deep.internal.dlfeval(fun,varargin{:});

Error in nouveux (line 94)
[gradients,boxLoss,objLoss,clsLoss,totalLoss,state] = dlfeval(@modelGradients, model, XTrain,
YTrain,yoloLayerNumber);

@MikeMegamind
Copy link

Hello, I got the same problem. Have you fixed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants