The invention discloses a lightweight method for defect detection of
solar cell sheets based on data enhancement, comprising the following steps: S1: screening the acquired fault pictures of the
solar cell sheets to obtain true fault samples; and manually marking the types of the pictures; S2: building an improved ACGAN network, using a generator to generate false fault samples and corresponding categories according to randomly generated
noise data and type information; then inputting the false fault samples and the real pictures into a
discriminant network together, and the
discriminant network determines the true and false, and the following actions are repeated in a cycle, and the generating network and the
discriminant network are trained in turn; the invention expands the
data set based on the data enhancement
algorithm of the ACGAN network, alleviates the
overfitting problem caused by insufficient training data, and proposes optimizing the
convolutional neural network structure, performing lightweight
processing, reducing network training parameters, compressing the model, shortening the model training and defect detection time, and improving the defect detection efficiency.