-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Lukasz825700516/lukasz-train_model
Model training
- Loading branch information
Showing
25 changed files
with
290 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
names: | ||
- Eldery | ||
- Adult | ||
- Child | ||
- Wheelchair | ||
- Blind | ||
- Suitcase | ||
nc: 6 | ||
path: ../KPZ-2024-traffic_lights/Datasets | ||
test: test/images | ||
train: train/images | ||
val: valid/images | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
task: detect | ||
mode: train | ||
model: yolov8n.pt | ||
data: Datasets/data.yaml | ||
epochs: 3 | ||
time: null | ||
patience: 100 | ||
batch: 16 | ||
imgsz: 640 | ||
save: true | ||
save_period: -1 | ||
cache: false | ||
device: null | ||
workers: 8 | ||
project: null | ||
name: train9 | ||
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 | ||
save_hybrid: 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: false | ||
opset: null | ||
workspace: 4 | ||
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 | ||
label_smoothing: 0.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 | ||
auto_augment: randaugment | ||
erasing: 0.4 | ||
crop_fraction: 1.0 | ||
cfg: null | ||
tracker: botsort.yaml | ||
save_dir: /var/home/me/Projects/KPZ-2024-traffic_lights/runs/detect/train9 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
epoch, 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, 1.699, 1.9112, 1.2726, 0.73916, 0.53425, 0.635, 0.32422, 1.3878, 1.3308, 1.3559, 0.00033298, 0.00033298, 0.00033298 | ||
2, 1.5975, 1.2346, 1.2225, 0.76788, 0.609, 0.69417, 0.39321, 1.3002, 0.90596, 1.2696, 0.00044643, 0.00044643, 0.00044643 | ||
3, 1.5252, 1.0531, 1.1834, 0.77691, 0.69035, 0.77057, 0.45187, 1.2254, 0.78682, 1.2173, 0.00033988, 0.00033988, 0.00033988 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Training | ||
|
||
For training four datasets have been used | ||
|
||
- Child Elderly Adult dataset | ||
https://universe.roboflow.com/gist-awllb/dl-bhh3b | ||
|
||
- Blind dataset | ||
https://www.kaggle.com/datasets/jangbyeonghui/visually-impairedwhitecane | ||
|
||
- Suitcase dataset | ||
https://www.kaggle.com/datasets/dataclusterlabs/suitcaseluggage-dataset | ||
|
||
- Wheelchair dataset | ||
https://universe.roboflow.com/obj-detection-gmggm/objectdetect-iga7u | ||
|
||
Before usage those datasets have been merged into one large dataset with | ||
label class space spanning all unique classes from original datasets. | ||
|
||
|
||
The trained model was based on the YOLOv8 architecture using the cli tool | ||
from the `urtlanalisis` python package, and the results of training were saved in | ||
the `last_run` directory. | ||
|
||
|
||
![confiusion graph](./last_run/confusion/matrix_notmalized.png "Confusion graph of trained model") | ||
|
||
Above confusion matrix presents the results of model training. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters