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
52 stars 15 forks source link

Cannot run DIN volleyball stage1 #19

Closed GaEunKim-study closed 1 year ago

GaEunKim-study commented 1 year ago

The volleyball dataset and tracks_normalized.pkl files have been downloaded properly. However, it does not run as follows:

""" File "/home/gaeunter/PycharmProjects/pythonProject/DIN-Group-Activity-Recognition-Benchmark/./volleyball.py", line 269, in load_samples_sequence

actions = np.hstack(actions).reshape([-1, self.num_boxes])

ValueError: cannot reshape array of size 110 into shape (12) """

print(actions)

[[7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7], [7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7], [7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7], [7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7], [7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7], [7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7], [7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7], [7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7], [7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7], [7, 7, 7, 7, 0, 7, 7, 7, 7, 6, 7]]

print(np.hstack(actions))

[7 7 7 7 0 7 7 7 7 6 7 7 7 7 7 0 7 7 7 7 6 7 7 7 7 7 0 7 7 7 7 6 7 7 7 7 7 0 7 7 7 7 6 7 7 7 7 7 0 7 7 7 7 6 7 7 7 7 7 0 7 7 7 7 6 7 7 7 7 7 0 7 7 7 7 6 7 7 7 7 7 0 7 7 7 7 6 7 7 7 7 7 0 7 7 7 7 6 7 7 7 7 7 0 7 7 7 7 6 7] [1 2 7 7 7 7 7 7 7 7 7 7 1 2 7 7 7 7 7 7 7 7 7 7 1 2 7 7 7 7 7 7 7 7 7 7 1 2 7 7 7 7 7 7 7 7 7 7 1 2 7 7 7 7 7 7 7 7 7 7 1 2 7 7 7 7 7 7 7 7 7 7 1 2 7 7 7 7 7 7 7 7 7 7 1 2 7 7 7 7 7 7 7 7 7 7 1 2 7 7 7 7 7 7 7 7 7 7 1 2 7 7 7 7 7 7 7 7 7 7]

print(len(np.hstack(actions)))

110

What's wrong?

JacobYuan7 commented 1 year ago

@GaEunKim-study I have never encountered this problem before. Can you provide more information?

JacobYuan7 commented 1 year ago

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

Certainguys commented 2 weeks ago

Hello, I also have a similar problem and would like to ask how you solved it? Thanks.