Created
May 13, 2020 12:37
-
-
Save gauravbansal98/d6db97e609a83e95bbb276f208b59992 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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