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