Getting mask from Yolo bbox #517
-
Search before asking
QuestionHello, and thank you for the great repo. : )
This technique does not work for me well compared to COCO bbox in the original example. AdditionalIs there any direct way to get a mask from Yolo bbox format? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap. |
Beta Was this translation helpful? Give feedback.
-
Hi, @aimanmutasem 👋🏻! Let me convert this question into a discussion and put it into the Q&A section. |
Beta Was this translation helpful? Give feedback.
-
@aimanmutasem This notebook is already quite old, and since then, several new features have appeared in the supervision. You can now load your YOLO dataset this way: >>> import roboflow
>>> from roboflow import Roboflow
>>> import supervision as sv
>>> roboflow.login()
>>> rf = Roboflow()
>>> project = rf.workspace(WORKSPACE_ID).project(PROJECT_ID)
>>> dataset = project.version(PROJECT_VERSION).download("yolov5")
>>> ds = sv.DetectionDataset.from_yolo(
... images_directory_path=f"{dataset.location}/train/images",
... annotations_directory_path=f"{dataset.location}/train/labels",
... data_yaml_path=f"{dataset.location}/data.yaml"
... )
>>> ds.classes
['dog', 'person'] |
Beta Was this translation helpful? Give feedback.
@aimanmutasem This notebook is already quite old, and since then, several new features have appeared in the supervision. You can now load your YOLO dataset this way: