We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to execute following code but its asking scene_graph.json file. where I can find that file
import visual_genome.local as vg
Convert full .json files to image-specific .jsons, save these to 'data/by-id'. These files will take up a total ~1.1G space on disk. vg.save_scene_graphs_by_id(data_dir='data/', image_data_dir='data/by-id/') Load scene graphs in 'data/by-id', from index 0 to 200. We'll only keep scene graphs with at least 1 relationship. scene_graphs = vg.get_scene_graphs(start_index=0, end_index=-1, min_rels=1, data_dir='data/', image_data_dir='data/by-id/') print len(scene_graphs) 149 print scene_graphs[0].objects [clock, street, shade, man, sneakers, headlight, car, bike, bike, sign, building, ... , street, sidewalk, trees, car, work truck]
vg.save_scene_graphs_by_id(data_dir='data/', image_data_dir='data/by-id/')
scene_graphs = vg.get_scene_graphs(start_index=0, end_index=-1, min_rels=1, data_dir='data/', image_data_dir='data/by-id/')
print len(scene_graphs) 149
print scene_graphs[0].objects [clock, street, shade, man, sneakers, headlight, car, bike, bike, sign, building, ... , street, sidewalk, trees, car, work truck]
The text was updated successfully, but these errors were encountered:
If you go to https://visualgenome.org/api/v0/api_home.html, you'll see a "Download the scene graphs (739.37 MB)" link. That's the scene graphs json file.
Sorry, something went wrong.
No branches or pull requests
I am trying to execute following code but its asking scene_graph.json file. where I can find that file
import visual_genome.local as vg
The text was updated successfully, but these errors were encountered: