thangkt/PCB-Prune-YOLO-DeepPCB
Updated • 17
How to use thangkt/PCB-Prune-YOLO-Baseline with ultralytics:
from ultralytics import YOLOvv8
model = YOLOvv8.from_pretrained("thangkt/PCB-Prune-YOLO-Baseline")
source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
model.predict(source=source, save=True)YOLOv8n baseline trained on DeepPCB to detect six PCB defect classes: open, short, mousebite, spur, copper, and pin-hole.
The best checkpoint was selected on the validation split at epoch 98 of 100.
These are validation results. The official test split should only be evaluated for the final report.
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