Closed DungVo1507 closed 3 years ago
Hello, Yu Tian. I have 2 questions hope you respond:
- Can you tell me why I3D-10 crops features of XD-Violence are not provided in this git?
- Please can you show me the I3D-10 crops feature extraction code? Because I extracted only 2 dimensions, not 3 dimensions like yours. Thank you!
For XD-VIolence, You can just use the I3D feature provided in https://roc-ng.github.io/XD-Violence/.
Or, you can simply use this resnet50 I3D to extract the feature. https://github.com/Tushar-N/pytorch-resnet3d.
The 10-crop I use is just the Pytorch official 10-crop function.
Thank you @tianyu0207, currently, I have experimented on 2 datasets ShanghaiTech and UCF-Crime. Although I have read it many times, I still don't fully understand how your proposed method (RTFM) works step by step.
May I ask if the input of RTFM is single video or multiple videos?
Really hope you can summarize how it works step by step as shown in the picture in your paper paper (i.e. the purpose of each step after the arrow mark) so that I can understand it most correctly.
Thank you very much!
Hello, Yu Tian. I have 2 questions hope you respond:
- Can you tell me why I3D-10 crops features of XD-Violence are not provided in this git?
- Please can you show me the I3D-10 crops feature extraction code? Because I extracted only 2 dimensions, not 3 dimensions like yours. Thank you!
For XD-VIolence, You can just use the I3D feature provided in roc-ng.github.io/XD-Violence.
Or, you can simply use this resnet50 I3D to extract the feature. Tushar-N/pytorch-resnet3d.
The 10-crop I use is just the Pytorch official 10-crop function.
Hi Yu Tian, I'm wondering what is the input that you fed into the backbone I3D-Res? Is it every frame you fed into it or every 16 frames(aka one clip)?
Hi @chengengliu I am also learning about this article and have a few questions if you understand please answer me, thank you! I have 4 questions that I hope you can explain:
Hello, Yu Tian. I have 2 questions hope you respond:
- Can you tell me why I3D-10 crops features of XD-Violence are not provided in this git?
- Please can you show me the I3D-10 crops feature extraction code? Because I extracted only 2 dimensions, not 3 dimensions like yours. Thank you!
For XD-VIolence, You can just use the I3D feature provided in roc-ng.github.io/XD-Violence. Or, you can simply use this resnet50 I3D to extract the feature. Tushar-N/pytorch-resnet3d. The 10-crop I use is just the Pytorch official 10-crop function.
Hi Yu Tian, I'm wondering what is the input that you fed into the backbone I3D-Res? Is it every frame you fed into it or every 16 frames(aka one clip)?
Hi I fed for every 16 frames.
Hi Yu Tian,
I am running your RTFM code and found the below error
ValueError Traceback (most recent call last)
~/rtfm/main.py in
/opt/anaconda3/envs/latest/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py in fetch(self, possibly_batched_index) 42 def fetch(self, possibly_batched_index): 43 if self.auto_collation: ---> 44 data = [self.dataset[idx] for idx in possibly_batched_index] 45 else: 46 data = self.dataset[possibly_batched_index]
/opt/anaconda3/envs/latest/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py in
/opt/anaconda3/envs/latest/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding) 451 else: 452 return format.read_array(fid, allow_pickle=allow_pickle, --> 453 pickle_kwargs=pickle_kwargs) 454 else: 455 # Try a pickle
/opt/anaconda3/envs/latest/lib/python3.7/site-packages/numpy/lib/format.py in read_array(fp, allow_pickle, pickle_kwargs) 766 array = array.transpose() 767 else: --> 768 array.shape = shape 769 770 return array
ValueError: cannot reshape array of size 262112 into shape (67,10,2048)
Please could you guide how this error can be resolved. Thanks sir,
@MTanveerR Hello, I used to face some difficulties when extracting the I3D feature, but I overcomed thanks to this repo here
Hope it helps you!
Hello, Yu Tian. I have 2 questions hope you respond: