There are 5 pre-trained models for each split (xub vs. xview) on NTU60: ntu60_xsub_spatial.pt, ntu60_xsub_temporal.pt, ntu60_xsub_bones_spatial.pt, ntu60_xsub_bones_temporal.pt and ntu60_xsub_bones_temporal-agcn.pt. I was able to successfully test the first 4 by editing the configs in train.yaml, but cannot figure out the last one with AGCN. My configs are listed as follows (compared to ntu60_xsub_bones_temporal.pt the only thing I changed was agcn: True):
Here is the command I ran: python main.py --config config/st_gcn/nturgbd/train.yaml --phase test --weights ../checkpoint_ST-TR/ntu60_xsub_bones_temporal-agcn.pt
And here is the traceback of error messages:
Traceback (most recent call last):
File "main.py", line 966, in <module>
processor = Processor(arg)
File "main.py", line 234, in __init__
self.load_model()
File "main.py", line 354, in load_model
self.model.load_state_dict(state)
File "/localhome/local-thtang/anaconda3/envs/st-tr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1406, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Model:
size mismatch for fcn.weight: copying a param with shape torch.Size([120, 512, 1]) from checkpoint, the shape in current model is torch.Size([60, 512, 1]).
size mismatch for fcn.bias: copying a param with shape torch.Size([120]) from checkpoint, the shape in current model is torch.Size([60]).
There are 5 pre-trained models for each split (
xub
vs.xview
) on NTU60:ntu60_xsub_spatial.pt
,ntu60_xsub_temporal.pt
,ntu60_xsub_bones_spatial.pt
,ntu60_xsub_bones_temporal.pt
andntu60_xsub_bones_temporal-agcn.pt
. I was able to successfully test the first 4 by editing the configs intrain.yaml
, but cannot figure out the last one with AGCN. My configs are listed as follows (compared tontu60_xsub_bones_temporal.pt
the only thing I changed wasagcn: True
):Here is the command I ran:
python main.py --config config/st_gcn/nturgbd/train.yaml --phase test --weights ../checkpoint_ST-TR/ntu60_xsub_bones_temporal-agcn.pt
And here is the traceback of error messages: