The code of paper: A SAM-guided Two-stream Lightweight Model for Anomaly Detection.
Install Mobile Segment Anything to 'mobile_sam' folder. We employ the image encoder and modify the mask decoder, using two-layer features and removing some unneeded codes.
Visualization results