-
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
[Feature] Add annotation conversion tool from Labelbee to COCO #1306
base: dev-0.26
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
|
||
def main(): | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('--input-file', type=str, default='/home/wanghao/Work/labelbee_json_2_MMPose_COCO_json/', help='输入labelbee json的根路径') |
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.
Please make the default path anonymous.
|
||
|
||
if __name__=='__main__': | ||
main() |
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 PR has some linting problems. Please follow
https://github.com/open-mmlab/mmpose/blob/master/.github/CONTRIBUTING.md to setup pre-commit.
import argparse | ||
|
||
''' | ||
将 labelbee多步标注 后的关键点数据进行标签转化,转至mmpose模型需要的coco格式。 数据集先划分好。 |
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.
@ly015 Do we need an English version of the docstring?
"id":1, | ||
"name":"Attribution-NonCommercial-ShareAlike License"}] | ||
|
||
anno_info["categories"] = [{"supercategory":"person", |
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.
It seems that only COCO 17-kpt body pose definition is supported. The generality is a little bit concerning.
Hi @wanghao-007!We are grateful for your efforts in helping improve this open-source project during your personal time. |
Motivation
Modification
BC-breaking (Optional)
Use cases (Optional)
Checklist
Before PR:
After PR: