This gist implements a self-contained search engine for the VisualGenome scene corpus. The user interface is built from ipywidgets and presented with Voilà. The corpus is downloaded in the postBuild
script so that fresh Binder sessions don't need to wait for this each time. Ideally even more pre-processing would be done here so that the interface gets to a responsive state faster.
Last active
February 22, 2021 19:04
-
-
Save rndmcnlly/0ccad86bf0f448e00ac713dfc3794d46 to your computer and use it in GitHub Desktop.
A search engine in a gist!
This file contains hidden or 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
jq |
This file contains hidden or 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
set -ex | |
jupyter serverextension enable voila --sys-prefix | |
wget http://visualgenome.org/static/data/dataset/image_data.json.zip | |
wget http://visualgenome.org/static/data/dataset/relationships.json.zip |
This file contains hidden or 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
numpy | |
voila | |
ijson |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment