-
Notifications
You must be signed in to change notification settings - Fork 160
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
Context must be initialized first #139
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am working on a project to write videos to TFRecord format. I recently ran into an issue where I cannot get frames due to this error:
Context must be initialized first
. Here is a snippet of my code:This code is inside a loop, which is inside a function that is called by the
multiprocessing.Pool.apply_async
method. With a slight modification (removing thecontinue
keyword), this code snippet works outside a loop, in a separate function. I need to be able to skip videos that can't be decoded, and it's easier to do that in a loop than in a function.What could be going wrong and how do I get around it?
PS: I'm using
TensorFlow==2.4.1
anddecord==0.5.2
The text was updated successfully, but these errors were encountered: