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

"extract_features.py" freezes #7

Open
meegoStar opened this issue Dec 29, 2016 · 7 comments
Open

"extract_features.py" freezes #7

meegoStar opened this issue Dec 29, 2016 · 7 comments

Comments

@meegoStar
Copy link

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
Copy link

@meegoStar hi, did you find out the solution?

@meegoStar
Copy link
Author

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

@albertomontesg
Copy link
Collaborator

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
Copy link

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
Copy link

Hello,@cyanine-gi

Have you solved the problem?

Can you give me some advice?

Thank you very much!

@cyanine-gi
Copy link

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
Copy link

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

Best regards

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

5 participants