Computer Vision - PCB
Collection
Oriented bounding boxes and segmentation masks for Printed Circuit Boards โข 5 items โข Updated โข 1
Run SanderGi/PCB-SEG on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/SanderGi/PCB-SEG. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/SanderGi/PCB-SEG on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use SanderGi/PCB-SEG with ultralytics:
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
# pick the weights file from this repo's "Files and versions" tab
weights = hf_hub_download("SanderGi/PCB-SEG", "<weights>.pt")
model = YOLO(weights)
source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
model.predict(source=source, save=True)There are a lot of models for detecting components within a Printed Circuit Board (PCB), but not as many for detecting which pixels (if any) in an image contain the PCB itself. Being able to determine if and where a PCB is in an image is useful for calculating its size to estimate carbon footprint, as a preprocessing step for detecting components, to limit the amount of image more expensive PCB defect detection models have to process, and more.
Read more here.
the model weightspip install ultralyticsyolo task=segment mode=predict model=[path to model weights] source=[path to test image] from the terminal or with Python:from ultralytics import YOLO
model = YOLO('[path to model weights]')
results = model.predict('[path/to/test/image.jpg]')
| Dataset | Precision | Recall | F1 Score | mAP50 | mAP50-95 |
|---|---|---|---|---|---|
| Training | 100.0% | 23.2% | 37.7% | 39.4% | 39.1% |
| Validation | 99.9% | 39.6% | 56.7% | 51.7% | 51.0% |
| Test | 99.7% | 100% | 99.8% | 99.5% | 95.6% |
| Dataset | Precision | Recall | F1 Score | mAP50 | mAP50-95 |
|---|---|---|---|---|---|
| Training | 100.0% | 23.2% | 37.7% | 39.4% | 39.3% |
| Validation | 99.9% | 39.6% | 56.7% | 51.7% | 51.3% |
| Test | 99.7% | 100% | 99.8% | 99.5% | 94.5% |
Base model
Ultralytics/YOLO11