Skip to content

Commit de39a23

Browse files
committed
update notebook to remove api param
1 parent a8d1fb1 commit de39a23

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

notebooks/03_datasets/05_import_dataset.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"\n",
1919
"All three share the same two-step shape:\n",
2020
"- `.parse()` reads and validates the dataset on disk. Use it to preview image/box counts and class names before uploading anything. Unsupported annotations (e.g. polygons) are counted, not silently dropped.\n",
21-
"- `.import_to_project(project, api=None)` reuses the parsed result to upload the images and their box annotations. `api` is optional and defaults to a new `Api()` if omitted.\n",
21+
"- `.import_to_project(project)` reuses the parsed result to upload the images and their box annotations. \n",
2222
"\n",
2323
"This notebook builds tiny synthetic datasets in each format (a couple of generated images) so it runs end-to-end without needing an external download."
2424
]
@@ -187,7 +187,7 @@
187187
"cell_type": "markdown",
188188
"metadata": {},
189189
"source": [
190-
"Then upload the images and their box annotations. `api` is optional here -- it defaults to a new `Api()` if omitted, but we reuse the one from Setup:"
190+
"Then upload the images and their box annotations. "
191191
]
192192
},
193193
{
@@ -196,7 +196,7 @@
196196
"metadata": {},
197197
"outputs": [],
198198
"source": [
199-
"result = coco_importer.import_to_project(project_coco, api=api, tags=[\"coco-import-tutorial\"])\n",
199+
"result = coco_importer.import_to_project(project_coco, tags=[\"coco-import-tutorial\"])\n",
200200
"\n",
201201
"print(f\"Uploaded images: {result.n_images_uploaded}\")\n",
202202
"print(f\"Uploaded boxes: {result.n_boxes_uploaded}\")\n",
@@ -270,7 +270,7 @@
270270
"preview = voc_importer.parse()\n",
271271
"print(f\"{preview.num_images} images, {preview.num_boxes} boxes, classes={preview.class_names}\")\n",
272272
"\n",
273-
"result = voc_importer.import_to_project(project_voc, api=api, tags=[\"voc-import-tutorial\"])\n",
273+
"result = voc_importer.import_to_project(project_voc, tags=[\"voc-import-tutorial\"])\n",
274274
"print(f\"Uploaded images: {result.n_images_uploaded}, boxes: {result.n_boxes_uploaded}, errors: {result.errors}\")"
275275
]
276276
},
@@ -337,7 +337,7 @@
337337
"preview = yolo_importer.parse()\n",
338338
"print(f\"{preview.num_images} images, {preview.num_boxes} boxes, classes={preview.class_names}\")\n",
339339
"\n",
340-
"result = yolo_importer.import_to_project(project_yolo, api=api, tags=[\"yolo-import-tutorial\"])\n",
340+
"result = yolo_importer.import_to_project(project_yolo, tags=[\"yolo-import-tutorial\"])\n",
341341
"print(f\"Uploaded images: {result.n_images_uploaded}, boxes: {result.n_boxes_uploaded}, errors: {result.errors}\")"
342342
]
343343
}

0 commit comments

Comments
 (0)