Skip to content
New issue

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

Groundnet dev #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

rutescher
Copy link
Contributor

Disclaimer: Part of the annotations originally come in a pickle that has dependencies on the groundnet utils. I haven't found a good solution to this, so I just took the liberty to unpickle them there and dump the part we need in a json. (available @ the dsg-shk dropbox or by running the following:)

dump = 'data/stanford_cmn_refcocog_iou05.triplets.pkl'
data = pickle.load(open(dump))
with open('../dsg-vision/Preproc/PreprocOut/groundnet_test.json', 'w') as f:
json.dump(data['tst_json'], f)

@davidschlangen
Copy link
Contributor

Excellent! Can you post the lines for the config file here? That would also show me where I can find the groundnet files.
One of these seems to be an html-file? Any idea of why the used that to encode their information?

@rutescher
Copy link
Contributor Author

What I put in the config file is this:

[GROUNDNET]
groundnet_base =/home/rutescher/groundnet
groundnet_data = %(groundnet_base)s/data/
groundnet_ann = %(groundnet_base)s/notebooks/supp_ann
groundnet_supp = %(groundnet_ann)s/annotations/
groundnet_html = %(groundnet_ann)s/htmls/

As for the html file(s), apparently the authors used those pages to annotate. (And didn't take great care to save which annotation they were adding to, so I grab the image_id and refexp from the html files.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants