added analytics and logs

This commit is contained in:
2026-10-03 10:45:48 +02:00
parent c36f34dea9
commit 0715c66a64
11 changed files with 1597 additions and 11 deletions
+4
View File
@@ -35,6 +35,10 @@ class Config:
model_name: str = "face_detection_yolo"
save: bool = True
# Run log (src/common/run_log.py): one folder per training run
runs_dir: str = "runs" # empty = no run log
run_name: str = "" # added to the run folder name, e.g. "bn-lr3e-4"
# sample / webcam tasks
checkpoint: str = "" # empty = <save_dir>/<model_name>/<model_name>
threshold: float = 0.95 # confidence needed to draw a box
+1 -1
View File
@@ -62,7 +62,7 @@ def train(cfg: Config):
fit(model, YoloLoss(), optimizer, train_loader, val_loader, device,
epochs=cfg.epochs, save_dir=cfg.save_dir, model_name=cfg.model_name, save=cfg.save,
monitor="loss")
monitor="loss", config=cfg)
def view_data(cfg: Config):