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

fix BU3DFE connectivity, pretty JSON files #537

Merged
merged 1 commit into from Jan 14, 2015
Merged

Conversation

jabooth
Copy link
Member

@jabooth jabooth commented Jan 14, 2015

Fix a slip up with the connectivity information on the bu3d_fe labeller. Luckily fixing any that we've made incorrectly is quite straightforward:

import menpo

def fix_bu3dfe_landmark(p):
    l = menpo.io.import_landmark_file(p)
    l_fixed = menpo.landmark.labels.bu3dfe_83(l)[1]
    menpo.io.export_landmark_file(l_fixed, p, overwrite=True)


from pathlib import Path

for lm in Path('./dir/of/bad/landmarks').glob('**/*.ljson'):
    fix_bu3dfe_landmark(lm)

I've also changed the landmark LJSON exporter to save out nicely formatted JSON rather than it all scrunched together which is helpful for diffing landmark changes. (landmarkerio server does the same style so diffs are not effected by ordering/style changes now)

@patricksnape
Copy link
Contributor

FIne by me

jabooth added a commit that referenced this pull request Jan 14, 2015
fix BU3DFE connectivity, pretty JSON files
@jabooth jabooth merged commit 4a03fa9 into menpo:master Jan 14, 2015
@jabooth jabooth deleted the bu3d_fix branch January 14, 2015 09:36
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.

None yet

2 participants