EdgePCB YOLOv8 Defect Detection Model

Overview

This repository contains a trained YOLOv8-based object detection model for automated detection of defects in Printed Circuit Boards (PCBs). The model is part of the EdgePCB-AI project, designed for real-time industrial inspection using edge devices such as the NVIDIA Jetson Orin.

The model is optimized for detecting multiple defect types in PCB images with high accuracy and real-time performance.


Model Details

  • Model Architecture: YOLOv8 (Ultralytics)
  • Task: Object Detection
  • Classes: 6 PCB defect categories
  • Input Size: 640ร—640
  • Framework: PyTorch
  • Optimization: TensorRT (FP16 / INT8 for edge deployment)

Classes

The model detects the following PCB defects:

  1. Missing Hole
  2. Mouse Bite
  3. Open Circuit
  4. Short Circuit
  5. Spur
  6. Spurious Copper

Training Details

  • Dataset Size: ~28,000 images
  • Annotation Format: YOLO
  • Training Platform: Google Colab (NVIDIA Tesla T4 GPU)
  • Augmentations: Mosaic, flipping, scaling, brightness adjustments
  • Epochs: ~30โ€“80

Performance

Metric Value
Precision ~0.98
Recall ~0.99
mAP@0.5 ~0.99
mAP@0.5:0.95 ~0.63

The model achieves high detection accuracy while maintaining real-time inference capability.


Deployment

The model is deployed on:

  • Edge Device: NVIDIA Jetson Orin 8GB
  • Inference Engine: TensorRT
  • Framework: NVIDIA DeepStream
  • Performance: ~25โ€“30 FPS

Usage

Install Dependencies

pip install ultralytics opencv-python

Inference Example

from ultralytics import YOLO

model = YOLO("best.pt")
results = model("image.jpg", show=True)

Applications

  • Automated PCB inspection
  • Industrial quality control
  • Edge AI-based manufacturing systems
  • Real-time defect detection pipelines

Limitations

  • Performance may degrade on extremely small or low-contrast defects
  • Sensitive to drastic lighting variations
  • Requires diverse dataset for better generalization

License

Specify your license (MIT / Apache 2.0 / Custom)


Author

Tanish Jain B.Tech Electronics & Telecommunications Engineering VIIT Pune


Citation

If you use this model in your work, please cite:

EdgePCB-AI: Real-Time PCB Defect Detection Using Embedded Vision

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support