Fdsnet
[ICASSP 2022] FDSNet: An Accurate Real-Time Surface Defect Segmentation Network
Install / Use
/learn @jianzhang96/FdsnetREADME
FDSNet
FDSNet: An Accurate Real-Time Surface Defect Segmentation Network - ICASSP 2022 [pdf]

Dataset
⭐️ MSD dataset ⭐️
Prepare Datasets
The generated auxiliary ground-truth AuxiliaryGT for MSD dataset. The images of MSD dataset are downsampled to 1440×810 during training and test. <br>
We convert SD-saliency-900 and Magnetic-tile-defect-datasets (denoted as MT-Defect) dataset to PASCAL VOC format and divide the datasets into train: val: test = 6: 2: 2 randomly. We use trainval-test for NEU-Seg and MT-Defect and train-test for MSD dataset.
The converted datasets can be downloaded here: MT-Defect and NEU-Seg.
Environment
Python 3.8.5 PyTorch 1.9.0 CUDA 11.1 <br/> one NVIDIA GTX 1080Ti GPU
conda env create -f requirements.yml
Usage
First download the dataset and the auxiliary ground-truth. Put the auxiliary GT to the data folder and modify the path in the /core/data/dataloader.<br/> when train model on NEU-Seg, set scale-ratio=None. when train model on MT-Defect, set crop size=450 and base_size not None. <br/> Train model
CUDA_VISIBLE_DEVICES=0 python train.py --model fdsnet --use-ohem True --aux True --dataset phone_voc --scale-ratio 0.75 --lr 0.0001 --epochs 150 --batch-size 8
Eval model. We eval the image one by one.
python eval.py
Pretrained Model
| Dataset | Pth | mIoU | FPS | | :------| :------ | :------ | :------ | | MSD | fastscnn__phone_voc_best_model.pth | 89.1 | 115.0 | | MSD | fdsnet__phone_voc_best_model.pth | 90.2 | 135.0 | | MT-Defect | fdsnet__mt_voc_best_model.pth | 63.9 | 181.5 | | NEU-Seg | fdsnet__sd_voc_best_model.pth | 78.8 | 186.1 |
Results

Acknowledgement
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
