-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add option to save off .pose files for each segment #5
Add option to save off .pose files for each segment #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there!
…ines/whitespace, and opening with a specific encoding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just types left :)
All right, I think we're about good, though there's probably more stylistic improvements to be made. ChatGPT has these suggestions: https://chatgpt.com/share/675065df-c64c-800e-b171-5486a47eb024 |
sign_language_segmentation/bin.py
Outdated
for segment in segments: | ||
eaf.add_annotation(tier_id, int(segment["start"] / fps * 1000), int(segment["end"] / fps * 1000)) | ||
# convert frame numbers to millisecond timestamps, for Elan | ||
start_frame_time = int(segment["start"] / fps * frames_per_millisecond) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this implementation is now wrong.
Was:
segment["start"] / fps * 1000
Now:
segment["start"] / fps * fps * 1000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest
start_time = int(segment["start"] / fps * 1000)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, it was wrong indeed! Fixed now
No description provided.