Add functions to extract first frame labels from cliplabels#64
Open
sharmishtaa wants to merge 10 commits into
Open
Add functions to extract first frame labels from cliplabels#64sharmishtaa wants to merge 10 commits into
sharmishtaa wants to merge 10 commits into
Conversation
Adds two new functions to extract only the first frame's labels from cliplabels.json files: - extract_start_frames_label: processes local files - extract_start_frames_label_s3: processes files on S3 (requires boto3) Both functions read *_cliplabels.json files and create corresponding *_startlabels.json files containing only labels for frame id=0. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
for more information, see https://pre-commit.ci
Collaborator
Author
|
I noticed that Matt had already generated startframe_labels.json but SWC and Allen had not, so we need to functionality to do this either locally or on s3. In general I will also add the script for copying data here, so will plan to update pyproject.toml with the boto installation. Just wanted to flag that in case you had other thoughts. |
Member
|
Thanks for the PR @sharmishtaa ! I will make sure to take a look at this next week when I'm back from FENS. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two new functions to extract only the first frame's labels from cliplabels.json files:
Both functions read *_cliplabels.json files and create corresponding *_startlabels.json files containing only labels for frame id=0.
Before submitting a pull request (PR), please read the contributing guide.
Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)
Description
What is this PR
Why is this PR needed?
This PR addresses the first step in the issue #63 which is a script for copying benchmark data from the temporary location to the benchmark location.
What does this PR do?
This script adds a function forstripping the cliplabels file and creating a new file that only contains the first label of the frame which will be shared in the benchmark for the Test data.
References
#63
How has this PR been tested?
Please explain how any new code has been tested, and how you have ensured that no existing functionality has changed.
Is this a breaking change?
No
Does this PR require an update to the documentation?
If any features have changed, or have been added. Please explain how the
documentation has been updated.
Checklist: