Instructions to use rltjr/pcb-defect-yolo11s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use rltjr/pcb-defect-yolo11s 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("rltjr/pcb-defect-yolo11s", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
PCB ๊ฒฐํจ ๊ฒ์ถ ๋ชจ๋ธ (YOLO11s)
PCB(์ธ์ํ๋ก๊ธฐํ) ์ฌ์ง์์ ๊ฒฐํจ 8์ข ์ ์์น์ ์ ํ์ ์ฐพ๋ YOLO11s ๊ฒ์ถ ๋ชจ๋ธ์ ๋๋ค. ๊ตญ๋ฆฝ์ฐฝ์๋ AI Agent ํด์ปคํค TOPIC 01 ใ๋ถํ ๋ถ๋ ์ฌ์ง ๋ถ์ AI Agentใ์ ์ฌ์ง ๋ถ์ ๋จ๊ณ(STEP 1) ์ฉ์ผ๋ก ๋ง๋ค์์ต๋๋ค.
YOLO11s object detector for 8 bare-PCB defect types, trained on a leakage-free re-split of a public Roboflow dataset.
ํด๋์ค
| id | ํด๋์ค | ํ๊ธ๋ช | ์ฌ๊ฐ๋(์ง์๋ฒ ์ด์ค) |
|---|---|---|---|
| 0 | falsecopper | ์์ฌ ๋๋ฐ | major |
| 1 | missinghole | ํ ๋๋ฝ | critical |
| 2 | mousebite | ๋ง์ฐ์ค๋ฐ์ดํธ | major |
| 3 | opencircuit | ๋จ์ | critical |
| 4 | pinhole | ํํ | minor |
| 5 | scratch | ์คํฌ๋์น | minor |
| 6 | shortcircuit | ๋จ๋ฝ | critical |
| 7 | spur | ์คํผ | major |
๊ฒฐํจ๋ณ ์์ธ ํ๋ณดยท์กฐ์นยทํ์ ๊ธฐ์ค๊ฐ์ defect_taxonomy.yaml ์ ์์ต๋๋ค (์ผ๋ฐ PCB ์ ์กฐ ์ง์ ๊ธฐ๋ฐ ์ด์).
์ฑ๋ฅ (test 980์ฅ, ๊ฒฐํจ 5,082๊ฐ)
ํ์ตยท๊ฒ์ฆ์ ์ฐ์ง ์์ test ์ธํธ์ด๋ฉฐ, ๊ฐ์ ์๋ณธ ๋ณด๋ ์ฌ์ง์ ์กฐ๊ฐ์ด ๋ถํ ์ ๋์ง ์๋๋ก ๋๋ ๋ฐ์ดํฐ์ ๋๋ค.
| ํด๋์ค | Precision | Recall | mAP50 | mAP50-95 |
|---|---|---|---|---|
| ์ ์ฒด | 0.911 | 0.868 | 0.886 | 0.474 |
| falsecopper | 0.993 | 0.958 | 0.981 | 0.580 |
| missinghole | 0.814 | 0.851 | 0.793 | 0.355 |
| mousebite | 0.972 | 0.890 | 0.920 | 0.508 |
| opencircuit | 0.939 | 0.835 | 0.893 | 0.474 |
| pinhole | 0.910 | 0.916 | 0.908 | 0.396 |
| scratch | 0.818 | 0.875 | 0.905 | 0.678 |
| shortcircuit | 0.869 | 0.765 | 0.797 | 0.340 |
| spur | 0.974 | 0.852 | 0.890 | 0.464 |
- ๊ฒฐํจ๋ผ๋ฆฌ ํท๊ฐ๋ฆฌ๋ ๊ฒฝ์ฐ๋ 3% ์ดํ. ์ค๋ฅ ๋๋ถ๋ถ์ ๋์นจ(shortcircuit 12%, spur 8%).
- val ์ธํธ: mAP50 0.879.
์์ (์ผ์ชฝ ์ ๋ต ๋ผ๋ฒจ / ์ค๋ฅธ์ชฝ ์์ธก)
์ฌ์ฉ๋ฒ
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
path = hf_hub_download("rltjr/pcb-defect-yolo11s", "pcb-defect-yolo11s.pt")
model = YOLO(path)
results = model.predict("board.jpg", imgsz=640, conf=0.25)
results[0].show()
๋น๊ณต๊ฐ ์ ์ฅ์๋ผ๋ฉด ๋จผ์ hf auth login ์ผ๋ก ๋ก๊ทธ์ธํด์ผ ํฉ๋๋ค.
๊ถ์ฅ ํ์ ๊ท์น (์์ด์ ํธ์ฉ): ์ ๋ขฐ๋ 0.25 ์ด์ ๊ฒ์ถ ์์ โ ์ ์, 0.25~0.5 ๋ง ์์ โ ์ฌ๊ฒ ํ์, 0.5 ์ด์ โ ๋ถ๋.
ํ์ต ์ ๋ณด
| ํญ๋ชฉ | ๊ฐ |
|---|---|
| ๊ธฐ๋ฐ ๋ชจ๋ธ | yolo11s.pt (COCO ์ฌ์ ํ์ต) |
| ๋ฐ์ดํฐ | rltjr/pcb-defect-v2 train 7,693 / val 993 / test 980 |
| ์ค์ | 100 epochs, imgsz 640, batch 8, ๊ทธ ์ธ Ultralytics ๊ธฐ๋ณธ๊ฐ |
| ํ๊ฒฝ | Ultralytics 8.4.177, PyTorch 2.14.1+cu126, GTX 1060 6GB, ์ฝ 10.3์๊ฐ |
ํ๊ณ
- ์ ์(๋ฌด๊ฒฐํจ) PCB ์ด๋ฏธ์ง๊ฐ ํ์ตยทํ๊ฐ ๋ฐ์ดํฐ์ ์์ด, ์ ์ ๋ณด๋์์์ ์คํ๋ฅ ์ ์ธก์ ๋์ง ์์์ต๋๋ค.
- ํ์ต ์ด๋ฏธ์ง๋ ์๋ณธ ๋ณด๋ ์ฌ์ง์ ์๋ผ 640ร640 ์ผ๋ก ๋ง๋ ๊ฒ์
๋๋ค. ํฐ ์ค์ฌ์ง์ ๊ฒฐํจ์ด ๋งค์ฐ ์์์ง๋ฏ๋ก ์๋ผ์ ์ถ๋ก ํ๊ฑฐ๋
imgsz๋ฅผ ํค์ฐ์ธ์. - ๊ณต๊ฐ ํฉ์ฑ ๊ฒฐํจ ๋ฐ์ดํฐ ๊ธฐ๋ฐ์ด๋ผ ์ค์ ์ดฌ์ ์กฐ๊ฑด(์กฐ๋ช , ๊ฐ๋, ์นด๋ฉ๋ผ)์์๋ ์ฑ๋ฅ์ด ๋จ์ด์ง ์ ์์ต๋๋ค.
๋ผ์ด์ ์ค ยท ์ถ์ฒ
- ๋ชจ๋ธ ๊ฐ์ค์น: Ultralytics YOLO ๋ก ํ์ต โ AGPL-3.0.
- ํ์ต ๋ฐ์ดํฐ: Roboflow Universe
bare-pcb-defects/obj-detection-pcb-defects-yolov8v3 (CC BY 4.0) ๋ฅผ ์ฌ๋ถํ . ์ ๋ฐ์ดํฐ๋ PKU-Market-PCB ๊ธฐ๋ฐ์ผ๋ก ๋ณด์ ๋๋ค.
- Downloads last month
- 24



