-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 feature with_offset
for rawframe dataset
#48
Conversation
Codecov Report
@@ Coverage Diff @@
## master #48 +/- ##
==========================================
+ Coverage 84.87% 85.00% +0.13%
==========================================
Files 73 73
Lines 3827 3889 +62
Branches 618 629 +11
==========================================
+ Hits 3248 3306 +58
- Misses 480 482 +2
- Partials 99 101 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -0,0 +1,2 @@ | |||
test_imgs 2 5 127 |
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.
are you defining a new dataset annotation format?
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.
what does each column mean?
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 add an optional format for ann_file, instead of 'frame_dir num_frame label[s]', it can be 'frame_dir start_idx num_frame label[s]'. My code is compatible with original format.
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.
what num_frame
in this context mean? the length of the video or the length of the segment?
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.
The length of the video clip (which is part of the entire untrimmed video).
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 think we need a doc page to describe all possible annotation formats we used. @dreamerlin
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.
We can prepare a annotation_description.md
in docs/
to describe all possible annotation formats.
I'm thinking on some short descriptor of the annotation file which resembles the channel order description. Say we let
Then this can be represented as For one based frame datasets, one can add an extra column cc. @dreamerlin @hellock @kennymckormick and @JoannaLXY , could this fit into localization tasks? Anything else needed to be added? |
with_offset
for rawframe dataset
That's a good idea, where should we place the description? |
Proposal 2A second thought, maybe we have an easier solution, that is to unify all recognition (single class) annotation to This should cover all use cases, right? |
I think the current design is OK since:
|
The current design is not ideal because it is stacking many switches. What's worse is that those switches are not independent. A better design is needed. Any idea? |
@hellock @dreamerlin Any good idea about annotation design for recognition? I think json which contains a list of dictionaries (each represents a sample) is a good choice. Each dictionary looks like |
I suggest refactoring as early as possible. When there are more users, the backward compatibility issue will be a technical debt. We can define a primary annotation format described in a json file, which will be more extensible. |
You mean we can support both txtlist and json, while using json as the primary format? |
Let's merge it for now, and leave the unification of data annotation to future. |
add feature 'with offset' for rawframe dataset, need this feature to train recognition models on untrimmed datasets