JustinYuu / MACIL_SD

[ACM MM 2022] Modality-aware Contrastive Instance Learning with Self-Distillation for Weakly-Supervised Audio-Visual Violence Detection
MIT License
31 stars 6 forks source link

ValueError, probable mismatch in dataset #7

Open youtiwari opened 1 year ago

youtiwari commented 1 year ago

Question

Hi @JustinYuu, I hope this finds you well, We downloaded the dataset from XD-Violence, as mentioned in the readme file, and then we converted it into list files (attached below) using the make_list.py file in the list directory and stored them in appropriate places. After that, when I tried to run the code(main.py) as it is in GitHub. But I am getting a ValueError message -cannot reshape array of size 408544 into shape (1047,1024) (I have attached the same for your reference). I even tried to print the values of f_v and f_a (attached).

env used python==3.6.9 torch==1.6.0
cuda==10.2 numpy==1.17.4

we also didn't change anything in option.py please suggest what could be the issue, it would be of great help.

MACIL_SD_error

audio_test list audio list f_a shape after process_feat f_v shape after process_fe
![list index](https://github.com/JustinYuu/MACIL_SD/assets/96651265/ee0f3d49-215a-43bc-8c47-7735e9b4515d)
at orginal shape of f_v ![original shape of f_a](http rgb_test list s://github.com/JustinYuu/MACIL_SD/assets/96651265/503530ff-1bdf-4ec3-9cb9-1b4e3e4d73e3)

rgb_test list rgb list

Thank You!