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)

2 次查看(过去 30 天)
无论什么神经网络模型的示例,只要运行到了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.

采纳的回答

Krishna
Krishna 2024-7-8
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 个评论
L
L 2024-7-9
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by