Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.mathworks.toolbox.nnet.v6.diagram.nnTransfer.paint(nnTransfer.java:35) at com.mathworks.toolbox.nnet.v6.image.nnOffsetImage.paint(nnOffsetImage.java:49) at com.mathworks.toolbox.nnet.v6.image.nnLayerImage.paint(nnLayerImage.java:50) at com.mathworks.toolbox.nnet.v6.image.nnOffsetImage.paint(nnOffsetImage.java:49) at com.mathworks.toolbox.nnet.v6.image.nnLayerImage.paint(nnLayerImage.java:50) at com.mathworks.toolbox.nnet.v6.image.nnLayerImage.paint(nnLayerImage.java:50) at com.mathworks.toolbox.nnet.v6.image.nnBorderImage.paint(nnBorderImage.java:43) at com.mathworks.toolbox.nnet.v6.image.nnAlignImage.paint(nnAlignImage.java:43) at com.mathworks.toolbox.nnet.v6.image.nnFitImage.paint(nnFitImage.java:49) at com.mathworks.toolbox.nnet.v6.image.nnExpandImage.paint(nnExpandImage.java:55) at com.mathworks.toolbox.nnet.v6.gui.nnImage2JComponent.paint(nnImage2JComponent.java:47) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paintToOffscreen(Unknown Source) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) at javax.swing.RepaintManager$PaintManager.paint(Unknown Source) at javax.swing.RepaintManager.paint(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source) at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source) at sun.awt.SunGraphicsCallback.runComponents(Unknown Source) at java.awt.Container.paint(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
How can I use my own transfer function
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm using Matlab2008. There is file template_transfer.m and rename it : fungsiku.m. I write down my function in this file and put it in my working directory. But, I got the outputs and some messages like this
Exception in thread " AWT-EventQue...."
at javax. swing..
at java.awt
.. and the script didnt stop.
What should I do? Thank you.
댓글 수: 3
채택된 답변
sri
2013년 9월 23일
I had the same problem. It is because nntraintool. So I disappear nntraintool while training process using below code,
net.trainParam.showWindow=0;
It worked for me.
I think this will help u.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!