imatge-upc / activitynet-2016-cvprw

Tools to participate in the ActivityNet Challenge 2016 (NIPSW 2016)
https://imatge-upc.github.io/activitynet-2016-cvprw/
MIT License
195 stars 85 forks source link

"extract_features.py" freezes #7

Open meegoStar opened 7 years ago

meegoStar commented 7 years ago

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?

kertansul commented 7 years ago

@meegoStar hi, did you find out the solution?

meegoStar commented 7 years ago

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

albertomontesg commented 7 years ago

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.

cyanine-gi commented 7 years ago

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.

buaa-luzhi commented 7 years ago

Hello,@cyanine-gi

Have you solved the problem?

Can you give me some advice?

Thank you very much!

cyanine-gi commented 7 years ago

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.

buaa-luzhi commented 7 years ago

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

Best regards