imatge-upc / activitynet-2016-cvprw

Tools to participate in the ActivityNet Challenge 2016 (NIPSW 2016)

Home Page:https://imatge-upc.github.io/activitynet-2016-cvprw/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"extract_features.py" freezes

meegoStar opened this issue · comments

Hello, I'm running extract_features.py using the command KERAS_BACKEND=theano python -u extract_features.py -d ~/Videos/videos. However, the program will freeze and refuse to make any further progress with the latest printed messages only showing

Time to fetch [video name] video: [time] seconds
Time to fetch [video name] video: [time] seconds
Time to fetch [video name] video: [time] seconds

I could only force extract_features.py terminated, and run the command again to continue.
Is it normal that extract_features.py freezes?

@meegoStar hi, did you find out the solution?

No. Unfortunately, we just kept manually restarting the program until all the features been extracted.

I experienced the same while running this, and I wasn't able to find the cause (as there is concurrency to fetch the videos, maybe at some point or some video make this program to freeze). I rerun the code until I had all the video features extracted. I'm sorry I can not help more.

Maybe there's a deadlock in the script "extract_feature.py". I'm trying to solve this deadlock if it exists. I'll leave a message here if I succeed.

Hello,@cyanine-gi

Have you solved the problem?

Can you give me some advice?

Thank you very much!

Maybe it's caused by the circumstance check of "_stop_all_generators" and "_stop_all_extractors".
Since line 97 don't check the queue again,maybe the extracting_features_task() won't quit.
To solve this, I simply changed the code and set this task to a single thread mode, which is not that fast when processing files but more reliable.

Hello,@cyanine-gi
Can you give me samples code?
Thank you so much!

Best regards