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

How to use extract_yt8m_features to to produce youtube-8m compatible .tfrecord files? #924

Closed
allenday opened this issue Jul 21, 2020 · 1 comment
Assignees
Labels
legacy:youtube8M Youtube8M related issues

Comments

@allenday
Copy link

youtube-8m repo indicates that mediapipe feature extractor should be used instead of extract_tfrecords_main.py:
https://github.com/google/youtube-8m/tree/master/feature_extractor
Presumably this refers to extract_yt8m_features, described here:
https://github.com/google/mediapipe/tree/master/mediapipe/examples/desktop/youtube8m

The mediapipe feature extractor outputs a single .pb file per input video. Two questions:

  1. how to output a .tfrecord file of the format required by youtube-8m train.py?
  2. how to incorporate a CSV of labels, as used by extract_tfrecords_main.py?

Essentially, I am asking for equivalent steps from mediapipe to perform the youtube-8m command:

python extract_tfrecords_main.py --input_videos_csv /path/to/vid_dataset.csv \
    --output_tfrecords_file /path/to/output.tfrecord
@allenday allenday changed the title How to get .tfrecord files from youtube8m feature extractor? How to get .tfrecord files from youtube8m extract_yt8m_features? Jul 21, 2020
@allenday allenday changed the title How to get .tfrecord files from youtube8m extract_yt8m_features? How to use extract_yt8m_features to to produce youtube-8m compatible .tfrecord files? Jul 21, 2020
@mgyong mgyong added the legacy:youtube8M Youtube8M related issues label Jul 21, 2020
@allenday
Copy link
Author

youtube-8m issue created and linked here:
google/youtube-8m#124

@mgyong mgyong closed this as completed Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:youtube8M Youtube8M related issues
Projects
None yet
Development

No branches or pull requests

4 participants