Team Ai
Modelpublic

thangkt/PCB-Prune-YOLO-Baseline

sourceHugging Facemitupdated 2mo agoView on Hugging Face
0likes19downloads
Model Card

PCB-Prune-YOLO YOLOv8n Baseline

YOLOv8n baseline trained on DeepPCB to detect six PCB defect classes: open, short, mousebite, spur, copper, and pin-hole.

Validation results

The best checkpoint was selected on the validation split at epoch 98 of 100.

MetricValue
Precision0.96545
Recall0.97221
mAP@0.50.98630
mAP@0.5:0.950.78524

These are validation results. The official test split should only be evaluated for the final report.

Training configuration

  • —Model: YOLOv8n pretrained checkpoint
  • —Image size: 640
  • —Global batch size: 128 (64 per GPU)
  • —Hardware: 2x Tesla T4
  • —Maximum epochs: 100
  • —Best epoch: 98
  • —AMP: enabled
  • —Seed: 42

Usage

python
from ultralytics import YOLO

model = YOLO("best.pt")
results = model.predict("pcb.jpg")

The checkpoint is stored as best.pt. args.yaml and results.csv contain the training configuration and epoch history.

Source code: https://github.com/pnthang04/PCB-Prune-YOLO