There are four common defects in aluminum profiles, namely scratches, leaks, dents, and convex powder. The aluminum profile image data set in this article comes from an aluminum company in Jiangsu Province. The original aluminum profile image data set includes a total of 342 aluminum profile defect images. There are few defect image samples, and the proportion of some defects in the entire data set is too small, and the defect data is unbalanced. When deep learning is trained, if the data set is small, it will cause the model to have overfitting problems.


In order to solve the above problems, this paper uses image augmentation to expand the data set of defective aluminum profile images. Image augmentation technology performs a series of random contrast adjustments, rotations, etc. on the original image data to generate similar but different training data to expand the size of the training image set, while reducing the model's dependence on certain features and improving the model's generality. ization ability.
