Clear Filters
Clear Filters

matlab运行这行net =trainNetw​ork(p_trai​n,t_train,​layers,opt​ions)就闪退(m​atlab runs this line net =trainNetw​ork(p_trai​n,t_train,​layers,opt​ions) and flashes back)

1 view (last 30 days)
无论什么神经网络模型的示例,只要运行到了net =trainNetwork(p_train,t_train,layers,options)这行就闪退是怎么回事,没有任何报错提示就退出了
No matter what neural network model example, as soon as I run the line net =trainNetwork(p_train,t_train,layers,options), it flashes back, and exits without any error message.

Accepted Answer

Krishna
Krishna on 8 Jul 2024
Hi,
Based on the information you provided, it appears that MATLAB crashes when you use the 'trainNetwork' function. Please check out this MATLAB answer to see if it can help:
Also try the 'trainnet' function once, which is an alternative to 'trainNetwork' and see if the same thing is happening. For more information please look at the following documentation,
Please provide more details regarding the data, layers, and options you have selected for neural network training to receive better assistance. Additionally, refer to the following MATLAB answer to learn more about how to ask questions effectively in MATLAB Answers,
Hope this helps.
  1 Comment
L
L on 9 Jul 2024
Thank you very much for your answer. This may be due to a bug in the MATLAB program I installed. I tried to temporarily disable the GPU, and the line net=trainNetwork (p-train, t-train, layers, options) ran smoothly. However, when it reached this line, t-sim1=predict (net, p-train), it crashed again. The same code can run smoothly on another computer

Sign in to comment.

More Answers (0)

Categories

Find more on Image Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!