Closed chenglong521 closed 5 months ago
NW-UCLA跑的是这个数据集
这种是很简单的代码bug,希望大家以后遇到类似问题自己动手解决一下。你肯定用的是单卡,然后没有用nn.Parallel的话,就应该把model.module.num_class换成model.num_class。如果还有类似简单的代码问题请尽量自己去搜索学习和解决,谢谢。
Traceback (most recent call last):
File "/home/xxx/qcl/BlockGCN/main.py", line 796, in
For training on UCLA, please also refer to this issue
Traceback (most recent call last): File "/home/xxx/qcl/BlockGCN/main.py", line 796, in processor.start() File "/home/xxx/qcl/BlockGCN/main.py", line 726, in start self.train(epoch, save_model=save_model) File "/home/xxx/qcl/BlockGCN/main.py", line 503, in train output, z = self.model(data, F.one_hot(label, num_classes=self.model.module.num_class), joint) File "/home/xxx/zxl/anaconda3/envs/gcn/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1265, in getattr raise AttributeError("'{}' object has no attribute '{}'".format( AttributeError: 'Model' object has no attribute 'module'运行会报这个错