Traceback (most recent call last): File "D:\PythonProject\L1\train.py", line 193, in <module> train_fusion() File "D:\PythonProject\L1\train.py", line 129, in train_fusion logits = fusionmodel(image_vis_ycrcb, image_ir) File "D:\Anaconda3\envs\seafusion\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl result = self.forward(*input, **kwargs) File "D:\PythonProject\L1\FusionNet.py", line 148, in forward x_vis_p1 = self.vis_rgbd1(x_vis_p) File "D:\Anaconda3\envs\seafusion\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl result = self.forward(*input, **kwargs) File "D:\PythonProject\L1\FusionNet.py", line 116, in forward x2 = self.laplacian(x) File "D:\Anaconda3\envs\seafusion\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl result = self.forward(*input, **kwargs) File "D:\Anaconda3\envs\seafusion\lib\site-packages\torch\nn\modules\module.py", line 175, in _forward_unimplemented raise NotImplementedError NotImplementedError
时间: 2023-07-04 15:29:47 浏览: 131
浅谈Python traceback的优雅处理
这是一个 Python 的错误追踪信息,看起来是在训练神经网络时出现了错误。具体来说,在 FusionNet.py 文件的第 148 行,使用了一个名为 vis_rgbd1 的方法,但该方法在使用时出错。在该方法内部,还调用了另一个名为 laplacian 的方法,但该方法也出错了。需要进一步检查代码并修复这些问题。
阅读全文