Skip to content

Instantly share code, notes, and snippets.

@gauravbansal98
Created May 13, 2020 12:37
Show Gist options
  • Save gauravbansal98/d6db97e609a83e95bbb276f208b59992 to your computer and use it in GitHub Desktop.
Save gauravbansal98/d6db97e609a83e95bbb276f208b59992 to your computer and use it in GitHub Desktop.
# load photo features
def load_photo_features(filename, dataset):
# load all features
all_features = load(open(filename, 'rb'))
# filter features
features = {k: all_features[k] for k in dataset}
return features
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment