Skip to content

你好,我在训练的时候遇到了这个问题:错误使用 dlfeval函数,Error using dlfeval  #21

@MikeMegamind

Description

@MikeMegamind

我建立了自己的数据集进行训练,在训练的那部分,这个函数出现了问题:
I set up my own data set for training, and in the training part, this function has a problem:

[gradients,loss,state] = dlfeval(@modelGradients, model, XTrain, YTrain,yoloLayerNumber);

出错原因显示的是:
The error is shown here:

Error using dlfeval (line 43)
Size of predictions and target values arguments must match.

我单步调试之后发现问题出在 dlfeval函数的这里:
After I step through it, I found the problem is at the dlfeval function:

try
[varargout{1:nout}] = deep.internal.dlfeval(fun,varargin{:});
catch err
nnet.internal.cnn.util.rethrowDLExceptions(err);
end

这部分代码的[varargout{1:nout}] = deep.internal.dlfeval(fun,varargin{:})无法执行,导致报错。
但是我并不知道为什么出错,也不知道怎么解决。请帮帮我。
[varargout{1:nout}] = deep.internal.dlfeval(fun,varargin{:})unable to run, resulting in an error.
I don't know why it went wrong or how to solve it.Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions