Open sczxy1 opened 3 months ago
Traceback (most recent call last): File "D:\deeptrack\DCPT\lib\train../..\lib\train\trainers\base_trainer.py", line 85, in train self.train_epoch() File "D:\deeptrack\DCPT\lib\train../..\lib\train\trainers\ltr_trainer.py", line 136, in train_epoch self.cycle_dataset(loader) File "D:\deeptrack\DCPT\lib\train../..\lib\train\trainers\ltr_trainer.py", line 73, in cycle_dataset self.actor.fix_bns() File "D:\deeptrack\DCPT\lib\train../..\lib\train\actors\DCPT.py", line 39, in fix_bns net = self.net.module File "D:\Software\anaconda3\envs\Pytorch_py39\lib\site-packages\torch\nn\modules\module.py", line 1269, in getattr raise AttributeError("'{}' object has no attribute '{}'".format( AttributeError: 'DCPT' object has no attribute 'module'
你好,我也遇到这个问题了,请问你解决了吗
Hello! Thanks for reaching out. If you're using a single GPU for training, you can modify the code to net = self.net. However, if you use multiple GPU for training, you do not need to make this change.
Hello! Thanks for reaching out. If you're using a single GPU for training, you can modify the code to net = self.net. However, if you use multiple GPU for training, you do not need to make this change.
Thanks!!!
Traceback (most recent call last): File "D:\deeptrack\DCPT\lib\train../..\lib\train\trainers\base_trainer.py", line 85, in train self.train_epoch() File "D:\deeptrack\DCPT\lib\train../..\lib\train\trainers\ltr_trainer.py", line 136, in train_epoch self.cycle_dataset(loader) File "D:\deeptrack\DCPT\lib\train../..\lib\train\trainers\ltr_trainer.py", line 73, in cycle_dataset self.actor.fix_bns() File "D:\deeptrack\DCPT\lib\train../..\lib\train\actors\DCPT.py", line 39, in fix_bns net = self.net.module File "D:\Software\anaconda3\envs\Pytorch_py39\lib\site-packages\torch\nn\modules\module.py", line 1269, in getattr raise AttributeError("'{}' object has no attribute '{}'".format( AttributeError: 'DCPT' object has no attribute 'module'