czhaneva / MST-GCN

This is the official implemntation for "Multi-scale spatial temporal graph convolutional network for skeleton-based action recognition" AAAI-2021
MIT License
36 stars 7 forks source link

AttributeError: 'tuple' object has no attribute 'data' #5

Open zoeyhaiyan1 opened 1 year ago

zoeyhaiyan1 commented 1 year ago

跑到51个epoch报错 AttributeError: 'tuple' object has no attribute 'data' 是什么原因呢

czhaneva commented 1 year ago

把完整的日志贴一下

zoeyhaiyan1 commented 1 year ago

Traceback (most recent call last): File "main.py", line 621, in processor.start() File "main.py", line 562, in start loadername=['test']) File "main.py", line 491, in eval , predict_label = torch.max(output.data, 1) AttributeError: 'tuple' object has no attribute 'data' ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 244) of binary: /root/miniconda3/envs/MST-GCN/bin/python Traceback (most recent call last): File "/root/miniconda3/envs/MST-GCN/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/root/miniconda3/envs/MST-GCN/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/root/miniconda3/envs/MST-GCN/lib/python3.7/site-packages/torch/distributed/launch.py", line 193, in main() File "/root/miniconda3/envs/MST-GCN/lib/python3.7/site-packages/torch/distributed/launch.py", line 189, in main launch(args) File "/root/miniconda3/envs/MST-GCN/lib/python3.7/site-packages/torch/distributed/launch.py", line 174, in launch run(args) File "/root/miniconda3/envs/MST-GCN/lib/python3.7/site-packages/torch/distributed/run.py", line 718, in run )(*cmd_args) File "/root/miniconda3/envs/MST-GCN/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 131, in call return launch_agent(self._config, self._entrypoint, list(args)) File "/root/miniconda3/envs/MST-GCN/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 247, in launch_agent failures=result.failures, torch.distributed.elastic.multiprocessing.errors.ChildFailedError:

main.py FAILED

Failures:

------------------------------------------------------------