Nowadays, the main objective of automated optical inspection (AOI) is to replace manual inspection. The main target in this research is the registration inspection on the surface of knitted fabrics, whose appearance is irregular texture. In this study, the UNET of deep learning was used to detect defects on the surface of the fabric to achieve effective identification of knitting defects.