eloise54 commited on
Commit
a1de7ca
Β·
1 Parent(s): 0282eab
.gitattributes CHANGED
@@ -61,3 +61,6 @@ runs/detect/yolov11m_1920p/weights/epoch10.pt filter=lfs diff=lfs merge=lfs -tex
61
  runs/detect/yolov11m_1920p/weights/epoch5.pt filter=lfs diff=lfs merge=lfs -text
62
  runs/detect/yolov11m_1920p/weights/last.pt filter=lfs diff=lfs merge=lfs -text
63
  runs/detect/yolov11m_1920p/weights/best.pt filter=lfs diff=lfs merge=lfs -text
 
 
 
 
61
  runs/detect/yolov11m_1920p/weights/epoch5.pt filter=lfs diff=lfs merge=lfs -text
62
  runs/detect/yolov11m_1920p/weights/last.pt filter=lfs diff=lfs merge=lfs -text
63
  runs/detect/yolov11m_1920p/weights/best.pt filter=lfs diff=lfs merge=lfs -text
64
+ notebook_images/cots_dataset.png filter=lfs diff=lfs merge=lfs -text
65
+ notebook_images/yolo_dataset2.png filter=lfs diff=lfs merge=lfs -text
66
+ notebook_images/yolo_dataset.png filter=lfs diff=lfs merge=lfs -text
cots_great_barrier_reef_ultralytics.ipynb CHANGED
@@ -83,7 +83,7 @@
83
  },
84
  {
85
  "cell_type": "code",
86
- "execution_count": 3,
87
  "id": "0171cc0b-4425-4cb7-b084-0f406e58a287",
88
  "metadata": {},
89
  "outputs": [],
@@ -95,7 +95,7 @@
95
  },
96
  {
97
  "cell_type": "code",
98
- "execution_count": 4,
99
  "id": "efd9a0ea-a343-4955-87ac-0b7635de709c",
100
  "metadata": {},
101
  "outputs": [],
@@ -112,7 +112,7 @@
112
  },
113
  {
114
  "cell_type": "code",
115
- "execution_count": 5,
116
  "id": "6165ae5f-3ff9-438b-8057-562d6c44ab08",
117
  "metadata": {},
118
  "outputs": [
@@ -120,7 +120,7 @@
120
  "name": "stdout",
121
  "output_type": "stream",
122
  "text": [
123
- "/home/light/personal_projects/vision_projects/notebooks\n"
124
  ]
125
  }
126
  ],
@@ -141,7 +141,7 @@
141
  },
142
  {
143
  "cell_type": "code",
144
- "execution_count": null,
145
  "id": "84ff5bb0-d24c-48b0-a805-6a62a0dbab35",
146
  "metadata": {},
147
  "outputs": [],
@@ -167,7 +167,7 @@
167
  },
168
  {
169
  "cell_type": "code",
170
- "execution_count": 7,
171
  "id": "3c5ac0f5-3895-43cc-83d3-77aabc234e99",
172
  "metadata": {},
173
  "outputs": [],
@@ -179,7 +179,7 @@
179
  },
180
  {
181
  "cell_type": "code",
182
- "execution_count": 8,
183
  "id": "b641e9b9-230e-4686-8283-aa305b5b7ebc",
184
  "metadata": {},
185
  "outputs": [
@@ -192,7 +192,7 @@
192
  "dtype: object"
193
  ]
194
  },
195
- "execution_count": 8,
196
  "metadata": {},
197
  "output_type": "execute_result"
198
  }
@@ -203,7 +203,7 @@
203
  },
204
  {
205
  "cell_type": "code",
206
- "execution_count": 9,
207
  "id": "13022f50-cd2a-49d3-a13e-13f982196db1",
208
  "metadata": {},
209
  "outputs": [
@@ -214,7 +214,7 @@
214
  " {'id': 2, 'name': 'SCAR', 'supercategory': ''}]"
215
  ]
216
  },
217
- "execution_count": 9,
218
  "metadata": {},
219
  "output_type": "execute_result"
220
  }
@@ -225,7 +225,7 @@
225
  },
226
  {
227
  "cell_type": "code",
228
- "execution_count": 10,
229
  "id": "480e5363-7679-4a6c-b22b-6be05b747cdc",
230
  "metadata": {},
231
  "outputs": [
@@ -243,7 +243,7 @@
243
  " 'source': 'REEFSCAN_DEEP_02_20241026_020155_Judith'}"
244
  ]
245
  },
246
- "execution_count": 10,
247
  "metadata": {},
248
  "output_type": "execute_result"
249
  }
@@ -254,7 +254,7 @@
254
  },
255
  {
256
  "cell_type": "code",
257
- "execution_count": 11,
258
  "id": "b32bdf4d-9499-4aff-b18c-b93100d62a1f",
259
  "metadata": {},
260
  "outputs": [
@@ -298,7 +298,7 @@
298
  " 'attributes': {'comment': '', 'type': '', 'occluded': False}}"
299
  ]
300
  },
301
- "execution_count": 11,
302
  "metadata": {},
303
  "output_type": "execute_result"
304
  }
@@ -317,7 +317,7 @@
317
  },
318
  {
319
  "cell_type": "code",
320
- "execution_count": 12,
321
  "id": "e6049d45-0b03-4a1e-bae1-bb64243fe300",
322
  "metadata": {},
323
  "outputs": [],
@@ -334,7 +334,7 @@
334
  },
