-
Notifications
You must be signed in to change notification settings - Fork 5k
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
kinetics_dataset.py to generate rgb and flow arrays for evaluate_sample.py #257
Comments
Hi, I can successfully generate the feature tfrecord for v_CricketShot_g04_c01.avi. First, Deepmind recently updated their the 700 dateset, I need to modify the kietics_dataset.py accordingly (we will have the fix in the new release):
Then, run the following commands:
Then, you can read the tfrecord in Python
|
Thanks a lot for your quick response and follow up, Then in order to use the FORWARD_FLOW/image/encoded and image/encoded, how do I convert into a flow_input and rgb_input tensor that is used in the evaluate_sample.py. Do I have to first decode the JPEG bytes_list. Please do share the steps that are required to take this output over to evaluate_sample.py. |
I am having the same issue. I am able to create the tfrecord via mediapipe, which seems to be RGB feature and FLOW feature wrapped up in the same record. I'd like to be able to separate those features into individual files, one for RGB and one for FLOW (preferrably .npy, but I'll take whatever). Does anyone have any guidance on how to do that? |
Are we supposed to integrate these steps into evaluate_sample.py so that we don't need to go through the middle step? Just a guess... I really hope that Jiuqiang will chime in. Please! |
The Kinetics.as_dataset() function is what you can use to do this. It creates a tf.data.Dataset that can be used to read the TFRecord file and extract the relevant tensors. I think this is the syntax you need, but let me know if you have problems with this. This example should work:
In tf1 the next line of code would be
In tf2 the next line of code would be
|
Hi,
I am trying to figure out the steps needed to generate rgb and flow arrays that I can use in the evaluate_sample.py script in kinetics-i3d. If I setup VIDEO_PATH to v_CricketShot_g04_c01.avi (which is used as the sample data in kinetics-i3d), how do I get the rgb and flow files?
Perhaps, I am missing a step.
Thanks
The text was updated successfully, but these errors were encountered: