Initial commit: Recycling object detection project

- Added Fast api web application for recycling object detection
- Included YOLOv8 model training notebook
- Set up project structure with datasets and training directories
- Added requirements.txt for dependencies
- Configured .gitignore for Python virtual environment and cache files
This commit is contained in:
boladeE
2025-04-23 19:18:05 +01:00
commit a6e52f8ad0
454 changed files with 2649 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

+104
View File
@@ -0,0 +1,104 @@
task: detect
mode: train
model: yolov8n.pt
data: c:\Users\babaw\Documents\Work\Mana Knight Digital\ds_task_recycling_project\datasets\data.yaml
epochs: 10
time: null
patience: 100
batch: 16
imgsz: 640
save: true
save_period: -1
cache: false
device: null
workers: 8
project: null
name: train
exist_ok: false
pretrained: true
optimizer: auto
verbose: true
seed: 0
deterministic: true
single_cls: false
rect: false
cos_lr: false
close_mosaic: 10
resume: false
amp: true
fraction: 1.0
profile: false
freeze: null
multi_scale: false
overlap_mask: true
mask_ratio: 4
dropout: 0.0
val: true
split: val
save_json: false
conf: null
iou: 0.7
max_det: 300
half: false
dnn: false
plots: true
source: null
vid_stride: 1
stream_buffer: false
visualize: false
augment: false
agnostic_nms: false
classes: null
retina_masks: false
embed: null
show: false
save_frames: false
save_txt: false
save_conf: false
save_crop: false
show_labels: true
show_conf: true
show_boxes: true
line_width: null
format: torchscript
keras: false
optimize: false
int8: false
dynamic: false
simplify: true
opset: null
workspace: null
nms: false
lr0: 0.01
lrf: 0.01
momentum: 0.937
weight_decay: 0.0005
warmup_epochs: 3.0
warmup_momentum: 0.8
warmup_bias_lr: 0.1
box: 7.5
cls: 0.5
dfl: 1.5
pose: 12.0
kobj: 1.0
nbs: 64
hsv_h: 0.015
hsv_s: 0.7
hsv_v: 0.4
degrees: 0.0
translate: 0.1
scale: 0.5
shear: 0.0
perspective: 0.0
flipud: 0.0
fliplr: 0.5
bgr: 0.0
mosaic: 1.0
mixup: 0.0
copy_paste: 0.0
copy_paste_mode: flip
auto_augment: randaugment
erasing: 0.4
cfg: null
tracker: botsort.yaml
save_dir: c:\Users\babaw\Documents\Work\Mana Knight Digital\ds_task_recycling_project\datasets\runs\detect\train
Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

+11
View File
@@ -0,0 +1,11 @@
epoch,time,train/box_loss,train/cls_loss,train/dfl_loss,metrics/precision(B),metrics/recall(B),metrics/mAP50(B),metrics/mAP50-95(B),val/box_loss,val/cls_loss,val/dfl_loss,lr/pg0,lr/pg1,lr/pg2
1,5.84441,2.52572,4.05767,2.33015,0.01111,0.83333,0.01397,0.00503,1.80865,3.21124,1.88138,0,0,0
2,14.1917,2.49251,3.90367,2.29723,0.01222,0.91667,0.01909,0.00577,1.75159,3.20293,1.83773,1.802e-05,1.802e-05,1.802e-05
3,21.6495,2.35908,3.84944,2.26983,0.01222,0.91667,0.02178,0.00655,1.70747,3.19626,1.79613,3.208e-05,3.208e-05,3.208e-05
4,28.189,2.00446,3.79535,1.99834,0.01222,0.91667,0.03132,0.00904,1.64821,3.16944,1.75366,4.218e-05,4.218e-05,4.218e-05
5,34.8909,1.99184,3.67331,1.94502,0.01333,1,0.0291,0.01058,1.58662,3.16606,1.70011,4.832e-05,4.832e-05,4.832e-05
6,41.335,1.87066,3.55622,1.81437,0.01333,1,0.04292,0.01751,1.53459,3.13911,1.66568,5.05e-05,5.05e-05,5.05e-05
7,49.1966,1.7327,3.25049,1.64998,0.01333,1,0.04882,0.02294,1.50023,3.0825,1.61293,4.872e-05,4.872e-05,4.872e-05
8,56.5369,1.69186,3.23316,1.53494,0.01278,0.95833,0.06212,0.02922,1.45621,3.04023,1.56708,4.298e-05,4.298e-05,4.298e-05
9,63.2091,1.53858,3.09146,1.50261,0.01278,0.95833,0.08811,0.03331,1.39336,3.0391,1.51951,3.328e-05,3.328e-05,3.328e-05
10,69.7537,1.67113,3.06553,1.46777,0.01278,0.95833,0.08706,0.03455,1.38625,3.03201,1.50917,1.962e-05,1.962e-05,1.962e-05
1 epoch time train/box_loss train/cls_loss train/dfl_loss metrics/precision(B) metrics/recall(B) metrics/mAP50(B) metrics/mAP50-95(B) val/box_loss val/cls_loss val/dfl_loss lr/pg0 lr/pg1 lr/pg2
2 1 5.84441 2.52572 4.05767 2.33015 0.01111 0.83333 0.01397 0.00503 1.80865 3.21124 1.88138 0 0 0
3 2 14.1917 2.49251 3.90367 2.29723 0.01222 0.91667 0.01909 0.00577 1.75159 3.20293 1.83773 1.802e-05 1.802e-05 1.802e-05
4 3 21.6495 2.35908 3.84944 2.26983 0.01222 0.91667 0.02178 0.00655 1.70747 3.19626 1.79613 3.208e-05 3.208e-05 3.208e-05
5 4 28.189 2.00446 3.79535 1.99834 0.01222 0.91667 0.03132 0.00904 1.64821 3.16944 1.75366 4.218e-05 4.218e-05 4.218e-05
6 5 34.8909 1.99184 3.67331 1.94502 0.01333 1 0.0291 0.01058 1.58662 3.16606 1.70011 4.832e-05 4.832e-05 4.832e-05
7 6 41.335 1.87066 3.55622 1.81437 0.01333 1 0.04292 0.01751 1.53459 3.13911 1.66568 5.05e-05 5.05e-05 5.05e-05
8 7 49.1966 1.7327 3.25049 1.64998 0.01333 1 0.04882 0.02294 1.50023 3.0825 1.61293 4.872e-05 4.872e-05 4.872e-05
9 8 56.5369 1.69186 3.23316 1.53494 0.01278 0.95833 0.06212 0.02922 1.45621 3.04023 1.56708 4.298e-05 4.298e-05 4.298e-05
10 9 63.2091 1.53858 3.09146 1.50261 0.01278 0.95833 0.08811 0.03331 1.39336 3.0391 1.51951 3.328e-05 3.328e-05 3.328e-05
11 10 69.7537 1.67113 3.06553 1.46777 0.01278 0.95833 0.08706 0.03455 1.38625 3.03201 1.50917 1.962e-05 1.962e-05 1.962e-05
Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.
Binary file not shown.