Effacer les filtres
Effacer les filtres

errors: Point Cloud Classification Using PointNet Deep Learning

39 vues (au cours des 30 derniers jours)
lu xu
lu xu le 7 Août 2024 à 2:30
Réponse apportée : Samay Sagar le 23 Août 2024 à 10:19
'modelGradients' :
Generate Synthetic Signals Using Conditional GAN
Model-Based Reinforcement Learning Using Custom Training Loop
error: deep.internal.dlfeval (Line 17)
[varargout{1:nargout}] = fun(x{:});
error: deep.internal.dlfevalWithNestingCheck (Line 19)
[varargout{1:nargout}] = deep.internal.dlfeval(fun,varargin{:});
error: dlfeval (Line 31)
[varargout{1:nargout}] = deep.internal.dlfevalWithNestingCheck(fun,varargin{:});
error:
[gradients, loss, state, acc] = dlfeval(@modelGradients,XTrain,YTrain,parameters,state);
  1 commentaire
Walter Roberson
Walter Roberson le 7 Août 2024 à 5:12
I would expect the error message to indicate what exactly MATLAB thinks is going wrong.
You are probably going to need to
dbstop if error
and run the code.

Connectez-vous pour commenter.

Réponses (1)

Samay Sagar
Samay Sagar le 23 Août 2024 à 10:19
Hi Lu,
I see that you are encountering the above error while running the example “Generate Synthetic Signals Using Conditional GAN“ available in the MathWorks documentation.
You can open the example files by executing the following command in the MATLAB command window:
openExample('deeplearning_shared/GenerateSyntheticPumpSignalsUsingCGANExample')
The “modelGradient” function expects these arguments: dlnetGenerator, dlnetDiscriminator, dlX, dlT, dlZ
You can check the implementation of the same by executing the following command in the MATLAB command window:
openExample('deeplearning_shared/GenerateSyntheticPumpSignalsUsingCGANExample','supportingFile','modelGradients.m')
When you execute the code blocks under the “Train model” section, you can execute the following command to use the “modelGradient” function:
dlfeval(@modelGradients, dlnetGenerator, dlnetDiscriminator, dlXGeneratedNew, dlTNew, dlZNew)
Make sure that the variables have been evaluated before executing the above function.Hope this helps!
Hope this helps!

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by