335
  {
336
  "cell_type": "code",
337
- "execution_count": 13,
338
  "id": "25dd1dfd-d8f6-45f4-9760-f4f638698cb1",
339
  "metadata": {},
340
  "outputs": [
@@ -368,7 +368,7 @@
368
  },
369
  {
370
  "cell_type": "code",
371
- "execution_count": 14,
372
  "id": "7a999041-427e-428a-9d02-ffc90a97543a",
373
  "metadata": {},
374
  "outputs": [
@@ -400,7 +400,7 @@
400
  },
401
  {
402
  "cell_type": "code",
403
- "execution_count": 15,
404
  "id": "f1337db2-6ae5-4638-b98f-1e18aa7651a7",
405
  "metadata": {},
406
  "outputs": [
@@ -445,7 +445,7 @@
445
  },
446
  {
447
  "cell_type": "code",
448
- "execution_count": 16,
449
  "id": "0dc8660e-a70b-471e-bd90-ee379e9e7314",
450
  "metadata": {},
451
  "outputs": [],
@@ -455,7 +455,7 @@
455
  },
456
  {
457
  "cell_type": "code",
458
- "execution_count": 17,
459
  "id": "2d0bc42a-e714-46de-b9b5-9df97ec4d887",
460
  "metadata": {},
461
  "outputs": [
@@ -483,7 +483,7 @@
483
  },
484
  {
485
  "cell_type": "code",
486
- "execution_count": 18,
487
  "id": "4e0b3ae1-ba85-4673-a7c7-c4ffb11b0d20",
488
  "metadata": {},
489
  "outputs": [],
@@ -500,7 +500,7 @@
500
  },
501
  {
502
  "cell_type": "code",
503
- "execution_count": 19,
504
  "id": "d28f08ee-ae68-45e6-bf7a-b638f81cf3b8",
505
  "metadata": {},
506
  "outputs": [],
@@ -530,7 +530,7 @@
530
  },
531
  {
532
  "cell_type": "code",
533
- "execution_count": 20,
534
  "id": "a01c9f06-29d6-4f8b-9baa-95cc9e6dbede",
535
  "metadata": {},
536
  "outputs": [],
@@ -566,7 +566,7 @@
566
  },
567
  {
568
  "cell_type": "code",
569
- "execution_count": 21,
570
  "id": "e141220f-cd5f-4646-a417-1d31f97faf86",
571
  "metadata": {},
572
  "outputs": [],
@@ -627,10 +627,18 @@
627
  },
628
  {
629
  "cell_type": "code",
630
- "execution_count": null,
631
  "id": "8c4c2f72-fd88-4225-96cb-64f078df7e0e",
632
  "metadata": {},
633
- "outputs": [],
 
 
 
 
 
 
 
 
634
  "source": [
635
  "import torch\n",
636
  "import torchvision\n",
@@ -651,7 +659,7 @@
651
  },
652
  {
653
  "cell_type": "code",
654
- "execution_count": 22,
655
  "id": "80a80e04-3904-4396-becd-aea967e5135c",
656
  "metadata": {},
657
  "outputs": [
@@ -660,55 +668,55 @@
660
  "output_type": "stream",
661
  "text": [
662
  "Requirement already satisfied: ultralytics in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (8.3.161)\n",
663
- "Requirement already satisfied: scipy>=1.4.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (1.13.1)\n",
664
- "Requirement already satisfied: opencv-python>=4.6.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (4.11.0.86)\n",
665
- "Requirement already satisfied: ultralytics-thop>=2.0.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.0.14)\n",
666
  "Requirement already satisfied: torch>=1.8.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.7.1)\n",
667
- "Requirement already satisfied: psutil in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (7.0.0)\n",
668
  "Requirement already satisfied: torchvision>=0.9.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (0.22.1)\n",
669
  "Requirement already satisfied: py-cpuinfo in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (9.0.0)\n",
670
- "Requirement already satisfied: pillow>=7.1.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (10.4.0)\n",
671
- "Requirement already satisfied: requests>=2.23.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.32.4)\n",
672
- "Requirement already satisfied: matplotlib>=3.3.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (3.9.4)\n",
673
- "Requirement already satisfied: numpy>=1.23.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.0.2)\n",
674
  "Requirement already satisfied: pandas>=1.1.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.3.0)\n",
675
- "Requirement already satisfied: pyyaml>=5.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (6.0.2)\n",
 
 
676
  "Requirement already satisfied: tqdm>=4.64.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (4.67.1)\n",
677
- "Requirement already satisfied: cycler>=0.10 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (0.12.1)\n",
678
- "Requirement already satisfied: pyparsing>=2.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (3.2.3)\n",
679
- "Requirement already satisfied: kiwisolver>=1.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (1.4.7)\n",
680
- "Requirement already satisfied: packaging>=20.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (25.0)\n",
681
  "Requirement already satisfied: contourpy>=1.0.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (1.3.0)\n",
682
- "Requirement already satisfied: fonttools>=4.22.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (4.58.4)\n",
683
  "Requirement already satisfied: importlib-resources>=3.2.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (6.5.2)\n",
 
 
 
684
  "Requirement already satisfied: python-dateutil>=2.7 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (2.9.0.post0)\n",
685
- "Requirement already satisfied: pytz>=2020.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from pandas>=1.1.4->ultralytics) (2025.2)\n",
 
686
  "Requirement already satisfied: tzdata>=2022.7 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from pandas>=1.1.4->ultralytics) (2025.2)\n",
 
 
687
  "Requirement already satisfied: certifi>=2017.4.17 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (2025.6.15)\n",
688
  "Requirement already satisfied: urllib3<3,>=1.21.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (2.5.0)\n",
689
- "Requirement already satisfied: charset_normalizer<4,>=2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (3.4.2)\n",
690
  "Requirement already satisfied: idna<4,>=2.5 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (3.10)\n",
691
- "Requirement already satisfied: nvidia-cudnn-cu12==9.5.1.17 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (9.5.1.17)\n",
692
- "Requirement already satisfied: fsspec in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (2025.5.1)\n",
693
- "Requirement already satisfied: nvidia-cufft-cu12==11.3.0.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (11.3.0.4)\n",
694
- "Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.6.77 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.77)\n",
 
 
695
  "Requirement already satisfied: nvidia-nvtx-cu12==12.6.77 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.77)\n",
696
- "Requirement already satisfied: networkx in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (3.2.1)\n",
697
- "Requirement already satisfied: nvidia-cusolver-cu12==11.7.1.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (11.7.1.2)\n",
698
  "Requirement already satisfied: nvidia-cufile-cu12==1.11.1.6 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (1.11.1.6)\n",
 
 
699
  "Requirement already satisfied: nvidia-cusparselt-cu12==0.6.3 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (0.6.3)\n",
700
- "Requirement already satisfied: jinja2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (3.1.6)\n",
701
  "Requirement already satisfied: typing-extensions>=4.10.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (4.14.1)\n",
702
- "Requirement already satisfied: filelock in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (3.18.0)\n",
703
- "Requirement already satisfied: nvidia-cublas-cu12==12.6.4.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.4.1)\n",
704
  "Requirement already satisfied: nvidia-nvjitlink-cu12==12.6.85 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.85)\n",
705
- "Requirement already satisfied: triton==3.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (3.3.1)\n",
706
- "Requirement already satisfied: nvidia-cuda-cupti-cu12==12.6.80 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.80)\n",
707
- "Requirement already satisfied: nvidia-cuda-runtime-cu12==12.6.77 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.77)\n",
708
- "Requirement already satisfied: nvidia-cusparse-cu12==12.5.4.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.5.4.2)\n",
709
- "Requirement already satisfied: nvidia-nccl-cu12==2.26.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (2.26.2)\n",
710
  "Requirement already satisfied: sympy>=1.13.3 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (1.14.0)\n",
711
- "Requirement already satisfied: nvidia-curand-cu12==10.3.7.77 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (10.3.7.77)\n",
712
  "Requirement already satisfied: setuptools>=40.8.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from triton==3.3.1->torch>=1.8.0->ultralytics) (58.1.0)\n",
713
  "Requirement already satisfied: zipp>=3.1.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from importlib-resources>=3.2.0->matplotlib>=3.3.0->ultralytics) (3.23.0)\n",
714
  "Requirement already satisfied: six>=1.5 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib>=3.3.0->ultralytics) (1.17.0)\n",
@@ -726,7 +734,7 @@
726
  },
727
  {
728
  "cell_type": "code",
729
- "execution_count": 23,
730
  "id": "6596c2c4-3413-4e98-b4e1-929993927db7",
731
  "metadata": {},
732
  "outputs": [
@@ -735,18 +743,18 @@
735
  "output_type": "stream",
736
  "text": [
737
  "Requirement already satisfied: albumentations in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (2.0.8)\n",
738
- "Requirement already satisfied: eval-type-backport in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (0.2.2)\n",
739
- "Requirement already satisfied: albucore==0.0.24 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (0.0.24)\n",
740
- "Requirement already satisfied: pydantic>=2.9.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (2.10.6)\n",
741
- "Requirement already satisfied: opencv-python-headless>=4.9.0.80 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (4.11.0.86)\n",
742
- "Requirement already satisfied: typing-extensions>=4.9.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (4.14.1)\n",
743
  "Requirement already satisfied: scipy>=1.10.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (1.13.1)\n",
744
  "Requirement already satisfied: PyYAML in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (6.0.2)\n",
 
 
745
  "Requirement already satisfied: numpy>=1.24.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (2.0.2)\n",
746
- "Requirement already satisfied: simsimd>=5.9.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albucore==0.0.24->albumentations) (6.4.9)\n",
 
 
747
  "Requirement already satisfied: stringzilla>=3.10.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albucore==0.0.24->albumentations) (3.12.5)\n",
748
- "Requirement already satisfied: pydantic-core==2.27.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from pydantic>=2.9.2->albumentations) (2.27.2)\n",
749
  "Requirement already satisfied: annotated-types>=0.6.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from pydantic>=2.9.2->albumentations) (0.7.0)\n",
 
750
  "\n",
751
  "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.0.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.2\u001b[0m\n",
752
  "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n"
@@ -759,7 +767,7 @@
759
  },
760
  {
761
  "cell_type": "code",
762
- "execution_count": 24,
763
  "id": "f665634b-3409-4f95-8587-3141a9a1330d",
764
  "metadata": {},
765
  "outputs": [
@@ -768,16 +776,16 @@
768
  "output_type": "stream",
769
  "text": [
770
  "Requirement already satisfied: tensorboard in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (2.19.0)\n",
771
- "Requirement already satisfied: packaging in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (25.0)\n",
772
- "Requirement already satisfied: absl-py>=0.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (2.3.0)\n",
773
- "Requirement already satisfied: werkzeug>=1.0.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (3.1.3)\n",
774
  "Requirement already satisfied: setuptools>=41.0.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (58.1.0)\n",
 
775
  "Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (0.7.2)\n",
776
- "Requirement already satisfied: markdown>=2.6.8 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (3.8.2)\n",
 
777
  "Requirement already satisfied: grpcio>=1.48.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (1.73.1)\n",
 
778
  "Requirement already satisfied: six>1.9 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (1.17.0)\n",
779
- "Requirement already satisfied: numpy>=1.12.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (2.0.2)\n",
780
- "Requirement already satisfied: protobuf!=4.24.0,>=3.19.6 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (6.31.1)\n",
781
  "Requirement already satisfied: importlib-metadata>=4.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from markdown>=2.6.8->tensorboard) (8.7.0)\n",
782
  "Requirement already satisfied: MarkupSafe>=2.1.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from werkzeug>=1.0.1->tensorboard) (2.1.5)\n",
783
  "Requirement already satisfied: zipp>=3.20 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard) (3.23.0)\n",
@@ -793,36 +801,19 @@
793
  },
794
  {
795
  "cell_type": "code",
796
- "execution_count": 47,
797
  "id": "ab88ba4b-2136-40f3-a711-d176298a275d",
798
  "metadata": {},
799
  "outputs": [
800
- {
801
- "name": "stdout",
802
- "output_type": "stream",
803
- "text": [
804
- "The tensorboard extension is already loaded. To reload it, use:\n",
805
- " %reload_ext tensorboard\n"
806
- ]
807
- },
808
- {
809
- "data": {
810
- "text/plain": [
811
- "Reusing TensorBoard on port 6006 (pid 103198), started 16:08:58 ago. (Use '!kill 103198' to kill it.)"
812
- ]
813
- },
814
- "metadata": {},
815
- "output_type": "display_data"
816
- },
817
  {
818
  "data": {
819
  "text/html": [
820
  "\n",
821
- " <iframe id=\"tensorboard-frame-50f244556f25e2a2\" width=\"100%\" height=\"800\" frameborder=\"0\">\n",
822
  " </iframe>\n",
823
  " <script>\n",
824
  " (function() {\n",
825
- " const frame = document.getElementById(\"tensorboard-frame-50f244556f25e2a2\");\n",
826
  " const url = new URL(\"/\", window.location);\n",
827
  " const port = 6006;\n",
828
  " if (port) {\n",
@@ -848,7 +839,7 @@
848
  },
849
  {
850
  "cell_type": "code",
851
- "execution_count": 26,
852
  "id": "c19d9310-340a-490e-8668-f2f9fdf1c094",
853
  "metadata": {},
854
  "outputs": [
@@ -907,7 +898,7 @@
907
  },
908
  {
909
  "cell_type": "code",
910
- "execution_count": 27,
911
  "id": "abb9c333-ce15-45b8-ac04-e3e57a882378",
912
  "metadata": {},
913
  "outputs": [],
@@ -1171,7 +1162,7 @@
1171
  },
1172
  {
1173
  "cell_type": "code",
1174
- "execution_count": null,
1175
  "id": "0e9bbc6d-4172-4a66-bc77-d9332a92dfb9",
1176
  "metadata": {},
1177
  "outputs": [
@@ -1181,7 +1172,7 @@
1181
  "text": [
1182
  "New https://pypi.org/project/ultralytics/8.3.176 available πŸ˜ƒ Update with 'pip install -U ultralytics'\n",
1183
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
1184
- "\u001b[34m\u001b[1mengine/trainer: \u001b[0magnostic_nms=False, amp=True, augment=False, auto_augment=randaugment, batch=3, bgr=0.0, box=7.5, cache=False, cfg=None, classes=None, close_mosaic=10, cls=0.5, conf=None, copy_paste=0.4, copy_paste_mode=flip, cos_lr=False, cutmix=0.2, data=data/cots_yolo_dataset/cots_yolo_dataset.yaml, degrees=90, deterministic=True, device=None, dfl=1.5, dnn=False, dropout=0.0, dynamic=False, embed=None, epochs=2, erasing=0.4, exist_ok=False, fliplr=0.5, flipud=0.5, format=torchscript, fraction=1.0, freeze=22, half=False, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, imgsz=1920, int8=False, iou=0.7, keras=False, kobj=1.0, line_width=None, lr0=0.0001, lrf=0.01, mask_ratio=4, max_det=300, mixup=0.2, mode=train, model=yolo11m.pt, momentum=0.937, mosaic=1.0, multi_scale=False, name=train17, nbs=64, nms=False, opset=None, optimize=False, optimizer=AdamW, overlap_mask=True, patience=5, perspective=0.0, plots=True, pose=12.0, pretrained=True, profile=False, project=None, rect=False, resume=False, retina_masks=False, save=True, save_conf=False, save_crop=False, save_dir=runs/detect/train17, save_frames=False, save_json=False, save_period=1, save_txt=False, scale=0.9, seed=0, shear=5, show=False, show_boxes=True, show_conf=True, show_labels=True, simplify=True, single_cls=False, source=None, split=val, stream_buffer=False, task=detect, time=None, tracker=botsort.yaml, translate=0.4, val=True, verbose=True, vid_stride=1, visualize=False, warmup_bias_lr=0.1, warmup_epochs=3.0, warmup_momentum=0.8, weight_decay=0.0005, workers=8, workspace=None\n",
1185
  "Overriding model.yaml nc=80 with nc=1\n",
1186
  "\n",
1187
  " from n params module arguments \n",
@@ -1212,7 +1203,7 @@
1212
  "YOLO11m summary: 231 layers, 20,053,779 parameters, 20,053,763 gradients, 68.2 GFLOPs\n",
1213
  "\n",
1214
  "Transferred 643/649 items from pretrained weights\n",
1215
- "\u001b[34m\u001b[1mTensorBoard: \u001b[0mStart with 'tensorboard --logdir runs/detect/train17', view at http://localhost:6006/\n",
1216
  "Freezing layer 'model.0.conv.weight'\n",
1217
  "Freezing layer 'model.0.bn.weight'\n",
1218
  "Freezing layer 'model.0.bn.bias'\n",
@@ -1453,14 +1444,14 @@
1453
  "Freezing layer 'model.23.dfl.conv.weight'\n",
1454
  "\u001b[34m\u001b[1mAMP: \u001b[0mrunning Automatic Mixed Precision (AMP) checks...\n",
1455
  "\u001b[34m\u001b[1mAMP: \u001b[0mchecks passed βœ…\n",
1456
- "\u001b[34m\u001b[1mtrain: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 2511.9Β±3205.9 MB/s, size: 2272.2 KB)\n"
1457
  ]
1458
  },
1459
  {
1460
  "name": "stderr",
1461
  "output_type": "stream",
1462
  "text": [
1463
- "\u001b[34m\u001b[1mtrain: \u001b[0mScanning /home/light/personal_projects/vision_projects/notebooks/data/cot\u001b[0m"
1464
  ]
1465
  },
1466
  {
@@ -1485,26 +1476,26 @@
1485
  "name": "stdout",
1486
  "output_type": "stream",
1487
  "text": [
1488
- "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 865.5Β±149.9 MB/s, size: 2282.0 KB)\n"
1489
  ]
1490
  },
1491
  {
1492
  "name": "stderr",
1493
  "output_type": "stream",
1494
  "text": [
1495
- "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/vision_projects/notebooks/data/cots_\u001b[0m\n"
1496
  ]
1497
  },
1498
  {
1499
  "name": "stdout",
1500
  "output_type": "stream",
1501
  "text": [
1502
- "Plotting labels to runs/detect/train17/labels.jpg... \n",
1503
  "\u001b[34m\u001b[1moptimizer:\u001b[0m AdamW(lr=0.0001, momentum=0.937) with parameter groups 106 weight(decay=0.0), 113 weight(decay=0.0004921875), 112 bias(decay=0.0)\n",
1504
  "\u001b[34m\u001b[1mTensorBoard: \u001b[0mmodel graph visualization added βœ…\n",
1505
  "Image sizes 1920 train, 1920 val\n",
1506
  "Using 8 dataloader workers\n",
1507
- "Logging results to \u001b[1mruns/detect/train17\u001b[0m\n",
1508
  "Starting training for 2 epochs...\n",
1509
  "\n",
1510
  " Epoch GPU_mem box_loss cls_loss dfl_loss Instances Size\n"
@@ -1514,8 +1505,8 @@
1514
  "name": "stderr",
1515
  "output_type": "stream",
1516
  "text": [
1517
- " 1/2 4.68G 2.198 3.821 2.373 4 1920: 1\n",
1518
- " Class Images Instances Box(P R mAP50 m"
1519
  ]
1520
  },
1521
  {
@@ -1544,8 +1535,8 @@
1544
  "name": "stderr",
1545
  "output_type": "stream",
1546
  "text": [
1547
- " 2/2 4.68G 2 3.393 2.186 8 1920: 1\n",
1548
- " Class Images Instances Box(P R mAP50 m\n"
1549
  ]
1550
  },
1551
  {
@@ -1554,11 +1545,11 @@
1554
  "text": [
1555
  " all 917 1768 0.358 0.128 0.117 0.0519\n",
1556
  "\n",
1557
- "2 epochs completed in 0.177 hours.\n",
1558
- "Optimizer stripped from runs/detect/train17/weights/last.pt, 40.7MB\n",
1559
- "Optimizer stripped from runs/detect/train17/weights/best.pt, 40.7MB\n",
1560
  "\n",
1561
- "Validating runs/detect/train17/weights/best.pt...\n",
1562
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
1563
  "YOLO11m summary (fused): 125 layers, 20,030,803 parameters, 0 gradients, 67.6 GFLOPs\n"
1564
  ]
@@ -1567,7 +1558,7 @@
1567
  "name": "stderr",
1568
  "output_type": "stream",
1569
  "text": [
1570
- " Class Images Instances Box(P R mAP50 m\n"
1571
  ]
1572
  },
1573
  {
@@ -1575,11 +1566,11 @@
1575
  "output_type": "stream",
1576
  "text": [
1577
  " all 917 1768 0.356 0.129 0.118 0.052\n",
1578
- "Speed: 0.8ms preprocess, 17.8ms inference, 0.0ms loss, 1.2ms postprocess per image\n",
1579
- "Results saved to \u001b[1mruns/detect/train17\u001b[0m\n",
1580
  "New https://pypi.org/project/ultralytics/8.3.176 available πŸ˜ƒ Update with 'pip install -U ultralytics'\n",
1581
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
1582
- "\u001b[34m\u001b[1mengine/trainer: \u001b[0magnostic_nms=False, amp=True, augment=False, auto_augment=randaugment, batch=3, bgr=0.0, box=7.5, cache=False, cfg=None, classes=None, close_mosaic=10, cls=0.5, conf=None, copy_paste=0.4, copy_paste_mode=flip, cos_lr=False, cutmix=0.2, data=data/cots_yolo_dataset/cots_yolo_dataset.yaml, degrees=90, deterministic=True, device=None, dfl=1.5, dnn=False, dropout=0.2, dynamic=False, embed=None, epochs=60, erasing=0.4, exist_ok=False, fliplr=0.5, flipud=0.5, format=torchscript, fraction=1.0, freeze=None, half=False, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, imgsz=1920, int8=False, iou=0.7, keras=False, kobj=1.0, line_width=None, lr0=0.0001, lrf=0.01, mask_ratio=4, max_det=300, mixup=0.2, mode=train, model=yolo11m.pt, momentum=0.937, mosaic=1.0, multi_scale=False, name=train172, nbs=64, nms=False, opset=None, optimize=False, optimizer=AdamW, overlap_mask=True, patience=5, perspective=0.0, plots=True, pose=12.0, pretrained=True, profile=False, project=None, rect=False, resume=False, retina_masks=False, save=True, save_conf=False, save_crop=False, save_dir=runs/detect/train172, save_frames=False, save_json=False, save_period=5, save_txt=False, scale=0.9, seed=0, shear=5, show=False, show_boxes=True, show_conf=True, show_labels=True, simplify=True, single_cls=False, source=None, split=val, stream_buffer=False, task=detect, time=None, tracker=botsort.yaml, translate=0.4, val=True, verbose=True, vid_stride=1, visualize=False, warmup_bias_lr=0.1, warmup_epochs=3.0, warmup_momentum=0.8, weight_decay=0.0005, workers=8, workspace=None\n",
1583
  "\n",
1584
  " from n params module arguments \n",
1585
  " 0 -1 1 1856 ultralytics.nn.modules.conv.Conv [3, 64, 3, 2] \n",
@@ -1609,18 +1600,18 @@
1609
  "YOLO11m summary: 231 layers, 20,053,779 parameters, 20,053,763 gradients, 68.2 GFLOPs\n",
1610
  "\n",
1611
  "Transferred 649/649 items from pretrained weights\n",
1612
- "\u001b[34m\u001b[1mTensorBoard: \u001b[0mStart with 'tensorboard --logdir runs/detect/train172', view at http://localhost:6006/\n",
1613
  "Freezing layer 'model.23.dfl.conv.weight'\n",
1614
  "\u001b[34m\u001b[1mAMP: \u001b[0mrunning Automatic Mixed Precision (AMP) checks...\n",
1615
  "\u001b[34m\u001b[1mAMP: \u001b[0mchecks passed βœ…\n",
1616
- "\u001b[34m\u001b[1mtrain: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 3491.9Β±1668.3 MB/s, size: 2272.2 KB)\n"
1617
  ]
1618
  },
1619
  {
1620
  "name": "stderr",
1621
  "output_type": "stream",
1622
  "text": [
1623
- "\u001b[34m\u001b[1mtrain: \u001b[0mScanning /home/light/personal_projects/vision_projects/notebooks/data/cot\u001b[0m"
1624
  ]
1625
  },
1626
  {
@@ -1645,26 +1636,26 @@
1645
  "name": "stdout",
1646
  "output_type": "stream",
1647
  "text": [
1648
- "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 3211.5Β±2298.3 MB/s, size: 2282.0 KB)\n"
1649
  ]
1650
  },
1651
  {
1652
  "name": "stderr",
1653
  "output_type": "stream",
1654
  "text": [
1655
- "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/vision_projects/notebooks/data/cots_\u001b[0m\n"
1656
  ]
1657
  },
1658
  {
1659
  "name": "stdout",
1660
  "output_type": "stream",
1661
  "text": [
1662
- "Plotting labels to runs/detect/train172/labels.jpg... \n",
1663
  "\u001b[34m\u001b[1moptimizer:\u001b[0m AdamW(lr=0.0001, momentum=0.937) with parameter groups 106 weight(decay=0.0), 113 weight(decay=0.0004921875), 112 bias(decay=0.0)\n",
1664
  "\u001b[34m\u001b[1mTensorBoard: \u001b[0mmodel graph visualization added βœ…\n",
1665
  "Image sizes 1920 train, 1920 val\n",
1666
  "Using 8 dataloader workers\n",
1667
- "Logging results to \u001b[1mruns/detect/train172\u001b[0m\n",
1668
  "Starting training for 60 epochs...\n",
1669
  "\n",
1670
  " Epoch GPU_mem box_loss cls_loss dfl_loss Instances Size\n"
@@ -1674,15 +1665,28 @@
1674
  "name": "stderr",
1675
  "output_type": "stream",
1676
  "text": [
1677
- " 1/60 13.5G 1.794 2.824 1.924 4 1920: 1\n",
1678
- " Class Images Instances Box(P R mAP50 m\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1679
  ]
1680
  },
1681
  {
1682
  "name": "stdout",
1683
  "output_type": "stream",
1684
  "text": [
1685
- " all 917 1768 0.438 0.213 0.216 0.0882\n",
1686
  "\n",
1687
  " Epoch GPU_mem box_loss cls_loss dfl_loss Instances Size\n"
1688
  ]
@@ -1691,8 +1695,8 @@
1691
  "name": "stderr",
1692
  "output_type": "stream",
1693
  "text": [
1694
- " 2/60 14.7G 1.569 2.243 1.706 8 1920: 1\n",
1695
- " Class Images Instances Box(P R mAP50 m"
1696
  ]
1697
  },
1698
  {
@@ -1721,8 +1725,8 @@
1721
  "name": "stderr",
1722
  "output_type": "stream",
1723
  "text": [
1724
- " 3/60 14.7G 1.533 2.02 1.655 13 1920: 1\n",
1725
- " Class Images Instances Box(P R mAP50 m"
1726
  ]
1727
  },
1728
  {
@@ -1751,8 +1755,8 @@
1751
  "name": "stderr",
1752
  "output_type": "stream",
1753
  "text": [
1754
- " 4/60 14.7G 1.457 1.888 1.606 7 1920: 1\n",
1755
- " Class Images Instances Box(P R mAP50 m"
1756
  ]
1757
  },
1758
  {
@@ -1781,8 +1785,8 @@
1781
  "name": "stderr",
1782
  "output_type": "stream",
1783
  "text": [
1784
- " 5/60 14.7G 1.436 1.806 1.59 11 1920: 1\n",
1785
- " Class Images Instances Box(P R mAP50 m"
1786
  ]
1787
  },
1788
  {
@@ -1811,8 +1815,8 @@
1811
  "name": "stderr",
1812
  "output_type": "stream",
1813
  "text": [
1814
- " 6/60 14.7G 1.419 1.736 1.576 5 1920: 1\n",
1815
- " Class Images Instances Box(P R mAP50 m"
1816
  ]
1817
  },
1818
  {
@@ -1841,8 +1845,8 @@
1841
  "name": "stderr",
1842
  "output_type": "stream",
1843
  "text": [
1844
- " 7/60 14.7G 1.407 1.672 1.577 10 1920: 1\n",
1845
- " Class Images Instances Box(P R mAP50 m"
1846
  ]
1847
  },
1848
  {
@@ -1871,8 +1875,8 @@
1871
  "name": "stderr",
1872
  "output_type": "stream",
1873
  "text": [
1874
- " 8/60 14.7G 1.403 1.63 1.56 9 1920: 1\n",
1875
- " Class Images Instances Box(P R mAP50 m"
1876
  ]
1877
  },
1878
  {
@@ -1901,8 +1905,8 @@
1901
  "name": "stderr",
1902
  "output_type": "stream",
1903
  "text": [
1904
- " 9/60 14.7G 1.379 1.613 1.556 8 1920: 1\n",
1905
- " Class Images Instances Box(P R mAP50 m"
1906
  ]
1907
  },
1908
  {
@@ -1931,8 +1935,8 @@
1931
  "name": "stderr",
1932
  "output_type": "stream",
1933
  "text": [
1934
- " 10/60 14.7G 1.375 1.562 1.54 10 1920: 1\n",
1935
- " Class Images Instances Box(P R mAP50 m"
1936
  ]
1937
  },
1938
  {
@@ -1961,8 +1965,8 @@
1961
  "name": "stderr",
1962
  "output_type": "stream",
1963
  "text": [
1964
- " 11/60 14.7G 1.358 1.537 1.535 14 1920: 1\n",
1965
- " Class Images Instances Box(P R mAP50 m"
1966
  ]
1967
  },
1968
  {
@@ -1991,8 +1995,8 @@
1991
  "name": "stderr",
1992
  "output_type": "stream",
1993
  "text": [
1994
- " 12/60 14.7G 1.353 1.492 1.54 8 1920: 1\n",
1995
- " Class Images Instances Box(P R mAP50 m"
1996
  ]
1997
  },
1998
  {
@@ -2021,8 +2025,8 @@
2021
  "name": "stderr",
2022
  "output_type": "stream",
2023
  "text": [
2024
- " 13/60 14.7G 1.352 1.487 1.543 13 1920: 1\n",
2025
- " Class Images Instances Box(P R mAP50 m"
2026
  ]
2027
  },
2028
  {
@@ -2051,8 +2055,8 @@
2051
  "name": "stderr",
2052
  "output_type": "stream",
2053
  "text": [
2054
- " 14/60 14.7G 1.345 1.498 1.533 6 1920: 1\n",
2055
- " Class Images Instances Box(P R mAP50 m"
2056
  ]
2057
  },
2058
  {
@@ -2081,8 +2085,8 @@
2081
  "name": "stderr",
2082
  "output_type": "stream",
2083
  "text": [
2084
- " 15/60 14.7G 1.337 1.45 1.523 6 1920: 1\n",
2085
- " Class Images Instances Box(P R mAP50 m"
2086
  ]
2087
  },
2088
  {
@@ -2106,11 +2110,11 @@
2106
  "output_type": "stream",
2107
  "text": [
2108
  "\n",
2109
- "15 epochs completed in 2.839 hours.\n",
2110
- "Optimizer stripped from runs/detect/train172/weights/last.pt, 40.7MB\n",
2111
- "Optimizer stripped from runs/detect/train172/weights/best.pt, 40.7MB\n",
2112
  "\n",
2113
- "Validating runs/detect/train172/weights/best.pt...\n",
2114
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
2115
  "YOLO11m summary (fused): 125 layers, 20,030,803 parameters, 0 gradients, 67.6 GFLOPs\n"
2116
  ]
@@ -2119,7 +2123,7 @@
2119
  "name": "stderr",
2120
  "output_type": "stream",
2121
  "text": [
2122
- " Class Images Instances Box(P R mAP50 m\n"
2123
  ]
2124
  },
2125
  {
@@ -2127,14 +2131,19 @@
2127
  "output_type": "stream",
2128
  "text": [
2129
  " all 917 1768 0.817 0.637 0.702 0.405\n",
2130
- "Speed: 0.8ms preprocess, 17.9ms inference, 0.0ms loss, 1.0ms postprocess per image\n",
2131
- "Results saved to \u001b[1mruns/detect/train172\u001b[0m\n"
2132
  ]
2133
  }
2134
  ],
2135
  "source": [
2136
  "from ultralytics import YOLO\n",
2137
  "\n",
 
 
 
 
 
2138
  "# Load a pretrain model\n",
2139
  "model = YOLO('yolo11m.pt')\n",
2140
  "\n",
@@ -2173,7 +2182,8 @@
2173
  " task='detect',\n",
2174
  " save_period=1,\n",
2175
  " freeze = 22, #Freeze the first layers\n",
2176
- " **data_augment_args\n",
 
2177
  ")\n",
2178
  "\n",
2179
  "# Fine tune all model\n",
@@ -2186,6 +2196,7 @@
2186
  " dropout=0.2,\n",
2187
  " freeze = None,\n",
2188
  " **data_augment_args,\n",
 
2189
  ")\n",
2190
  "\n",
2191
  " "
@@ -2201,7 +2212,7 @@
2201
  },
2202
  {
2203
  "cell_type": "code",
2204
- "execution_count": 29,
2205
  "id": "459324cd-a36f-4d81-90f6-779ad3b7aff6",
2206
  "metadata": {},
2207
  "outputs": [],
@@ -2211,7 +2222,7 @@
2211
  },
2212
  {
2213
  "cell_type": "code",
2214
- "execution_count": 30,
2215
  "id": "58487efb-b7db-44ed-8eda-c903b06f45bb",
2216
  "metadata": {},
2217
  "outputs": [
@@ -2221,26 +2232,26 @@
2221
  "text": [
2222
  "Requirement already satisfied: supervision in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (0.25.1)\n",
2223
  "Requirement already satisfied: opencv-python>=4.5.5.64 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (4.11.0.86)\n",
2224
- "Requirement already satisfied: pyyaml>=5.3 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (6.0.2)\n",
2225
- "Requirement already satisfied: requests>=2.26.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (2.32.4)\n",
2226
- "Requirement already satisfied: tqdm>=4.62.3 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (4.67.1)\n",
2227
- "Requirement already satisfied: scipy<2.0.0,>=1.10.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (1.13.1)\n",
2228
  "Requirement already satisfied: contourpy>=1.0.7 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (1.3.0)\n",
2229
  "Requirement already satisfied: defusedxml<0.8.0,>=0.7.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (0.7.1)\n",
2230
- "Requirement already satisfied: pillow>=9.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (10.4.0)\n",
 
 
2231
  "Requirement already satisfied: numpy>=1.21.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (2.0.2)\n",
2232
- "Requirement already satisfied: matplotlib>=3.6.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (3.9.4)\n",
2233
- "Requirement already satisfied: kiwisolver>=1.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (1.4.7)\n",
2234
  "Requirement already satisfied: python-dateutil>=2.7 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (2.9.0.post0)\n",
2235
- "Requirement already satisfied: cycler>=0.10 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (0.12.1)\n",
2236
  "Requirement already satisfied: importlib-resources>=3.2.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (6.5.2)\n",
 
 
2237
  "Requirement already satisfied: packaging>=20.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (25.0)\n",
2238
- "Requirement already satisfied: fonttools>=4.22.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (4.58.4)\n",
2239
  "Requirement already satisfied: pyparsing>=2.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (3.2.3)\n",
2240
  "Requirement already satisfied: idna<4,>=2.5 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.26.0->supervision) (3.10)\n",
2241
- "Requirement already satisfied: charset_normalizer<4,>=2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.26.0->supervision) (3.4.2)\n",
2242
  "Requirement already satisfied: certifi>=2017.4.17 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.26.0->supervision) (2025.6.15)\n",
2243
  "Requirement already satisfied: urllib3<3,>=1.21.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.26.0->supervision) (2.5.0)\n",
 
2244
  "Requirement already satisfied: zipp>=3.1.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from importlib-resources>=3.2.0->matplotlib>=3.6.0->supervision) (3.23.0)\n",
2245
  "Requirement already satisfied: six>=1.5 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib>=3.6.0->supervision) (1.17.0)\n",
2246
  "\n",
@@ -2255,7 +2266,7 @@
2255
  },
2256
  {
2257
  "cell_type": "code",
2258
- "execution_count": 31,
2259
  "id": "a8f773c2-b1e8-4853-8b7f-99f4b9a59c74",
2260
  "metadata": {},
2261
  "outputs": [],
@@ -2278,7 +2289,7 @@
2278
  },
2279
  {
2280
  "cell_type": "code",
2281
- "execution_count": 32,
2282
  "id": "aaecd1ac-0d53-4aa3-a278-e3bc3be554c0",
2283
  "metadata": {},
2284
  "outputs": [],
@@ -2292,7 +2303,7 @@
2292
  },
2293
  {
2294
  "cell_type": "code",
2295
- "execution_count": 33,
2296
  "id": "537c83a3-2a37-43b9-8a2f-09a76ea4634b",
2297
  "metadata": {},
2298
  "outputs": [],
@@ -2333,7 +2344,7 @@
2333
  },
2334
  {
2335
  "cell_type": "code",
2336
- "execution_count": 34,
2337
  "id": "312ae47e-c77d-4c92-80ae-775a5e1b34b6",
2338
  "metadata": {},
2339
  "outputs": [
@@ -2364,7 +2375,7 @@
2364
  },
2365
  {
2366
  "cell_type": "code",
2367
- "execution_count": 35,
2368
  "id": "d9d5dba7-3023-49c9-8719-de8d46c94678",
2369
  "metadata": {},
2370
  "outputs": [
@@ -2395,7 +2406,7 @@
2395
  },
2396
  {
2397
  "cell_type": "code",
2398
- "execution_count": 36,
2399
  "id": "b6dae939-27fb-49f9-9839-7d446aded44d",
2400
  "metadata": {},
2401
  "outputs": [
@@ -2446,7 +2457,7 @@
2446
  },
2447
  {
2448
  "cell_type": "code",
2449
- "execution_count": 37,
2450
  "id": "449a20dc-79cd-4b78-add2-a97bedfea375",
2451
  "metadata": {},
2452
  "outputs": [
@@ -2455,15 +2466,15 @@
2455
  "output_type": "stream",
2456
  "text": [
2457
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
2458
- "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 977.7Β±94.8 MB/s, size: 2668.4 KB)\n"
2459
  ]
2460
  },
2461
  {
2462
  "name": "stderr",
2463
  "output_type": "stream",
2464
  "text": [
2465
- "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/vision_projects/notebooks/data/cots_\u001b[0m\n",
2466
- " Class Images Instances Box(P R mAP50 m\n"
2467
  ]
2468
  },
2469
  {
@@ -2471,8 +2482,8 @@
2471
  "output_type": "stream",
2472
  "text": [
2473
  " all 5235 6436 0.887 0.833 0.9 0.574\n",
2474
- "Speed: 0.8ms preprocess, 33.5ms inference, 0.0ms loss, 0.9ms postprocess per image\n",
2475
- "Results saved to \u001b[1mruns/detect/train1722\u001b[0m\n",
2476
  "F2 Score: 0.8435971699816329\n",
2477
  "mAP50 0.8997627559970964\n",
2478
  "mAP50-95 0.5735211022613346\n"
@@ -2493,7 +2504,7 @@
2493
  },
2494
  {
2495
  "cell_type": "code",
2496
- "execution_count": 38,
2497
  "id": "a2260e31-b364-42f1-b410-77376a7f5941",
2498
  "metadata": {},
2499
  "outputs": [
@@ -2502,15 +2513,15 @@
2502
  "output_type": "stream",
2503
  "text": [
2504
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
2505
- "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 1501.4Β±1399.0 MB/s, size: 2504.4 KB)\n"
2506
  ]
2507
  },
2508
  {
2509
  "name": "stderr",
2510
  "output_type": "stream",
2511
  "text": [
2512
- "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/vision_projects/notebooks/data/cots_\u001b[0m\n",
2513
- " Class Images Instances Box(P R mAP50 m\n"
2514
  ]
2515
  },
2516
  {
@@ -2518,8 +2529,8 @@
2518
  "output_type": "stream",
2519
  "text": [
2520
  " all 917 1768 0.821 0.637 0.702 0.407\n",
2521
- "Speed: 1.0ms preprocess, 34.3ms inference, 0.0ms loss, 1.1ms postprocess per image\n",
2522
- "Results saved to \u001b[1mruns/detect/train1723\u001b[0m\n",
2523
  "F2 Score: 0.6665938566597774\n",
2524
  "mAP50 0.7020953206267737\n",
2525
  "mAP50-95 0.40690137026758155\n"
@@ -2540,7 +2551,7 @@
2540
  },
2541
  {
2542
  "cell_type": "code",
2543
- "execution_count": 39,
2544
  "id": "65a5d850-ccf2-4d5b-99b3-b944751b84d1",
2545
  "metadata": {},
2546
  "outputs": [
@@ -2549,15 +2560,29 @@
2549
  "output_type": "stream",
2550
  "text": [
2551
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
2552
- "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 638.3Β±78.6 MB/s, size: 2563.2 KB)\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2553
  ]
2554
  },
2555
  {
2556
  "name": "stderr",
2557
  "output_type": "stream",
2558
  "text": [
2559
- "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/vision_projects/notebooks/data/cots_\u001b[0m\n",
2560
- " Class Images Instances Box(P R mAP50 m\n"
2561
  ]
2562
  },
2563
  {
@@ -2565,8 +2590,8 @@
2565
  "output_type": "stream",
2566
  "text": [
2567
  " all 1499 1004 0.877 0.764 0.819 0.377\n",
2568
- "Speed: 0.8ms preprocess, 33.7ms inference, 0.0ms loss, 0.8ms postprocess per image\n",
2569
- "Results saved to \u001b[1mruns/detect/train1724\u001b[0m\n",
2570
  "F2 Score: 0.7841299670635844\n",
2571
  "mAP50 0.8192513111358107\n",
2572
  "mAP50-95 0.37744414058421033\n"
 
83
  },
84
  {
85
  "cell_type": "code",
86
+ "execution_count": 1,
87
  "id": "0171cc0b-4425-4cb7-b084-0f406e58a287",
88
  "metadata": {},
89
  "outputs": [],
 
95
  },
96
  {
97
  "cell_type": "code",
98
+ "execution_count": 2,
99
  "id": "efd9a0ea-a343-4955-87ac-0b7635de709c",
100
  "metadata": {},
101
  "outputs": [],
 
112
  },
113
  {
114
  "cell_type": "code",
115
+ "execution_count": 3,
116
  "id": "6165ae5f-3ff9-438b-8057-562d6c44ab08",
117
  "metadata": {},
118
  "outputs": [
 
120
  "name": "stdout",
121
  "output_type": "stream",
122
  "text": [
123
+ "/home/light/personal_projects/cots_detection_project\n"
124
  ]
125
  }
126
  ],
 
141
  },
142
  {
143
  "cell_type": "code",
144
+ "execution_count": 4,
145
  "id": "84ff5bb0-d24c-48b0-a805-6a62a0dbab35",
146
  "metadata": {},
147
  "outputs": [],
 
167
  },
168
  {
169
  "cell_type": "code",
170
+ "execution_count": 5,
171
  "id": "3c5ac0f5-3895-43cc-83d3-77aabc234e99",
172
  "metadata": {},
173
  "outputs": [],
 
179
  },
180
  {
181
  "cell_type": "code",
182
+ "execution_count": 6,
183
  "id": "b641e9b9-230e-4686-8283-aa305b5b7ebc",
184
  "metadata": {},
185
  "outputs": [
 
192
  "dtype: object"
193
  ]
194
  },
195
+ "execution_count": 6,
196
  "metadata": {},
197
  "output_type": "execute_result"
198
  }
 
203
  },
204
  {
205
  "cell_type": "code",
206
+ "execution_count": 7,
207
  "id": "13022f50-cd2a-49d3-a13e-13f982196db1",
208
  "metadata": {},
209
  "outputs": [
 
214
  " {'id': 2, 'name': 'SCAR', 'supercategory': ''}]"
215
  ]
216
  },
217
+ "execution_count": 7,
218
  "metadata": {},
219
  "output_type": "execute_result"
220
  }
 
225
  },
226
  {
227
  "cell_type": "code",
228
+ "execution_count": 8,
229
  "id": "480e5363-7679-4a6c-b22b-6be05b747cdc",
230
  "metadata": {},
231
  "outputs": [
 
243
  " 'source': 'REEFSCAN_DEEP_02_20241026_020155_Judith'}"
244
  ]
245
  },
246
+ "execution_count": 8,
247
  "metadata": {},
248
  "output_type": "execute_result"
249
  }
 
254
  },
255
  {
256
  "cell_type": "code",
257
+ "execution_count": 9,
258
  "id": "b32bdf4d-9499-4aff-b18c-b93100d62a1f",
259
  "metadata": {},
260
  "outputs": [
 
298
  " 'attributes': {'comment': '', 'type': '', 'occluded': False}}"
299
  ]
300
  },
301
+ "execution_count": 9,
302
  "metadata": {},
303
  "output_type": "execute_result"
304
  }
 
317
  },
318
  {
319
  "cell_type": "code",
320
+ "execution_count": 10,
321
  "id": "e6049d45-0b03-4a1e-bae1-bb64243fe300",
322
  "metadata": {},
323
  "outputs": [],
 
334
  },
335
  {
336
  "cell_type": "code",
337
+ "execution_count": 11,
338
  "id": "25dd1dfd-d8f6-45f4-9760-f4f638698cb1",
339
  "metadata": {},
340
  "outputs": [
 
368
  },
369
  {
370
  "cell_type": "code",
371
+ "execution_count": 12,
372
  "id": "7a999041-427e-428a-9d02-ffc90a97543a",
373
  "metadata": {},
374
  "outputs": [
 
400
  },
401
  {
402
  "cell_type": "code",
403
+ "execution_count": 13,
404
  "id": "f1337db2-6ae5-4638-b98f-1e18aa7651a7",
405
  "metadata": {},
406
  "outputs": [
 
445
  },
446
  {
447
  "cell_type": "code",
448
+ "execution_count": 14,
449
  "id": "0dc8660e-a70b-471e-bd90-ee379e9e7314",
450
  "metadata": {},
451
  "outputs": [],
 
455
  },
456
  {
457
  "cell_type": "code",
458
+ "execution_count": 15,
459
  "id": "2d0bc42a-e714-46de-b9b5-9df97ec4d887",
460
  "metadata": {},
461
  "outputs": [
 
483
  },
484
  {
485
  "cell_type": "code",
486
+ "execution_count": 16,
487
  "id": "4e0b3ae1-ba85-4673-a7c7-c4ffb11b0d20",
488
  "metadata": {},
489
  "outputs": [],
 
500
  },
501
  {
502
  "cell_type": "code",
503
+ "execution_count": 17,
504
  "id": "d28f08ee-ae68-45e6-bf7a-b638f81cf3b8",
505
  "metadata": {},
506
  "outputs": [],
 
530
  },
531
  {
532
  "cell_type": "code",
533
+ "execution_count": 18,
534
  "id": "a01c9f06-29d6-4f8b-9baa-95cc9e6dbede",
535
  "metadata": {},
536
  "outputs": [],
 
566
  },
567
  {
568
  "cell_type": "code",
569
+ "execution_count": 19,
570
  "id": "e141220f-cd5f-4646-a417-1d31f97faf86",
571
  "metadata": {},
572
  "outputs": [],
 
627
  },
628
  {
629
  "cell_type": "code",
630
+ "execution_count": 20,
631
  "id": "8c4c2f72-fd88-4225-96cb-64f078df7e0e",
632
  "metadata": {},
633
+ "outputs": [
634
+ {
635
+ "name": "stdout",
636
+ "output_type": "stream",
637
+ "text": [
638
+ "Using device cuda\n"
639
+ ]
640
+ }
641
+ ],
642
  "source": [
643
  "import torch\n",
644
  "import torchvision\n",
 
659
  },
660
  {
661
  "cell_type": "code",
662
+ "execution_count": 21,
663
  "id": "80a80e04-3904-4396-becd-aea967e5135c",
664
  "metadata": {},
665
  "outputs": [
 
668
  "output_type": "stream",
669
  "text": [
670
  "Requirement already satisfied: ultralytics in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (8.3.161)\n",
671
+ "Requirement already satisfied: pyyaml>=5.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (6.0.2)\n",
672
+ "Requirement already satisfied: requests>=2.23.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.32.4)\n",
673
+ "Requirement already satisfied: pillow>=7.1.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (10.4.0)\n",
674
  "Requirement already satisfied: torch>=1.8.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.7.1)\n",
 
675
  "Requirement already satisfied: torchvision>=0.9.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (0.22.1)\n",
676
  "Requirement already satisfied: py-cpuinfo in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (9.0.0)\n",
677
+ "Requirement already satisfied: ultralytics-thop>=2.0.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.0.14)\n",
 
 
 
678
  "Requirement already satisfied: pandas>=1.1.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.3.0)\n",
679
+ "Requirement already satisfied: numpy>=1.23.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (2.0.2)\n",
680
+ "Requirement already satisfied: scipy>=1.4.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (1.13.1)\n",
681
+ "Requirement already satisfied: opencv-python>=4.6.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (4.11.0.86)\n",
682
  "Requirement already satisfied: tqdm>=4.64.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (4.67.1)\n",
683
+ "Requirement already satisfied: matplotlib>=3.3.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (3.9.4)\n",
684
+ "Requirement already satisfied: psutil in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from ultralytics) (7.0.0)\n",
 
 
685
  "Requirement already satisfied: contourpy>=1.0.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (1.3.0)\n",
 
686
  "Requirement already satisfied: importlib-resources>=3.2.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (6.5.2)\n",
687
+ "Requirement already satisfied: packaging>=20.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (25.0)\n",
688
+ "Requirement already satisfied: kiwisolver>=1.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (1.4.7)\n",
689
+ "Requirement already satisfied: cycler>=0.10 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (0.12.1)\n",
690
  "Requirement already satisfied: python-dateutil>=2.7 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (2.9.0.post0)\n",
691
+ "Requirement already satisfied: pyparsing>=2.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (3.2.3)\n",
692
+ "Requirement already satisfied: fonttools>=4.22.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.3.0->ultralytics) (4.58.4)\n",
693
  "Requirement already satisfied: tzdata>=2022.7 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from pandas>=1.1.4->ultralytics) (2025.2)\n",
694
+ "Requirement already satisfied: pytz>=2020.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from pandas>=1.1.4->ultralytics) (2025.2)\n",
695
+ "Requirement already satisfied: charset_normalizer<4,>=2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (3.4.2)\n",
696
  "Requirement already satisfied: certifi>=2017.4.17 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (2025.6.15)\n",
697
  "Requirement already satisfied: urllib3<3,>=1.21.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (2.5.0)\n",
 
698
  "Requirement already satisfied: idna<4,>=2.5 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (3.10)\n",
699
+ "Requirement already satisfied: triton==3.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (3.3.1)\n",
700
+ "Requirement already satisfied: nvidia-cuda-cupti-cu12==12.6.80 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.80)\n",
701
+ "Requirement already satisfied: nvidia-cublas-cu12==12.6.4.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.4.1)\n",
702
+ "Requirement already satisfied: jinja2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (3.1.6)\n",
703
+ "Requirement already satisfied: filelock in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (3.18.0)\n",
704
+ "Requirement already satisfied: nvidia-cusparse-cu12==12.5.4.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.5.4.2)\n",
705
  "Requirement already satisfied: nvidia-nvtx-cu12==12.6.77 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.77)\n",
706
+ "Requirement already satisfied: nvidia-nccl-cu12==2.26.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (2.26.2)\n",
 
707
  "Requirement already satisfied: nvidia-cufile-cu12==1.11.1.6 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (1.11.1.6)\n",
708
+ "Requirement already satisfied: nvidia-curand-cu12==10.3.7.77 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (10.3.7.77)\n",
709
+ "Requirement already satisfied: nvidia-cuda-runtime-cu12==12.6.77 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.77)\n",
710
  "Requirement already satisfied: nvidia-cusparselt-cu12==0.6.3 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (0.6.3)\n",
 
711
  "Requirement already satisfied: typing-extensions>=4.10.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (4.14.1)\n",
712
+ "Requirement already satisfied: networkx in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (3.2.1)\n",
 
713
  "Requirement already satisfied: nvidia-nvjitlink-cu12==12.6.85 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.85)\n",
714
+ "Requirement already satisfied: nvidia-cusolver-cu12==11.7.1.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (11.7.1.2)\n",
715
+ "Requirement already satisfied: nvidia-cudnn-cu12==9.5.1.17 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (9.5.1.17)\n",
716
+ "Requirement already satisfied: nvidia-cufft-cu12==11.3.0.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (11.3.0.4)\n",
717
+ "Requirement already satisfied: fsspec in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (2025.3.0)\n",
718
+ "Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.6.77 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (12.6.77)\n",
719
  "Requirement already satisfied: sympy>=1.13.3 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from torch>=1.8.0->ultralytics) (1.14.0)\n",
 
720
  "Requirement already satisfied: setuptools>=40.8.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from triton==3.3.1->torch>=1.8.0->ultralytics) (58.1.0)\n",
721
  "Requirement already satisfied: zipp>=3.1.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from importlib-resources>=3.2.0->matplotlib>=3.3.0->ultralytics) (3.23.0)\n",
722
  "Requirement already satisfied: six>=1.5 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib>=3.3.0->ultralytics) (1.17.0)\n",
 
734
  },
735
  {
736
  "cell_type": "code",
737
+ "execution_count": 22,
738
  "id": "6596c2c4-3413-4e98-b4e1-929993927db7",
739
  "metadata": {},
740
  "outputs": [
 
743
  "output_type": "stream",
744
  "text": [
745
  "Requirement already satisfied: albumentations in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (2.0.8)\n",
 
 
 
 
 
746
  "Requirement already satisfied: scipy>=1.10.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (1.13.1)\n",
747
  "Requirement already satisfied: PyYAML in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (6.0.2)\n",
748
+ "Requirement already satisfied: typing-extensions>=4.9.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (4.14.1)\n",
749
+ "Requirement already satisfied: pydantic>=2.9.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (2.10.6)\n",
750
  "Requirement already satisfied: numpy>=1.24.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (2.0.2)\n",
751
+ "Requirement already satisfied: albucore==0.0.24 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (0.0.24)\n",
752
+ "Requirement already satisfied: opencv-python-headless>=4.9.0.80 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (4.11.0.86)\n",
753
+ "Requirement already satisfied: eval-type-backport in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albumentations) (0.2.2)\n",
754
  "Requirement already satisfied: stringzilla>=3.10.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albucore==0.0.24->albumentations) (3.12.5)\n",
755
+ "Requirement already satisfied: simsimd>=5.9.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from albucore==0.0.24->albumentations) (6.4.9)\n",
756
  "Requirement already satisfied: annotated-types>=0.6.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from pydantic>=2.9.2->albumentations) (0.7.0)\n",
757
+ "Requirement already satisfied: pydantic-core==2.27.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from pydantic>=2.9.2->albumentations) (2.27.2)\n",
758
  "\n",
759
  "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.0.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.2\u001b[0m\n",
760
  "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n"
 
767
  },
768
  {
769
  "cell_type": "code",
770
+ "execution_count": 23,
771
  "id": "f665634b-3409-4f95-8587-3141a9a1330d",
772
  "metadata": {},
773
  "outputs": [
 
776
  "output_type": "stream",
777
  "text": [
778
  "Requirement already satisfied: tensorboard in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (2.19.0)\n",
 
 
 
779
  "Requirement already satisfied: setuptools>=41.0.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (58.1.0)\n",
780
+ "Requirement already satisfied: protobuf!=4.24.0,>=3.19.6 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (6.31.1)\n",
781
  "Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (0.7.2)\n",
782
+ "Requirement already satisfied: absl-py>=0.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (2.3.0)\n",
783
+ "Requirement already satisfied: numpy>=1.12.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (2.0.2)\n",
784
  "Requirement already satisfied: grpcio>=1.48.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (1.73.1)\n",
785
+ "Requirement already satisfied: packaging in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (25.0)\n",
786
  "Requirement already satisfied: six>1.9 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (1.17.0)\n",
787
+ "Requirement already satisfied: markdown>=2.6.8 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (3.8.2)\n",
788
+ "Requirement already satisfied: werkzeug>=1.0.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from tensorboard) (3.1.3)\n",
789
  "Requirement already satisfied: importlib-metadata>=4.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from markdown>=2.6.8->tensorboard) (8.7.0)\n",
790
  "Requirement already satisfied: MarkupSafe>=2.1.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from werkzeug>=1.0.1->tensorboard) (2.1.5)\n",
791
  "Requirement already satisfied: zipp>=3.20 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard) (3.23.0)\n",
 
801
  },
802
  {
803
  "cell_type": "code",
804
+ "execution_count": 24,
805
  "id": "ab88ba4b-2136-40f3-a711-d176298a275d",
806
  "metadata": {},
807
  "outputs": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
808
  {
809
  "data": {
810
  "text/html": [
811
  "\n",
812
+ " <iframe id=\"tensorboard-frame-f87b3da6e9f0de99\" width=\"100%\" height=\"800\" frameborder=\"0\">\n",
813
  " </iframe>\n",
814
  " <script>\n",
815
  " (function() {\n",
816
+ " const frame = document.getElementById(\"tensorboard-frame-f87b3da6e9f0de99\");\n",
817
  " const url = new URL(\"/\", window.location);\n",
818
  " const port = 6006;\n",
819
  " if (port) {\n",
 
839
  },
840
  {
841
  "cell_type": "code",
842
+ "execution_count": 25,
843
  "id": "c19d9310-340a-490e-8668-f2f9fdf1c094",
844
  "metadata": {},
845
  "outputs": [
 
898
  },
899
  {
900
  "cell_type": "code",
901
+ "execution_count": 26,
902
  "id": "abb9c333-ce15-45b8-ac04-e3e57a882378",
903
  "metadata": {},
904
  "outputs": [],
 
1162
  },
1163
  {
1164
  "cell_type": "code",
1165
+ "execution_count": 27,
1166
  "id": "0e9bbc6d-4172-4a66-bc77-d9332a92dfb9",
1167
  "metadata": {},
1168
  "outputs": [
 
1172
  "text": [
1173
  "New https://pypi.org/project/ultralytics/8.3.176 available πŸ˜ƒ Update with 'pip install -U ultralytics'\n",
1174
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
1175
+ "\u001b[34m\u001b[1mengine/trainer: \u001b[0magnostic_nms=False, amp=True, augment=False, auto_augment=randaugment, batch=3, bgr=0.0, box=7.5, cache=False, cfg=None, classes=None, close_mosaic=10, cls=0.5, conf=None, copy_paste=0.4, copy_paste_mode=flip, cos_lr=False, cutmix=0.2, data=data/cots_yolo_dataset/cots_yolo_dataset.yaml, degrees=90, deterministic=True, device=None, dfl=1.5, dnn=False, dropout=0.0, dynamic=False, embed=None, epochs=2, erasing=0.4, exist_ok=False, fliplr=0.5, flipud=0.5, format=torchscript, fraction=1.0, freeze=22, half=False, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, imgsz=1920, int8=False, iou=0.7, keras=False, kobj=1.0, line_width=None, lr0=0.0001, lrf=0.01, mask_ratio=4, max_det=300, mixup=0.2, mode=train, model=yolo11m.pt, momentum=0.937, mosaic=1.0, multi_scale=False, name=train, nbs=64, nms=False, opset=None, optimize=False, optimizer=AdamW, overlap_mask=True, patience=5, perspective=0.0, plots=True, pose=12.0, pretrained=True, profile=False, project=None, rect=False, resume=False, retina_masks=False, save=True, save_conf=False, save_crop=False, save_dir=runs/detect/train, save_frames=False, save_json=False, save_period=1, save_txt=False, scale=0.9, seed=0, shear=5, show=False, show_boxes=True, show_conf=True, show_labels=True, simplify=True, single_cls=False, source=None, split=val, stream_buffer=False, task=detect, time=None, tracker=botsort.yaml, translate=0.4, val=True, verbose=True, vid_stride=1, visualize=False, warmup_bias_lr=0.1, warmup_epochs=3.0, warmup_momentum=0.8, weight_decay=0.0005, workers=8, workspace=None\n",
1176
  "Overriding model.yaml nc=80 with nc=1\n",
1177
  "\n",
1178
  " from n params module arguments \n",
 
1203
  "YOLO11m summary: 231 layers, 20,053,779 parameters, 20,053,763 gradients, 68.2 GFLOPs\n",
1204
  "\n",
1205
  "Transferred 643/649 items from pretrained weights\n",
1206
+ "\u001b[34m\u001b[1mTensorBoard: \u001b[0mStart with 'tensorboard --logdir runs/detect/train', view at http://localhost:6006/\n",
1207
  "Freezing layer 'model.0.conv.weight'\n",
1208
  "Freezing layer 'model.0.bn.weight'\n",
1209
  "Freezing layer 'model.0.bn.bias'\n",
 
1444
  "Freezing layer 'model.23.dfl.conv.weight'\n",
1445
  "\u001b[34m\u001b[1mAMP: \u001b[0mrunning Automatic Mixed Precision (AMP) checks...\n",
1446
  "\u001b[34m\u001b[1mAMP: \u001b[0mchecks passed βœ…\n",
1447
+ "\u001b[34m\u001b[1mtrain: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 2606.2Β±3398.3 MB/s, size: 2272.2 KB)\n"
1448
  ]
1449
  },
1450
  {
1451
  "name": "stderr",
1452
  "output_type": "stream",
1453
  "text": [
1454
+ "\u001b[34m\u001b[1mtrain: \u001b[0mScanning /home/light/personal_projects/cots_detection_project/data/cots_yolo_dataset/labels/train.cache... 5235 im\u001b[0m"
1455
  ]
1456
  },
1457
  {
 
1476
  "name": "stdout",
1477
  "output_type": "stream",
1478
  "text": [
1479
+ "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 657.0Β±143.6 MB/s, size: 2282.0 KB)\n"
1480
  ]
1481
  },
1482
  {
1483
  "name": "stderr",
1484
  "output_type": "stream",
1485
  "text": [
1486
+ "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/cots_detection_project/data/cots_yolo_dataset/labels/val.cache... 917 images,\u001b[0m\n"
1487
  ]
1488
  },
1489
  {
1490
  "name": "stdout",
1491
  "output_type": "stream",
1492
  "text": [
1493
+ "Plotting labels to runs/detect/train/labels.jpg... \n",
1494
  "\u001b[34m\u001b[1moptimizer:\u001b[0m AdamW(lr=0.0001, momentum=0.937) with parameter groups 106 weight(decay=0.0), 113 weight(decay=0.0004921875), 112 bias(decay=0.0)\n",
1495
  "\u001b[34m\u001b[1mTensorBoard: \u001b[0mmodel graph visualization added βœ…\n",
1496
  "Image sizes 1920 train, 1920 val\n",
1497
  "Using 8 dataloader workers\n",
1498
+ "Logging results to \u001b[1mruns/detect/train\u001b[0m\n",
1499
  "Starting training for 2 epochs...\n",
1500
  "\n",
1501
  " Epoch GPU_mem box_loss cls_loss dfl_loss Instances Size\n"
 
1505
  "name": "stderr",
1506
  "output_type": "stream",
1507
  "text": [
1508
+ " 1/2 4.68G 2.198 3.821 2.373 4 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [04:41<00:00, \n",
1509
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:22"
1510
  ]
1511
  },
1512
  {
 
1535
  "name": "stderr",
1536
  "output_type": "stream",
1537
  "text": [
1538
+ " 2/2 4.68G 2 3.393 2.186 8 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [04:52<00:00, \n",
1539
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:21\n"
1540
  ]
1541
  },
1542
  {
 
1545
  "text": [
1546
  " all 917 1768 0.358 0.128 0.117 0.0519\n",
1547
  "\n",
1548
+ "2 epochs completed in 0.173 hours.\n",
1549
+ "Optimizer stripped from runs/detect/train/weights/last.pt, 40.7MB\n",
1550
+ "Optimizer stripped from runs/detect/train/weights/best.pt, 40.7MB\n",
1551
  "\n",
1552
+ "Validating runs/detect/train/weights/best.pt...\n",
1553
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
1554
  "YOLO11m summary (fused): 125 layers, 20,030,803 parameters, 0 gradients, 67.6 GFLOPs\n"
1555
  ]
 
1558
  "name": "stderr",
1559
  "output_type": "stream",
1560
  "text": [
1561
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:19\n"
1562
  ]
1563
  },
1564
  {
 
1566
  "output_type": "stream",
1567
  "text": [
1568
  " all 917 1768 0.356 0.129 0.118 0.052\n",
1569
+ "Speed: 0.7ms preprocess, 17.9ms inference, 0.0ms loss, 1.0ms postprocess per image\n",
1570
+ "Results saved to \u001b[1mruns/detect/train\u001b[0m\n",
1571
  "New https://pypi.org/project/ultralytics/8.3.176 available πŸ˜ƒ Update with 'pip install -U ultralytics'\n",
1572
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
1573
+ "\u001b[34m\u001b[1mengine/trainer: \u001b[0magnostic_nms=False, amp=True, augment=False, auto_augment=randaugment, batch=3, bgr=0.0, box=7.5, cache=False, cfg=None, classes=None, close_mosaic=10, cls=0.5, conf=None, copy_paste=0.4, copy_paste_mode=flip, cos_lr=False, cutmix=0.2, data=data/cots_yolo_dataset/cots_yolo_dataset.yaml, degrees=90, deterministic=True, device=None, dfl=1.5, dnn=False, dropout=0.2, dynamic=False, embed=None, epochs=60, erasing=0.4, exist_ok=False, fliplr=0.5, flipud=0.5, format=torchscript, fraction=1.0, freeze=None, half=False, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, imgsz=1920, int8=False, iou=0.7, keras=False, kobj=1.0, line_width=None, lr0=0.0001, lrf=0.01, mask_ratio=4, max_det=300, mixup=0.2, mode=train, model=yolo11m.pt, momentum=0.937, mosaic=1.0, multi_scale=False, name=train2, nbs=64, nms=False, opset=None, optimize=False, optimizer=AdamW, overlap_mask=True, patience=5, perspective=0.0, plots=True, pose=12.0, pretrained=True, profile=False, project=None, rect=False, resume=False, retina_masks=False, save=True, save_conf=False, save_crop=False, save_dir=runs/detect/train2, save_frames=False, save_json=False, save_period=5, save_txt=False, scale=0.9, seed=0, shear=5, show=False, show_boxes=True, show_conf=True, show_labels=True, simplify=True, single_cls=False, source=None, split=val, stream_buffer=False, task=detect, time=None, tracker=botsort.yaml, translate=0.4, val=True, verbose=True, vid_stride=1, visualize=False, warmup_bias_lr=0.1, warmup_epochs=3.0, warmup_momentum=0.8, weight_decay=0.0005, workers=8, workspace=None\n",
1574
  "\n",
1575
  " from n params module arguments \n",
1576
  " 0 -1 1 1856 ultralytics.nn.modules.conv.Conv [3, 64, 3, 2] \n",
 
1600
  "YOLO11m summary: 231 layers, 20,053,779 parameters, 20,053,763 gradients, 68.2 GFLOPs\n",
1601
  "\n",
1602
  "Transferred 649/649 items from pretrained weights\n",
1603
+ "\u001b[34m\u001b[1mTensorBoard: \u001b[0mStart with 'tensorboard --logdir runs/detect/train2', view at http://localhost:6006/\n",
1604
  "Freezing layer 'model.23.dfl.conv.weight'\n",
1605
  "\u001b[34m\u001b[1mAMP: \u001b[0mrunning Automatic Mixed Precision (AMP) checks...\n",
1606
  "\u001b[34m\u001b[1mAMP: \u001b[0mchecks passed βœ…\n",
1607
+ "\u001b[34m\u001b[1mtrain: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 1639.9Β±1970.9 MB/s, size: 2272.2 KB)\n"
1608
  ]
1609
  },
1610
  {
1611
  "name": "stderr",
1612
  "output_type": "stream",
1613
  "text": [
1614
+ "\u001b[34m\u001b[1mtrain: \u001b[0mScanning /home/light/personal_projects/cots_detection_project/data/cots_yolo_dataset/labels/train.cache... 5235 im\u001b[0m"
1615
  ]
1616
  },
1617
  {
 
1636
  "name": "stdout",
1637
  "output_type": "stream",
1638
  "text": [
1639
+ "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 3665.5Β±2484.2 MB/s, size: 2282.0 KB)\n"
1640
  ]
1641
  },
1642
  {
1643
  "name": "stderr",
1644
  "output_type": "stream",
1645
  "text": [
1646
+ "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/cots_detection_project/data/cots_yolo_dataset/labels/val.cache... 917 images,\u001b[0m\n"
1647
  ]
1648
  },
1649
  {
1650
  "name": "stdout",
1651
  "output_type": "stream",
1652
  "text": [
1653
+ "Plotting labels to runs/detect/train2/labels.jpg... \n",
1654
  "\u001b[34m\u001b[1moptimizer:\u001b[0m AdamW(lr=0.0001, momentum=0.937) with parameter groups 106 weight(decay=0.0), 113 weight(decay=0.0004921875), 112 bias(decay=0.0)\n",
1655
  "\u001b[34m\u001b[1mTensorBoard: \u001b[0mmodel graph visualization added βœ…\n",
1656
  "Image sizes 1920 train, 1920 val\n",
1657
  "Using 8 dataloader workers\n",
1658
+ "Logging results to \u001b[1mruns/detect/train2\u001b[0m\n",
1659
  "Starting training for 60 epochs...\n",
1660
  "\n",
1661
  " Epoch GPU_mem box_loss cls_loss dfl_loss Instances Size\n"
 
1665
  "name": "stderr",
1666
  "output_type": "stream",
1667
  "text": [
1668
+ " 1/60 13.5G 1.794 2.824 1.924 4 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:43<00:00, \n",
1669
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
1670
+ ]
1671
+ },
1672
+ {
1673
+ "name": "stdout",
1674
+ "output_type": "stream",
1675
+ "text": [
1676
+ " all 917 1768 0.438 0.213 0.216 0.0882\n"
1677
+ ]
1678
+ },
1679
+ {
1680
+ "name": "stderr",
1681
+ "output_type": "stream",
1682
+ "text": [
1683
+ "\n"
1684
  ]
1685
  },
1686
  {
1687
  "name": "stdout",
1688
  "output_type": "stream",
1689
  "text": [
 
1690
  "\n",
1691
  " Epoch GPU_mem box_loss cls_loss dfl_loss Instances Size\n"
1692
  ]
 
1695
  "name": "stderr",
1696
  "output_type": "stream",
1697
  "text": [
1698
+ " 2/60 14.7G 1.569 2.243 1.706 8 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:37<00:00, \n",
1699
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:19"
1700
  ]
1701
  },
1702
  {
 
1725
  "name": "stderr",
1726
  "output_type": "stream",
1727
  "text": [
1728
+ " 3/60 14.7G 1.533 2.02 1.655 13 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:37<00:00, \n",
1729
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
1730
  ]
1731
  },
1732
  {
 
1755
  "name": "stderr",
1756
  "output_type": "stream",
1757
  "text": [
1758
+ " 4/60 14.7G 1.457 1.888 1.606 7 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:45<00:00, \n",
1759
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
1760
  ]
1761
  },
1762
  {
 
1785
  "name": "stderr",
1786
  "output_type": "stream",
1787
  "text": [
1788
+ " 5/60 14.7G 1.436 1.806 1.59 11 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:38<00:00, \n",
1789
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:21"
1790
  ]
1791
  },
1792
  {
 
1815
  "name": "stderr",
1816
  "output_type": "stream",
1817
  "text": [
1818
+ " 6/60 14.7G 1.419 1.736 1.576 5 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:36<00:00, \n",
1819
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
1820
  ]
1821
  },
1822
  {
 
1845
  "name": "stderr",
1846
  "output_type": "stream",
1847
  "text": [
1848
+ " 7/60 14.7G 1.407 1.672 1.577 10 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:45<00:00, \n",
1849
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
1850
  ]
1851
  },
1852
  {
 
1875
  "name": "stderr",
1876
  "output_type": "stream",
1877
  "text": [
1878
+ " 8/60 14.7G 1.403 1.63 1.56 9 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:37<00:00, \n",
1879
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:19"
1880
  ]
1881
  },
1882
  {
 
1905
  "name": "stderr",
1906
  "output_type": "stream",
1907
  "text": [
1908
+ " 9/60 14.7G 1.379 1.613 1.556 8 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:41<00:00, \n",
1909
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:19"
1910
  ]
1911
  },
1912
  {
 
1935
  "name": "stderr",
1936
  "output_type": "stream",
1937
  "text": [
1938
+ " 10/60 14.7G 1.375 1.562 1.54 10 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:39<00:00, \n",
1939
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
1940
  ]
1941
  },
1942
  {
 
1965
  "name": "stderr",
1966
  "output_type": "stream",
1967
  "text": [
1968
+ " 11/60 14.7G 1.358 1.537 1.535 14 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:34<00:00, \n",
1969
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
1970
  ]
1971
  },
1972
  {
 
1995
  "name": "stderr",
1996
  "output_type": "stream",
1997
  "text": [
1998
+ " 12/60 14.7G 1.353 1.492 1.54 8 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:35<00:00, \n",
1999
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
2000
  ]
2001
  },
2002
  {
 
2025
  "name": "stderr",
2026
  "output_type": "stream",
2027
  "text": [
2028
+ " 13/60 14.7G 1.352 1.487 1.543 13 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:41<00:00, \n",
2029
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:21"
2030
  ]
2031
  },
2032
  {
 
2055
  "name": "stderr",
2056
  "output_type": "stream",
2057
  "text": [
2058
+ " 14/60 14.7G 1.345 1.498 1.533 6 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:37<00:00, \n",
2059
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
2060
  ]
2061
  },
2062
  {
 
2085
  "name": "stderr",
2086
  "output_type": "stream",
2087
  "text": [
2088
+ " 15/60 14.7G 1.337 1.45 1.523 6 1920: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1745/1745 [10:36<00:00, \n",
2089
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20"
2090
  ]
2091
  },
2092
  {
 
2110
  "output_type": "stream",
2111
  "text": [
2112
  "\n",
2113
+ "15 epochs completed in 2.755 hours.\n",
2114
+ "Optimizer stripped from runs/detect/train2/weights/last.pt, 40.7MB\n",
2115
+ "Optimizer stripped from runs/detect/train2/weights/best.pt, 40.7MB\n",
2116
  "\n",
2117
+ "Validating runs/detect/train2/weights/best.pt...\n",
2118
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
2119
  "YOLO11m summary (fused): 125 layers, 20,030,803 parameters, 0 gradients, 67.6 GFLOPs\n"
2120
  ]
 
2123
  "name": "stderr",
2124
  "output_type": "stream",
2125
  "text": [
2126
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153/153 [00:20\n"
2127
  ]
2128
  },
2129
  {
 
2131
  "output_type": "stream",
2132
  "text": [
2133
  " all 917 1768 0.817 0.637 0.702 0.405\n",
2134
+ "Speed: 0.8ms preprocess, 17.6ms inference, 0.0ms loss, 1.3ms postprocess per image\n",
2135
+ "Results saved to \u001b[1mruns/detect/train2\u001b[0m\n"
2136
  ]
2137
  }
2138
  ],
2139
  "source": [
2140
  "from ultralytics import YOLO\n",
2141
  "\n",
2142
+ "#Download pretrained model\n",
2143
+ "import urllib.request\n",
2144
+ "url = 'https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11m.pt'\n",
2145
+ "urllib.request.urlretrieve(url, 'yolo11m.pt')\n",
2146
+ "\n",
2147
  "# Load a pretrain model\n",
2148
  "model = YOLO('yolo11m.pt')\n",
2149
  "\n",
 
2182
  " task='detect',\n",
2183
  " save_period=1,\n",
2184
  " freeze = 22, #Freeze the first layers\n",
2185
+ " **data_augment_args,\n",
2186
+ " **training_args\n",
2187
  ")\n",
2188
  "\n",
2189
  "# Fine tune all model\n",
 
2196
  " dropout=0.2,\n",
2197
  " freeze = None,\n",
2198
  " **data_augment_args,\n",
2199
+ " **training_args\n",
2200
  ")\n",
2201
  "\n",
2202
  " "
 
2212
  },
2213
  {
2214
  "cell_type": "code",
2215
+ "execution_count": 28,
2216
  "id": "459324cd-a36f-4d81-90f6-779ad3b7aff6",
2217
  "metadata": {},
2218
  "outputs": [],
 
2222
  },
2223
  {
2224
  "cell_type": "code",
2225
+ "execution_count": 29,
2226
  "id": "58487efb-b7db-44ed-8eda-c903b06f45bb",
2227
  "metadata": {},
2228
  "outputs": [
 
2232
  "text": [
2233
  "Requirement already satisfied: supervision in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (0.25.1)\n",
2234
  "Requirement already satisfied: opencv-python>=4.5.5.64 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (4.11.0.86)\n",
2235
+ "Requirement already satisfied: matplotlib>=3.6.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (3.9.4)\n",
 
 
 
2236
  "Requirement already satisfied: contourpy>=1.0.7 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (1.3.0)\n",
2237
  "Requirement already satisfied: defusedxml<0.8.0,>=0.7.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (0.7.1)\n",
2238
+ "Requirement already satisfied: tqdm>=4.62.3 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (4.67.1)\n",
2239
+ "Requirement already satisfied: requests>=2.26.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (2.32.4)\n",
2240
+ "Requirement already satisfied: scipy<2.0.0,>=1.10.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (1.13.1)\n",
2241
  "Requirement already satisfied: numpy>=1.21.2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (2.0.2)\n",
2242
+ "Requirement already satisfied: pyyaml>=5.3 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (6.0.2)\n",
2243
+ "Requirement already satisfied: pillow>=9.4 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from supervision) (10.4.0)\n",
2244
  "Requirement already satisfied: python-dateutil>=2.7 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (2.9.0.post0)\n",
2245
+ "Requirement already satisfied: fonttools>=4.22.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (4.58.4)\n",
2246
  "Requirement already satisfied: importlib-resources>=3.2.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (6.5.2)\n",
2247
+ "Requirement already satisfied: kiwisolver>=1.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (1.4.7)\n",
2248
+ "Requirement already satisfied: cycler>=0.10 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (0.12.1)\n",
2249
  "Requirement already satisfied: packaging>=20.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (25.0)\n",
 
2250
  "Requirement already satisfied: pyparsing>=2.3.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from matplotlib>=3.6.0->supervision) (3.2.3)\n",
2251
  "Requirement already satisfied: idna<4,>=2.5 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.26.0->supervision) (3.10)\n",
 
2252
  "Requirement already satisfied: certifi>=2017.4.17 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.26.0->supervision) (2025.6.15)\n",
2253
  "Requirement already satisfied: urllib3<3,>=1.21.1 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.26.0->supervision) (2.5.0)\n",
2254
+ "Requirement already satisfied: charset_normalizer<4,>=2 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from requests>=2.26.0->supervision) (3.4.2)\n",
2255
  "Requirement already satisfied: zipp>=3.1.0 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from importlib-resources>=3.2.0->matplotlib>=3.6.0->supervision) (3.23.0)\n",
2256
  "Requirement already satisfied: six>=1.5 in /home/light/python_envs/ultralytics/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib>=3.6.0->supervision) (1.17.0)\n",
2257
  "\n",
 
2266
  },
2267
  {
2268
  "cell_type": "code",
2269
+ "execution_count": 30,
2270
  "id": "a8f773c2-b1e8-4853-8b7f-99f4b9a59c74",
2271
  "metadata": {},
2272
  "outputs": [],
 
2289
  },
2290
  {
2291
  "cell_type": "code",
2292
+ "execution_count": 31,
2293
  "id": "aaecd1ac-0d53-4aa3-a278-e3bc3be554c0",
2294
  "metadata": {},
2295
  "outputs": [],
 
2303
  },
2304
  {
2305
  "cell_type": "code",
2306
+ "execution_count": 32,
2307
  "id": "537c83a3-2a37-43b9-8a2f-09a76ea4634b",
2308
  "metadata": {},
2309
  "outputs": [],
 
2344
  },
2345
  {
2346
  "cell_type": "code",
2347
+ "execution_count": 33,
2348
  "id": "312ae47e-c77d-4c92-80ae-775a5e1b34b6",
2349
  "metadata": {},
2350
  "outputs": [
 
2375
  },
2376
  {
2377
  "cell_type": "code",
2378
+ "execution_count": 34,
2379
  "id": "d9d5dba7-3023-49c9-8719-de8d46c94678",
2380
  "metadata": {},
2381
  "outputs": [
 
2406
  },
2407
  {
2408
  "cell_type": "code",
2409
+ "execution_count": 35,
2410
  "id": "b6dae939-27fb-49f9-9839-7d446aded44d",
2411
  "metadata": {},
2412
  "outputs": [
 
2457
  },
2458
  {
2459
  "cell_type": "code",
2460
+ "execution_count": 36,
2461
  "id": "449a20dc-79cd-4b78-add2-a97bedfea375",
2462
  "metadata": {},
2463
  "outputs": [
 
2466
  "output_type": "stream",
2467
  "text": [
2468
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
2469
+ "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 668.0Β±301.8 MB/s, size: 2668.4 KB)\n"
2470
  ]
2471
  },
2472
  {
2473
  "name": "stderr",
2474
  "output_type": "stream",
2475
  "text": [
2476
+ "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/cots_detection_project/data/cots_yolo_dataset/labels/train.cache... 5235 imag\u001b[0m\n",
2477
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2618/2618 [03:\n"
2478
  ]
2479
  },
2480
  {
 
2482
  "output_type": "stream",
2483
  "text": [
2484
  " all 5235 6436 0.887 0.833 0.9 0.574\n",
2485
+ "Speed: 0.8ms preprocess, 33.9ms inference, 0.0ms loss, 1.0ms postprocess per image\n",
2486
+ "Results saved to \u001b[1mruns/detect/train22\u001b[0m\n",
2487
  "F2 Score: 0.8435971699816329\n",
2488
  "mAP50 0.8997627559970964\n",
2489
  "mAP50-95 0.5735211022613346\n"
 
2504
  },
2505
  {
2506
  "cell_type": "code",
2507
+ "execution_count": 37,
2508
  "id": "a2260e31-b364-42f1-b410-77376a7f5941",
2509
  "metadata": {},
2510
  "outputs": [
 
2513
  "output_type": "stream",
2514
  "text": [
2515
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
2516
+ "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 765.4Β±135.0 MB/s, size: 2504.4 KB)\n"
2517
  ]
2518
  },
2519
  {
2520
  "name": "stderr",
2521
  "output_type": "stream",
2522
  "text": [
2523
+ "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/cots_detection_project/data/cots_yolo_dataset/labels/val.cache... 917 images,\u001b[0m\n",
2524
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 459/459 [00:34\n"
2525
  ]
2526
  },
2527
  {
 
2529
  "output_type": "stream",
2530
  "text": [
2531
  " all 917 1768 0.821 0.637 0.702 0.407\n",
2532
+ "Speed: 0.8ms preprocess, 33.8ms inference, 0.0ms loss, 0.7ms postprocess per image\n",
2533
+ "Results saved to \u001b[1mruns/detect/train23\u001b[0m\n",
2534
  "F2 Score: 0.6665938566597774\n",
2535
  "mAP50 0.7020953206267737\n",
2536
  "mAP50-95 0.40690137026758155\n"
 
2551
  },
2552
  {
2553
  "cell_type": "code",
2554
+ "execution_count": 38,
2555
  "id": "65a5d850-ccf2-4d5b-99b3-b944751b84d1",
2556
  "metadata": {},
2557
  "outputs": [
 
2560
  "output_type": "stream",
2561
  "text": [
2562
  "Ultralytics 8.3.161 πŸš€ Python-3.9.22 torch-2.7.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4090 Laptop GPU, 15955MiB)\n",
2563
+ "\u001b[34m\u001b[1mval: \u001b[0mFast image access βœ… (ping: 0.0Β±0.0 ms, read: 642.7Β±87.8 MB/s, size: 2563.2 KB)\n"
2564
+ ]
2565
+ },
2566
+ {
2567
+ "name": "stderr",
2568
+ "output_type": "stream",
2569
+ "text": [
2570
+ "\u001b[34m\u001b[1mval: \u001b[0mScanning /home/light/personal_projects/cots_detection_project/data/cots_yolo_dataset/labels/test... 918 images, 581 \u001b[0m"
2571
+ ]
2572
+ },
2573
+ {
2574
+ "name": "stdout",
2575
+ "output_type": "stream",
2576
+ "text": [
2577
+ "\u001b[34m\u001b[1mval: \u001b[0mNew cache created: /home/light/personal_projects/cots_detection_project/data/cots_yolo_dataset/labels/test.cache\n"
2578
  ]
2579
  },
2580
  {
2581
  "name": "stderr",
2582
  "output_type": "stream",
2583
  "text": [
2584
+ "\n",
2585
+ " Class Images Instances Box(P R mAP50 mAP50-95): 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 750/750 [00:57\n"
2586
  ]
2587
  },
2588
  {
 
2590
  "output_type": "stream",
2591
  "text": [
2592
  " all 1499 1004 0.877 0.764 0.819 0.377\n",
2593
+ "Speed: 0.9ms preprocess, 33.6ms inference, 0.0ms loss, 0.9ms postprocess per image\n",
2594
+ "Results saved to \u001b[1mruns/detect/train24\u001b[0m\n",
2595
  "F2 Score: 0.7841299670635844\n",
2596
  "mAP50 0.8192513111358107\n",
2597
  "mAP50-95 0.37744414058421033\n"
yolo_predict_and_display.ipynb CHANGED
The diff for this file is too large to render. See raw diff