-
Notifications
You must be signed in to change notification settings - Fork 4
convert to fastlabel json logic #70
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
convert to fastlabel json logic #70
Conversation
|
|
||
| ### COCO | ||
|
|
||
| Supported bbox or polygon annotation type. |
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.
骨格推定は今後だっけ?
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.
CREATEのAPIで骨格推定に対応する必要があるから、今後の対応になる想定。
issueに登録しておく必要があると思うけど、登録しておいたらいい?(そもそも俺が登録できる?)
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.
登録お願い!できるはず
試してもらっていい?
登録ルールはここに書いてる
https://github.com/fastlabel/fastlabel-application/wiki/%E3%82%A4%E3%82%B7%E3%83%A5%E3%83%BC%E7%AE%A1%E7%90%86
fastlabel/__init__.py
Outdated
| yolo_annotations[annotaion_key].append(anno_line.strip().split(" ")) | ||
| return yolo_annotations | ||
|
|
||
| def get_image_path(self, image_folder_path) -> dict: |
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.
これはユーザーのためのutil的な?
あとget_image_paths_mapでは?
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.
使い方をコメントで残して欲しい!
inputとoutputを明確に
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.
んーなんかわかりにくいからどこかで話そう!
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.
for file_path in glob.iglob(os.path.join(INPUT_PATH, "**/**.png"), recursive=True):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.
get_image_pathは削除して、READMEに画像のパスを取得する形のサンプルを追加した。
3364954#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R1058
|
|
||
| # Convert to Fastlabel | ||
|
|
||
| def convert_coco_to_fastlabel(self, file_path: str) -> dict: |
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.
outputフォーマットの説明が欲しい!他のも
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.
対応した。
fastlabel/__init__.py
Outdated
| ... | ||
| } | ||
| """ | ||
| image_types = ["jpg", "jpeg", "png"] |
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.
utilに切り出す
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.
No description provided.