You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/integrations/yolo/import_yolo_annotations.ipynb
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,12 @@
31
31
"metadata": {},
32
32
"source": [
33
33
"# Import YOLOv8 annotations\n",
34
-
"This notebook will provides examples of setting up a Project with annotations generated with YOLOv8. We will be using the [Ultralytics](https://docs.ultralytics.com/) library to generate our annotations. In this guide we will be:\n",
35
-
"* Importing a demo image data rows that will be labeled\n",
36
-
"* Setting up our ontology that matches our YOLOv8 annotations\n",
37
-
"* Importing our data rows and attaching our ontology to a project\n",
38
-
"* Running our images through Ultralytics\n",
39
-
"* Importing the annotations generated\n"
34
+
"This notebook will provide examples of setting up a Project with annotations generated with YOLOv8. We will use the [Ultralytics](https://docs.ultralytics.com/) library to generate annotations. In this guide, we will be:\n",
35
+
"1. Importing a demo image data rows that will be labeled\n",
36
+
"2. Setting up our ontology that matches our YOLOv8 annotations\n",
37
+
"3. Importing our data rows and attaching our ontology to a project\n",
38
+
"4. Running our images through Ultralytics\n",
39
+
"5. Importing the annotations generated\n"
40
40
],
41
41
"cell_type": "markdown"
42
42
},
@@ -80,7 +80,7 @@
80
80
"metadata": {},
81
81
"source": [
82
82
"## Set up a YOLOv8 model\n",
83
-
"Below we will be initializing our model to be used for on our image data rows. We are using `yolov8n-seg.pt` since it supports segmentation masks. "
83
+
"Below, we will initialize our model for our image data rows. We are using `yolov8n-seg.pt` since it supports segmentation masks. "
84
84
],
85
85
"cell_type": "markdown"
86
86
},
@@ -96,7 +96,7 @@
96
96
"source": [
97
97
"## Example: Import YOLOv8 Annotations\n",
98
98
"\n",
99
-
"The first few steps of this guide will demonstrating a basic workflow of creating data rows and setting up a project. For a quick complete overview of this process visit our [Quick start](https://docs.labelbox.com/reference/quick-start) guide."
99
+
"The first few steps of this guide will demonstrate a basic workflow of creating data rows and setting up a project. For a quick, complete overview of this process, visit our [Quick start](https://docs.labelbox.com/reference/quick-start) guide."
100
100
],
101
101
"cell_type": "markdown"
102
102
},
@@ -120,7 +120,7 @@
120
120
"metadata": {},
121
121
"source": [
122
122
"### Setting up an ontology and a project\n",
123
-
"You must create a matching ontology and project with the data rows you are trying to label. The ontology should include the annotations that your are wanting to derive from YOLOv8.. We will be introduce and explain a class mapping later in this guide so feel free to name your ontology features anything you want. In our example, we will be including a combination of bounding boxes, segment mask, and polygon tools to demonstrate converting each of those type of annotations from YOLOv8.\n"
123
+
"You must create a matching ontology and project with the data rows you are trying to label. The ontology should include the annotations you want to derive from YOLOv8. We will introduce and explain our class mapping later in this guide, so feel free to name your ontology features anything you want. In our example, we will be including a combination of bounding boxes, segment masks, and polygon tools to demonstrate converting each of those types of annotations from YOLOv8.\n"
124
124
],
125
125
"cell_type": "markdown"
126
126
},
@@ -155,8 +155,8 @@
155
155
{
156
156
"metadata": {},
157
157
"source": [
158
-
"### Export our data rows and getting our predictions\n",
159
-
"Now that we have imported our image data row and set up our project and ontology we can now get our predictions. In the step below, we are exporting our data row from our project and then adding the `row_data` and `global_key` to a list to then be used to make our predictions."
158
+
"### Export our data rows and get our predictions\n",
159
+
"Now that we have imported our image data row and set up our project and ontology, we can get our predictions. In the step below, we export our data row from our project and then add the `row_data` and `global_key` to a list to be used to make our predictions."
160
160
],
161
161
"cell_type": "markdown"
162
162
},
@@ -178,7 +178,7 @@
178
178
"metadata": {},
179
179
"source": [
180
180
"#### Make YOLOv8 predictions\n",
181
-
"Below we are passing our list of image URLs to our YOLOv8 model. If your `row_data` URL are behind a private cloud bucket integration you will need to either download your images locally or give your IDE permission to access your images."
181
+
"Below, we are passing our list of image URLs to our YOLOv8 model. If your `row_data` URL is behind a private cloud bucket integration, you will need to either download your images locally or give your IDE permission to access them."
182
182
],
183
183
"cell_type": "markdown"
184
184
},
@@ -193,7 +193,7 @@
193
193
"metadata": {},
194
194
"source": [
195
195
"### Import YOLOv8 annotations to a project\n",
196
-
"Now that you have finished your initial set up and have gotten your predictions from YOLOv8 we can import our annotations towards are project. We will be doing the following in this step:\n",
196
+
"Now that you have finished your initial setup and have gotten your predictions from YOLOv8, we can import our annotations towards our project. We will be doing the following in this step:\n",
197
197
"1. Defining our import functions\n",
198
198
"2. Creating our labels\n",
199
199
"3. Importing our labels as either ground truths or MAL labels (pre-labels)"
@@ -204,7 +204,7 @@
204
204
"metadata": {},
205
205
"source": [
206
206
"#### Defining our import functions\n",
207
-
"YOLOv8 supports a wide range of annotations. This guide shows importing bounding boxes, polygons and segment masks which matches our ontology. Below our the functions used for each type. These functions follow the same similar style, essentially, navigating through our result payload from YOLOv8 and converting it to the Labelbox annotation format. All of our functions support a class mapping which maps YOLOv8 annotation names to Labelbox feature names. The reason we have this mapping is to support having different names for Labelbox features compared to YOLOv8 annotation names. It also allows us to map common YOLOv8 names to the same Labelbox feature attached to our ontology. We will define this mapping first. In our case, we are mapping `bus` and `truck` to our Labelbox feature name `Vehicle` and `person` to our Labelbox feature name `Person`."
207
+
"YOLOv8 supports a wide range of annotations. This guide shows importing bounding boxes, polygons, and segment masks that match our ontology. Below are the functions used for each type. These functions follow the same style, essentially navigating through our result payload from YOLOv8 and converting it to the Labelbox annotation format. All of our functions support a class mapping which maps YOLOv8 annotation names to Labelbox feature names. The reason we have this mapping is to support having different names for Labelbox features compared to YOLOv8 annotation names. It also allows us to map common YOLOv8 names to the same Labelbox feature attached to our ontology. We will define this mapping first. In our case, we are mapping `bus` and `truck` to our Labelbox feature name `Vehicle` and `person` to our Labelbox feature name `Person`."
208
208
],
209
209
"cell_type": "markdown"
210
210
},
@@ -261,7 +261,7 @@
261
261
"metadata": {},
262
262
"source": [
263
263
"#### Creating our labels\n",
264
-
"Now that we have defined our functions to create our Labelbox annotations we can run each result from our YOLOv8 prediction list with our global keys to create our labels. "
264
+
"Now that we have defined our functions to create our Labelbox annotations, we can run each result from our YOLOv8 prediction list with our global keys to create our labels. "
265
265
],
266
266
"cell_type": "markdown"
267
267
},
@@ -276,7 +276,7 @@
276
276
"metadata": {},
277
277
"source": [
278
278
"#### Import annotations to Labelbox\n",
279
-
"We have now created our labels and can import them towards our project. For more information on importing annotations visit our [import image annotations](https://docs.labelbox.com/reference/import-image-annotations) guide."
279
+
"We have created our labels and can import them to our project. For more information on importing annotations, visit our [import image annotations](https://docs.labelbox.com/reference/import-image-annotations) guide."
0 commit comments