Add files using upload-large-folder tool
Browse files- LICENSE.md +7 -0
- README.md +95 -0
- data.yaml +19 -0
- images_and_labels.zip +3 -0
LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# License & Attribution
|
| 2 |
+
|
| 3 |
+
This dataset was built from original full-resolution PCB board photographs, re-annotated by the dataset author (ParsaVictor) into a 13-class component schema.
|
| 4 |
+
|
| 5 |
+
Released for **research, educational, and internal engineering use**. For commercial use or redistribution, please contact the author via their Hugging Face profile.
|
| 6 |
+
|
| 7 |
+
No warranty is provided on label accuracy; labels were manually reviewed but may contain errors — please report issues via the repository's community/discussion tab.
|
README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: research-use-mixed-sources
|
| 4 |
+
license_link: LICENSE.md
|
| 5 |
+
task_categories:
|
| 6 |
+
- object-detection
|
| 7 |
+
tags:
|
| 8 |
+
- pcb
|
| 9 |
+
- component-detection
|
| 10 |
+
- object-detection
|
| 11 |
+
- computer-vision
|
| 12 |
+
- yolo
|
| 13 |
+
- electronics
|
| 14 |
+
- printed-circuit-board
|
| 15 |
+
- pcb-components
|
| 16 |
+
- electronic-components
|
| 17 |
+
- manufacturing
|
| 18 |
+
- industrial-inspection
|
| 19 |
+
pretty_name: PCB Component Detection Dataset (High-Resolution)
|
| 20 |
+
size_categories:
|
| 21 |
+
- 1K<n<10K
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# PCB Component Detection Dataset (High-Resolution)
|
| 25 |
+
|
| 26 |
+
A YOLO-format object detection dataset for locating and classifying **electronic components on a printed circuit board** — resistors, capacitors, ICs, diodes, connectors, and more — from full high-resolution board photographs.
|
| 27 |
+
|
| 28 |
+
This dataset powers [`ParsaVictor/pcb-component-detection-yolo26`](https://huggingface.co/ParsaVictor/pcb-component-detection-yolo26), part of the [PCB Inspection Suite](https://huggingface.co/ParsaVictor/pcb-inspection-suite).
|
| 29 |
+
|
| 30 |
+
## Why high-resolution matters
|
| 31 |
+
|
| 32 |
+
A naive 640×640 export (the Roboflow default) shrinks small components like resistors down to a handful of pixels, which caps detector accuracy hard. This dataset was rebuilt from **original full-resolution board photographs** (median part size ~19px at the chosen tiling, vs ~6px in the original low-res export), with labels carefully re-mapped back onto the originals.
|
| 33 |
+
|
| 34 |
+
## Classes (13)
|
| 35 |
+
|
| 36 |
+
| Class | # instances |
|
| 37 |
+
|---|---|
|
| 38 |
+
| Resistor | 34,470 |
|
| 39 |
+
| Capacitor | 33,923 |
|
| 40 |
+
| IC | 12,015 |
|
| 41 |
+
| Electrolytic Capacitor | 10,508 |
|
| 42 |
+
| Transistor | 4,049 |
|
| 43 |
+
| Diode | 3,904 |
|
| 44 |
+
| Inductor | 3,402 |
|
| 45 |
+
| Connector | 2,867 |
|
| 46 |
+
| Marker | 2,465 |
|
| 47 |
+
| Other | 1,680 |
|
| 48 |
+
| LED | 444 |
|
| 49 |
+
| Switch/Button | 287 |
|
| 50 |
+
| Oscillator | 268 |
|
| 51 |
+
|
| 52 |
+
## Splits
|
| 53 |
+
|
| 54 |
+
| Split | Images |
|
| 55 |
+
|---|---|
|
| 56 |
+
| train | 3,005 |
|
| 57 |
+
| val | 321 |
|
| 58 |
+
| test | 292 |
|
| 59 |
+
|
| 60 |
+
Images are tiled crops from full-resolution board photographs (1024px tiles, 25% overlap) so components stay detectable at training resolution while the full board can still be reconstructed at inference time.
|
| 61 |
+
|
| 62 |
+
## Format
|
| 63 |
+
|
| 64 |
+
Standard YOLO format:
|
| 65 |
+
```
|
| 66 |
+
images/{train,val,test}/*.jpg
|
| 67 |
+
labels/{train,val,test}/*.txt # class_id x_center y_center width height (normalized)
|
| 68 |
+
data.yaml
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
A simplified **binary "any component" variant** (single class, same images) is also used internally as a first detection stage before fine-grained classification; see the suite overview for the two-stage pipeline.
|
| 72 |
+
|
| 73 |
+
## Quick start
|
| 74 |
+
|
| 75 |
+
```python
|
| 76 |
+
from ultralytics import YOLO
|
| 77 |
+
|
| 78 |
+
model = YOLO("yolo26s.pt")
|
| 79 |
+
model.train(data="data.yaml", imgsz=1024, epochs=80)
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
from huggingface_hub import snapshot_download
|
| 84 |
+
path = snapshot_download(repo_id="ParsaVictor/pcb-component-detection", repo_type="dataset")
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
## Related
|
| 88 |
+
|
| 89 |
+
- Sibling dataset: [pcb-bare-board-defect-detection](https://huggingface.co/datasets/ParsaVictor/pcb-bare-board-defect-detection)
|
| 90 |
+
- Sibling dataset: [pcb-solder-defect-detection](https://huggingface.co/datasets/ParsaVictor/pcb-solder-defect-detection)
|
| 91 |
+
- Full suite overview: [pcb-inspection-suite](https://huggingface.co/ParsaVictor/pcb-inspection-suite)
|
| 92 |
+
|
| 93 |
+
## License / attribution
|
| 94 |
+
|
| 95 |
+
Released for **research and development use**. Built from manually re-annotated, full-resolution board photographs. Contact the author before any commercial redistribution. See `LICENSE.md`.
|
data.yaml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
path: .
|
| 2 |
+
train: images/train
|
| 3 |
+
val: images/val
|
| 4 |
+
test: images/test
|
| 5 |
+
nc: 13
|
| 6 |
+
names:
|
| 7 |
+
0: Resistor
|
| 8 |
+
1: Capacitor
|
| 9 |
+
2: Electrolytic Capacitor
|
| 10 |
+
3: IC
|
| 11 |
+
4: Inductor
|
| 12 |
+
5: Diode
|
| 13 |
+
6: LED
|
| 14 |
+
7: Transistor
|
| 15 |
+
8: Oscillator
|
| 16 |
+
9: Connector
|
| 17 |
+
10: Switch/Button
|
| 18 |
+
11: Other
|
| 19 |
+
12: Marker
|
images_and_labels.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f6b4c27a24ea7d460d2ecd1c84b4f71fe42ca8e72dd4c1fa92803802ec3a17b
|
| 3 |
+
size 859663630
|