Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 807 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 807 Bytes

Local-aware Visual State Space for Small Defect Segmentation in Complex Component Images

This repository contains the PyTorch implementation and the proposed SD-Seg dataset.

1.Dataset Preparation

Download SD-Seg Dataset from Baidu Pan(xe6t) and the re-labeled PCB dataset from Baidu Pan(xjff).

2.Train

Train the model to get the checkpoints.

python train.py

3.Test

Calculate pixel-level and region-level metrics to evaluate the performance.

python cal_metrics.py

Output the segmentation masks for visualization.

python Test_defect.py

Reference

https://robotics.pkusz.edu.cn/resources/dataset/