Effacer les filtres
Effacer les filtres

error while training the network

1 vue (au cours des 30 derniers jours)
HARI S
HARI S le 15 Mar 2022
Modifié(e) : Simar le 25 Jan 2024
Warning: Error occurred while executing the listener callback for event GuiEvent defined for class appdesservices.internal.peermodel.PeerNodeProxyView:
Unrecognized field name "ContentAreaPosition".
Error in matlab.ui.container.internal.controller.GridLayoutController/handleEvent (line 66)
obj.Model.setContentSizeFromClient(event.Data.ContentAreaPosition);
Error in appdesservices.internal.interfaces.controller.AbstractController/handleProxyViewEvent (line 279)
handleEvent(obj, src, event);
Error in appdesservices.internal.interfaces.controller.AbstractController>@(src,event)handleProxyViewEvent(obj,src,event) (line 207)
@(src,event) handleProxyViewEvent(obj, src, event));
Error in appdesservices.internal.interfaces.view.AbstractProxyView/notify (line 117)
obj.notify@handle(varargin{:});
Error in appdesservices.internal.peermodel.PeerNodeProxyView/handlePeerEventFromClient (line 299)
notify(obj, 'GuiEvent', eventData);
Error in appdesservices.internal.peermodel.PeerNodeProxyView>@(varargin)obj.handlePeerEventFromClient(varargin{:}) (line 81)
obj.PeerEventListener = addlistener(obj.PeerNode, 'peerEvent', @obj.handlePeerEventFromClient);
Error in viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line
105
)
proxyCallback = @(src, event)callback(src, ...
Error in nnet.internal.cnn.ui.UIFigureTrainingPlotView/hidePreprocessingDisplay (line 188)
drawnow();
Error in nnet.internal.cnn.ui.TrainingPlotPresenterWithDialog/showTrainingStage (line 105)
this.TrainingPlotView.hidePreprocessingDisplay();
Error in nnet.internal.cnn.ui.CLITrainingPlotter/showTrainingStage (line 54)
this.TrainingPlotPresenter.showTrainingStage(trainingStartDate);
Error in nnet.internal.cnn.util.TrainingPlotReporter/start (line 46)
this.TrainingPlotter.showTrainingStage(this.TrainingStartTime);
Error in nnet.internal.cnn.util.VectorReporter/computeAndReport (line 68)
feval( method, this.Reporters{i}, varargin{:} );
Error in nnet.internal.cnn.util.VectorReporter/start (line 16)
computeAndReport( this, 'start' );
Error in nnet.internal.cnn.Trainer/train (line 109)
reporter.start();
Error in nnet.internal.cnn.trainNetwork.doTrainNetwork (line 113)
trainedNet = trainer.train(trainedNet, trainingDispatcher);
Error in trainNetwork (line 182)
[trainedNet, info] = nnet.internal.cnn.trainNetwork.doTrainNetwork(factory,varargin{:});
Error in testuntitled (line 58)
AlexNet = trainNetwork(trainDs,layers,options);
Warning: Error occurred while executing the listener callback for event GuiEvent defined for class appdesservices.internal.peermodel.PeerNodeProxyView:
Unrecognized field name "ContentAreaPosition".
Error in matlab.ui.container.internal.controller.GridLayoutController/handleEvent (line 66)
obj.Model.setContentSizeFromClient(event.Data.ContentAreaPosition);
Error in appdesservices.internal.interfaces.controller.AbstractController/handleProxyViewEvent (line 279)
handleEvent(obj, src, event);
Error in appdesservices.internal.interfaces.controller.AbstractController>@(src,event)handleProxyViewEvent(obj,src,event) (line 207)
@(src,event) handleProxyViewEvent(obj, src, event));
Error in appdesservices.internal.interfaces.view.AbstractProxyView/notify (line 117)
obj.notify@handle(varargin{:});
Error in appdesservices.internal.peermodel.PeerNodeProxyView/handlePeerEventFromClient (line 299)
notify(obj, 'GuiEvent', eventData);
Error in appdesservices.internal.peermodel.PeerNodeProxyView>@(varargin)obj.handlePeerEventFromClient(varargin{:}) (line 81)
obj.PeerEventListener = addlistener(obj.PeerNode, 'peerEvent', @obj.handlePeerEventFromClient);
Error in viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line
105
)
proxyCallback = @(src, event)callback(src, ...
Error in nnet.internal.cnn.ui.UIFigureTrainingPlotView/hidePreprocessingDisplay (line 188)
drawnow();
Error in nnet.internal.cnn.ui.TrainingPlotPresenterWithDialog/showTrainingStage (line 105)
this.TrainingPlotView.hidePreprocessingDisplay();
Error in nnet.internal.cnn.ui.CLITrainingPlotter/showTrainingStage (line 54)
this.TrainingPlotPresenter.showTrainingStage(trainingStartDate);
Error in nnet.internal.cnn.util.TrainingPlotReporter/start (line 46)
this.TrainingPlotter.showTrainingStage(this.TrainingStartTime);
Error in nnet.internal.cnn.util.VectorReporter/computeAndReport (line 68)
feval( method, this.Reporters{i}, varargin{:} );
Error in nnet.internal.cnn.util.VectorReporter/start (line 16)
computeAndReport( this, 'start' );
Error in nnet.internal.cnn.Trainer/train (line 109)
reporter.start();
Error in nnet.internal.cnn.trainNetwork.doTrainNetwork (line 113)
trainedNet = trainer.train(trainedNet, trainingDispatcher);
Error in trainNetwork (line 182)
[trainedNet, info] = nnet.internal.cnn.trainNetwork.doTrainNetwork(factory,varargin{:});
Error in testuntitled (line 58)
AlexNet = trainNetwork(trainDs,layers,options);
Warning: Error occurred while executing the listener callback for event GuiEvent defined for class appdesservices.internal.peermodel.PeerNodeProxyView:
Unrecognized field name "ContentAreaPosition".
Error in matlab.ui.container.internal.controller.GridLayoutController/handleEvent (line 66)
obj.Model.setContentSizeFromClient(event.Data.ContentAreaPosition);
Error in appdesservices.internal.interfaces.controller.AbstractController/handleProxyViewEvent (line 279)
handleEvent(obj, src, event);
Error in appdesservices.internal.interfaces.controller.AbstractController>@(src,event)handleProxyViewEvent(obj,src,event) (line 207)
@(src,event) handleProxyViewEvent(obj, src, event));
Error in appdesservices.internal.interfaces.view.AbstractProxyView/notify (line 117)
obj.notify@handle(varargin{:});
Error in appdesservices.internal.peermodel.PeerNodeProxyView/handlePeerEventFromClient (line 299)
notify(obj, 'GuiEvent', eventData);
Error in appdesservices.internal.peermodel.PeerNodeProxyView>@(varargin)obj.handlePeerEventFromClient(varargin{:}) (line 81)
obj.PeerEventListener = addlistener(obj.PeerNode, 'peerEvent', @obj.handlePeerEventFromClient);
Error in viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line 105)
proxyCallback = @(src, event)callback(src, ...
Error in nnet.internal.cnn.ui.UIFigureTrainingPlotView/hidePreprocessingDisplay (line 188)
drawnow();
Error in nnet.internal.cnn.ui.TrainingPlotPresenterWithDialog/showTrainingStage (line 105)
this.TrainingPlotView.hidePreprocessingDisplay();
Error in nnet.internal.cnn.ui.CLITrainingPlotter/showTrainingStage (line 54)
this.TrainingPlotPresenter.showTrainingStage(trainingStartDate);
Error in nnet.internal.cnn.util.TrainingPlotReporter/start (line 46)
this.TrainingPlotter.showTrainingStage(this.TrainingStartTime);
Error in nnet.internal.cnn.util.VectorReporter/computeAndReport (line 68)
feval( method, this.Reporters{i}, varargin{:} );
Error in nnet.internal.cnn.util.VectorReporter/start (line 16)
computeAndReport( this, 'start' );
Error in nnet.internal.cnn.Trainer/train (line 109)
reporter.start();
Error in nnet.internal.cnn.trainNetwork.doTrainNetwork (line 113)
trainedNet = trainer.train(trainedNet, trainingDispatcher);
Error in trainNetwork (line 182)
[trainedNet, info] = nnet.internal.cnn.trainNetwork.doTrainNetwork(factory,varargin{:});
Error in testuntitled (line 58)
AlexNet = trainNetwork(trainDs,layers,options);

Réponses (1)

Simar
Simar le 24 Jan 2024
Modifié(e) : Simar le 25 Jan 2024
Hi Hari,
I understand that you are facing issues during the neural network training process. The error message provided indicates that there is an issue with handling a GUI event in the MATLAB environment, specifically related to a GridLayoutController. The error message points to an unrecognized field name ContentAreaPosition, which suggests that the code is trying to access a property or field that does not exist in the specified context.
This kind of error could be due to custom user interface code that is not correctly handling properties of layout objects.
Here are some steps to troubleshoot and resolve this issue:
  • Review Custom UI Code: If written custom UI code, review it to ensure that it is correctly using the properties of the layout objects. For example, make sure that ContentAreaPosition is a valid field for the object one is accessing.
  • Isolate the Issue: Try to isolate the part of the code that triggers the error. This can be done by commenting out parts of the code or creating a minimal example that still produces the error.
As a workaround, try to temporarily disable the part of the code that is causing the error, if it is not critical to the main functionality one requires, and see if the rest of the application works as expected. However, this is not a long-term solution and should only be used to bypass the issue temporarily while working on a proper fix.
Please refer to the following MATLAB Documentation links for the correct usage of the layout properties and event handling and make sure that the code follows the guidelines provided in the documentation.
  • https://www.mathworks.com/help/matlab/ref/matlab.ui.container.gridlayout-properties.html?searchHighlight=layout%20properties&s_tid=srchtitle_support_results_2_layout%20properties
  • https://www.mathworks.com/help/deeplearning/ref/trainnetwork.html?searchHighlight=TRAINNETWORK&s_tid=srchtitle_support_results_1_TRAINNETWORK
Hope it helps!
Best regards,
Simar

Catégories

En savoir plus sur Get Started with GPU Coder dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by