This is the implementation of the paper ["Few-Shot Semantic Segmentation for Industrial Defect Recognition"].
Implemented on Python 3.8 and Pytorch 1.9. The main structure of the network is as follows:
- Python 3.8
- PyTorch 1.13
- cuda 11.7
- opencv 4.3
- tensorboard 2.5.1
Download from [ScienceDB].
Pretrained models are available on our [ScienceDB].
Set the parameters in test.py and execute:
python test.py
Thanks to Juhong Min, Dahyun Kang and Minsu Ch for their contributions, much of our code is based on their shared HSNet.
If you use this code for your research, please consider citing:
@InProceedings{
title={Few-Shot Semantic Segmentation for Industrial Defect Recognition},
author={Xiangwen Shi, Shaobing Zhang, Miao Cheng, Lian He, Zhe Cui, Xianghong Tang},
}