Skip to content

Instantly share code, notes, and snippets.

@mrtj
Last active July 9, 2021 07:05
Show Gist options
  • Save mrtj/4e77da315c6d2223ac13a2e0ed7d0be8 to your computer and use it in GitHub Desktop.
Save mrtj/4e77da315c6d2223ac13a2e0ed7d0be8 to your computer and use it in GitHub Desktop.
Search for a given action in the Kinetics human activity dataset
#!/usr/bin/env bash
cat train.csv | sed 's/ /_/g' | sed 's/,/ /g' | awk '{print $1}' | grep "$1" | sort | uniq
@mrtj
Copy link
Author

mrtj commented Jul 9, 2021

This script lists or searches for actions in the Kinetics human activity dataset.

  1. Download one of the kinetics datasets.
  2. Place this script in the folder where you extracted the dataset.
  3. Add the executable flag to the script: chmod +x kinetics_actions.sh
  4. Usage:
$ ./kinetics_actions.sh washing
washing_dishes
washing_feet
washing_hair
washing_hands
  1. If run without arguments, lists all unique actions in the dataset:
$ ./kinetics_actions.sh
abseiling
air_drumming
answering_questions
applauding
applying_cream
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment