Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the file “ video_info.csv”?. #5

Open
tianshu-zhu opened this issue Jul 14, 2022 · 1 comment
Open

How to get the file “ video_info.csv”?. #5

tianshu-zhu opened this issue Jul 14, 2022 · 1 comment

Comments

@tianshu-zhu
Copy link

I am following the instructions https://github.com/skelemoa/tal-hmo to reproduce your paper. When I tried to extract the audio feature using python extractVGGishFeatures.py, I encountered the following error. Could you explain how to get the file “ video_info.csv”?.

Traceback (most recent call last):
File "/media/tianshu/DATA/tianshu/avfusion/extractVGGishFeatures.py", line 44, in
data = np.genfromtxt('video_info.csv', delimiter=',', dtype=str)
File "/home/tianshu/anaconda3/lib/python3.9/site-packages/numpy/lib/npyio.py", line 1793, in genfromtxt
fid = np.lib._datasource.open(fname, 'rt', encoding=encoding)
File "/home/tianshu/anaconda3/lib/python3.9/site-packages/numpy/lib/_datasource.py", line 193, in open
return ds.open(path, mode, encoding=encoding, newline=newline)
File "/home/tianshu/anaconda3/lib/python3.9/site-packages/numpy/lib/_datasource.py", line 533, in open
raise IOError("%s not found." % path)
OSError: video_info.csv not found.

@Wojak27
Copy link

Wojak27 commented Aug 24, 2023

Probably irrelevant anymore, but wort posting for the next person that has this issue... I made it work without the file. What you need in the end is the number of frames the video features have been sampled with and the amount of seconds per video (this would be in the missing csv file).

The way I made it work for myself is, I took the amount of frames per second in the video features and then took the number of seconds, often contained in the annotations file (at least for THUMOS14) for each video, which created a dict, "frames" which you can see in the code. In the end you want frames dict to look like this: {"video_001":40234,"video_002":432, etc...}

Hope it helps whomever

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants