From f4ffff83c78399286808fb8321cea3227b51d72f Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Fri, 1 Mar 2024 14:49:42 +0100 Subject: [PATCH] update YOLOv9 notebook --- ...ain-yolov9-object-detection-on-custom-dataset.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/notebooks/train-yolov9-object-detection-on-custom-dataset.ipynb b/notebooks/train-yolov9-object-detection-on-custom-dataset.ipynb index 2cf92da..90f6dd0 100644 --- a/notebooks/train-yolov9-object-detection-on-custom-dataset.ipynb +++ b/notebooks/train-yolov9-object-detection-on-custom-dataset.ipynb @@ -481,7 +481,7 @@ "rf = roboflow.Roboflow()\n", "\n", "project = rf.workspace(\"roboflow-jvuqo\").project(\"football-players-detection-3zvbc\")\n", - "version = project.version(6)\n", + "version = project.version(8)\n", "dataset = version.download(\"yolov9\")" ], "metadata": { @@ -732,7 +732,7 @@ "!python detect.py \\\n", "--img 1280 --conf 0.1 --device 0 \\\n", "--weights {HOME}/yolov9/runs/train/exp/weights/best.pt \\\n", - "--source {dataset.location}/valid/images" + "--source {dataset.location}/test/images" ], "metadata": { "id": "8vnrn9cwIsUs" @@ -899,7 +899,7 @@ "source": [ "ROBOFLOW_API_KEY = getpass.getpass()\n", "\n", - "model = get_model(model_id=\"football-players-detection-3zvbc/6\", api_key=ROBOFLOW_API_KEY)" + "model = get_model(model_id=\"football-players-detection-3zvbc/8\", api_key=ROBOFLOW_API_KEY)" ], "metadata": { "id": "bAB-5ZMM87w3", @@ -922,7 +922,7 @@ { "cell_type": "markdown", "source": [ - "**NOTE:** Let's pick random image from our validation subset and detect objects using newly fine-tuned model." + "**NOTE:** Let's pick random image from our test subset and detect objects using newly fine-tuned model." ], "metadata": { "id": "5pGSLZ8Fz5qO" @@ -932,7 +932,7 @@ "cell_type": "code", "source": [ "image_paths = sv.list_files_with_extensions(\n", - " directory=f\"{dataset.location}/valid/images\",\n", + " directory=f\"{dataset.location}/test/images\",\n", " extensions=['png', 'jpg', 'jpeg']\n", ")\n", "image_path = random.choice(image_paths)\n",