Skip to content
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

Create labelstudio_vid_json2yolo.py #81

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Burhan-Q
Copy link
Member

@Burhan-Q Burhan-Q commented Mar 23, 2024

From Ultralytics Discord, request to include conversion from Labelstudio JSON to YOLO. This is the starting code shared with Discord user @hellodword who will be finishing work on this code.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Introducing a new script for converting Label Studio video-frame annotations to the YOLO format. πŸŽ₯πŸŽ‰

πŸ“Š Key Changes

  • New Script Addition: A Python script (labelstudio_vid_json2yolo.py) has been added to convert annotations from Label Studio's JSON format into YOLO format, specifically for video frames.
  • Annotation Processing: It processes different types of annotations, focusing on capturing the label and bounding box (bbox) details like center points (x, y) and dimensions (width, height).
  • Frame-Specific Output: For each annotated video frame, it generates a corresponding YOLO-format text file, naming it with the video's name and frame number.

🎯 Purpose & Impact

  • Purpose: To facilitate the use of video-frame annotations made in Label Studio for training models in YOLO, one of the most popular object detection architectures.
  • Impact:
    • Enhanced Workflow: This script bridges the gap between annotation and model training, making it easier for researchers and developers to use Label Studio for video dataset preparation.
    • Accessibility: By automating the conversion process, it saves time and reduces errors, making the process accessible to a broader user base, not limited to those with deep technical expertise in data formatting. πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants