Infrared thermography (IRT) is a non-destructive testing technique that can detect the internal defects of materials. In the detection of austenitic stainless-steel pipes with large curvature, image noise caused by uneven heating is difficult to avoid. Traditional image processing methods are less effective. According to previous works, a supervised neural network was proposed in this paper using Unet network and convolutional block attention module. Existing image processing method and networks were used to compare with the proposed method. The results show that the proposed method can remove the noise caused by uneven heating, and detect all subsurface defects in stainless-steel pipe.