JacobYuan7 / DIN-Group-Activity-Recognition-Benchmark

[ICCV 2021] A new codebase containing various methods for Group Activity Recognition. Paper title: Spatio-Temporal Dynamic Inference Network for Group Activity Recognition.
MIT License
53 stars 15 forks source link

Cannot run DIN collective dynamic #18

Closed Nicolas99-9 closed 1 year ago

Nicolas99-9 commented 1 year ago

Hello @JacobYuan7

I could train the first stage of the collective model. However, I ran into an error when running the stage 2 (collective model). (I did not edit the config files)

Traceback (most recent call last):

 File "/home/nicolas/other/DIN-Group-Activity-Recognition-Benchmark/scripts/train_collective_stage2_dynamic.py", line 58, in <module>
    train_net(cfg)
  File "/home/nicolas/other/DIN-Group-Activity-Recognition-Benchmark/./train_net_dynamic.py", line 124, in train_net
    train_info=train(training_loader, model, device, optimizer, epoch, cfg)
  File "/home/nicolas/other/DIN-Group-Activity-Recognition-Benchmark/./train_net_dynamic.py", line 333, in train_collective
    activities_scores = model((batch_data[0], batch_data[1], batch_data[4]))
  File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nicolas/other/DIN-Group-Activity-Recognition-Benchmark/./infer_model.py", line 1297, in forward
    boxes_states = graph_boxes_features + boxes_features  # 1, T, N, NFG
TypeError: can only concatenate tuple (not "Tensor") to tuple
JacobYuan7 commented 1 year ago

I need more information to cope with this issue. I haven't encountered this problem. Can you provide more?

JacobYuan7 commented 1 year ago

I closed this issue since there is no update. Feel free to re-open it.