Conditional generative adversarial network-based Mura defect classification method and related equipment
By generating rare or unseen Mura defect images based on the conditional generative adversarial network method and training the deep convolution model, the problem of poor versatility and high misjudgment rate of the Mura defect detection system in the existing technology is solved, and the Mura defect detection rate of the display screen is realized. Efficient classification and detection of defect images.
Patent Information
- Application Number
- CN202411245212.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-10-15
AI Technical Summary
The existing AOI defect detection system based on deep learning has the problems of poor versatility, high false positive rate and insufficient model generalization ability when detecting Mura defects in display screens. In particular, it is difficult to be effective due to the multi-morphological characteristics and rarity of Mura defects. detection.
Using a method based on conditional generative adversarial network (CGAN), by training the CGAN network model, rare or unseen Mura defect images are generated, and these images are used to train deep convolution models to improve the generalization ability and versatility of the model. Reduce the rate of false positives.
It significantly improves the classification performance of Mura defect images, reduces the dependence on large-scale annotation data, improves the robustness under different production conditions, and achieves accurate detection and classification of Mura defect images.
Smart Images

Figure CN118781102A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Mura defect detection, and in particular to a Mura defect classification method based on a conditional generative adversarial network and related equipment. Background Art
[0002] AOI (Automated Optical Inspection) technology has been widely used in many fields such as electronic manufacturing and precision machinery. AOI technology uses high-precision cameras to capture product images and uses image processing algorithms to automatically detect defects on the product surface, thereby greatly improving product quality. In particular, the AOI defect detection system based on deep learning, the feature learning ability and high-dimensional space feature mapping ability of the AOI defect detection system can significantly improve the accuracy and efficiency of defect detection.
[0003] The AOI defect detection system based on deep learning can automatically learn and extract defect features, and significantly improve the detection equipment's ability to recognize defect images through high-dimensional spatial feature mapping. However, although the AOI defect detection system based on deep learning has improved the detection capability, in some specific industrial applications, such as display screen Mura defect detection, Mura defects have the characteristics of low contrast, irregular shape, uneven brightness, and large area span, which makes it difficult for existing algorithms to be compatible with the multi-morphological characteristics of Mura defects, and some Mura defects may be rare or unseen. Due to the lack of a large number of corresponding samples to train the deep learning model, the existing deep learning model has poor versatility, high misjudgment rate, and insufficient model generalization ability, making it impossible to effectively detect and classify the display screen Mura defect images. Summary of the invention
[0004] The present application provides a mura defect classification method and related equipment based on a conditional generative adversarial network. By training a CGAN network model and using the trained CGAN network model to generate rare or unseen mura defect images, a deep convolutional model is then trained based on the generated mura defect images. This can effectively improve the generalization ability and versatility of the model, reduce the misjudgment rate of the model, and thus achieve effective detection and classification of mura defect images.
[0005] The first aspect of the present application provides a mura defect classification method based on a conditional generative adversarial network, the method comprising: Get the Mura defect image of the display; Performing image expansion on the mura defect image using a CGAN network model to obtain a classification collection of mura defect images, wherein the classification collection of mura defect images includes rare or unseen mura defect images; Using the mura defect image classification collection to train a deep convolution model to obtain a target deep classification model; Classify the Mura defect image according to the target depth classification model; The CGAN network model is obtained by the following training method: Initialize the generator and discriminator in the CGAN network model; Defining first input data of the generator and second input data of the discriminator; Fixing the parameters of the generator, and training the discriminator according to the first input data to obtain updated parameters of the discriminator; Updating the discriminator by using the update parameters of the discriminator; After determining that the update of the discriminator is completed, fixing the parameters of the discriminator, and training the generator according to the second input data to obtain the updated parameters of the generator; Updating the generator by using an update parameter of the generator; The CGAN network model is obtained after performing multiple alternating iterative updates on the discriminator and the generator, and the CGAN network model includes the discriminator and the generator after parameter update.
[0006] Optionally, fixing the parameters of the generator and training the discriminator according to the first input data to obtain updated parameters of the discriminator includes: Fixing the parameters of the generator and inputting the first input data into the generator to obtain a first batch of sample images; Inputting the first batch of sample images and the second input data into the discriminator to obtain first output data of the discriminator, wherein the first output data includes a probability that the first batch of sample images are true sample images; Calculate the loss function of the discriminator according to the first output data ;
[0007] Where m is the number of real samples x, is the output data of the discriminator D under the given condition y for the i-th real sample, which represents the probability distribution of the discriminator for the given condition y under the real sample; is the output data of the generator G for the i-th input sample z under the given condition y, which represents the probability distribution of the discriminator for the given condition y under the generated sample; Obtain update parameters of the discriminator according to the loss function.
[0008] Optionally, after determining that the discriminator is updated, fixing the parameters of the discriminator, and training the generator according to the second input data to obtain the updated parameters of the generator includes: After determining that the update of the discriminator is completed, fixing the parameters of the discriminator, and inputting the first input data into the generator to obtain a second batch of sample images; Inputting the second batch of sample images and the second input data into the discriminator to obtain second output data of the discriminator, wherein the second output data includes a probability that the second batch of sample images are true sample images; Calculate the loss function of the generator based on the second output data ;
[0009] m is the number of input samples z of the generator, is the output data of the generator for the input sample z under the given generation condition y, To generate data under given conditions y Below, the output data of the discriminator; Obtain update parameters of the generator according to the loss function.
[0010] Optionally, defining the first input data of the generator and the second input data of the discriminator includes: defining the first input data of the generator, the first input data is an input vector and a condition vector, the input vector is a random noise vector with spatial dimensions, and the condition vector is a category label, a text description or other condition information; Define the second input data of the discriminator, wherein the second input data is a generated image, a real image and a conditional vector, wherein the generated image is an image generated by the generator, the real image has a random noise vector with the same spatial dimension as the input vector, and the conditional vector is a category label, a text description or other conditional information.
[0011] Optionally, obtain a Mura defect image of the display, including: Get the display screen image; Detecting Mura defects of the display screen image, and obtaining position information of the Mura defects of the display screen image; A Mura defect image of the display screen is acquired according to the position information.
[0012] Optionally, the Mura defect image is expanded using a CGAN network model to obtain a classification collection of Mura defect images, including: Get multiple generation control conditions; Combining multiple generation control conditions to form a collection of generation control conditions, wherein the collection of generation control conditions includes multiple combinations of generation control conditions; Inputting the collection of generation control conditions into the CGAN network model, so that the CGAN network model generates a plurality of target images according to the collection of generation control conditions; The Mura defect image classification collection is produced according to multiple target images.
[0013] Optionally, after the discriminator and the generator are updated multiple times through alternating iterations to obtain the CGAN network model, the method further includes: Verify the quality of the image samples generated by the generator in the CGAN network model and the accuracy of the discriminator in distinguishing true and false samples.
[0014] A second aspect of the present application provides a mura defect classification system based on a conditional generative adversarial network, the system comprising: An acquisition unit, used for acquiring a Mura defect image of the display screen; An expansion unit, configured to perform image expansion on the mura defect image by using a CGAN network model to obtain a classification collection of mura defect images, wherein the classification collection of mura defect images includes rare or unseen mura defect images; A training unit, used to train a deep convolution model using the mura defect image classification collection to obtain a target deep classification model; A classification unit, used for classifying the mura defect image according to the target depth classification model; The CGAN network model in the expansion unit is obtained by the following training method: Initialize the generator and discriminator in the CGAN network model; Defining first input data of the generator and second input data of the discriminator; Fixing the parameters of the generator, and training the discriminator according to the first input data to obtain updated parameters of the discriminator; Updating the discriminator by using the update parameters of the discriminator; After determining that the update of the discriminator is completed, fixing the parameters of the discriminator, and training the generator according to the second input data to obtain the updated parameters of the generator; Updating the generator by using an update parameter of the generator; The CGAN network model is obtained after performing multiple alternating iterative updates on the discriminator and the generator, and the CGAN network model includes the discriminator and the generator after parameter update.
[0015] A third aspect of the present application provides a Mura defect classification device based on a conditional generative adversarial network, the device comprising: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the first aspect and any optional method in the first aspect.
[0016] A fourth aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the program executes the first aspect and any optional method in the first aspect.
[0017] It can be seen from the above technical solutions that this application has the following advantages: (1) By training the CGAN network model, the CGAN network model can learn more comprehensive mura defect images, such as rare or unseen mura defect images, so that it can cope with complex mura defect image scenes and greatly improve the classification performance of mura defect images.
[0018] (2) By using conditional generation control conditions and cooperating with the CGAN network model, a large number of Mura defect image classification collections can be generated. The Mura defect image classification collection is used to train the deep convolution model to obtain the target deep classification model. In this way, a high-performance image classification model can be quickly constructed when samples are scarce, reducing the dependence on large-scale labeled data and reducing the cost and time of data preparation.
[0019] (3) By using rare or unseen mura defect images generated by the CGAN network model and using the mura defect images to train the deep convolutional model, the detection capability of the deep convolutional model for rare or unseen defect types can be improved.
[0020] (4) It can effectively enhance the generalization ability of the model, improve its robustness under different production conditions, and achieve accurate classification of mura defect images. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1A schematic diagram of an embodiment of a method for classifying mura defects based on a conditional generative adversarial network of the present application; Figure 2 This is a flow chart of another embodiment of a method for classifying mura defects based on a conditional generative adversarial network of the present application; Figure 3 This is a flow chart of another embodiment of a method for classifying mura defects based on a conditional generative adversarial network of the present application; Figure 4 A schematic diagram of an embodiment of a Mura defect classification system based on a conditional generative adversarial network of the present application; Figure 5 A schematic diagram of an embodiment of a Mura defect classification device based on a conditional generative adversarial network in the present application. DETAILED DESCRIPTION
[0023] The present application provides a mura defect classification method and related equipment based on a conditional generative adversarial network. By training a CGAN network model and using the trained CGAN network model to generate rare or unseen mura defect images, a deep convolutional model is then trained based on the generated mura defect images. This can effectively improve the generalization ability and versatility of the model, reduce the misjudgment rate of the model, and thus achieve effective detection and classification of mura defect images.
[0024] It should be noted that the Mura defect classification method based on conditional generative adversarial network provided in this application can be applied to terminals and servers. For example, the terminal can be a tablet computer, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of explanation, this application uses the terminal as an example for the execution subject.
[0025] See also Figure 1 , Figure 1 An embodiment of a mura defect classification method based on a conditional generative adversarial network provided in the present application includes: 101. Obtain a Mura defect image of the display screen; In the embodiment of the present application, in order to ensure that the collected images are useful for subsequent image processing and model training, some standards need to be set. These standards include image resolution, lighting conditions, visibility of defects, etc. Images are collected according to these standards so that Mura defects can be clearly identified in subsequent steps.
[0026] Currently, one method of collecting Mura defect images of displays is to use an automated inspection system that can capture and store images of defective displays. Another method is for professionals to manually take defect images using a high-resolution camera during the quality control process.
[0027] After selecting the collection standard and the corresponding collection method, start collecting the Mura defect images of the display screen. A sufficient number of images need to be collected to represent different defect types and severity levels. After collecting the Mura defect images, further preprocess the collected Mura defect images. The preprocessing includes adjusting the image brightness, contrast, color balance, and cropping the image or removing unnecessary background parts to better highlight the defects. The preprocessed Mura defect images serve as the basis for subsequent image expansion.
[0028] 102. Perform image expansion on the mura defect image using a CGAN network model to obtain a classification collection of mura defect images, wherein the classification collection of mura defect images includes rare or unseen mura defect images; In an embodiment of the present application, before explaining the use of the CGAN network model to perform image expansion on the Mura defect image to obtain a classification collection of Mura defect images, the training method of the CGAN network model is first explained. Specifically, the generator and the discriminator in the CGAN network model are first initialized, that is, the network parameters of the generator and the discriminator are randomly initialized so that the network parameters are in an initialized state, and then the first input data of the generator and the second input data of the discriminator are defined, wherein the first input data is an input vector and a conditional vector, the input vector is a random noise vector with a spatial dimension, and the conditional vector is a category label, a text description or other conditional information; the second input data is a generated image, a real image and a conditional vector, the generated image is an image generated by the generator, the real image has a random noise vector with the same spatial dimension as the input vector, and the conditional vector is a category label, a text description or other conditional information.
[0029] After defining the first input data and the second input data, further, firstly, the parameters of the generator are fixed, and the discriminator is trained according to the first input data to obtain the updated parameters of the discriminator, and then the discriminator is updated by the updated parameters of the discriminator; and after determining that the update of the discriminator is completed, the parameters of the discriminator are fixed, and the generator is trained according to the second input data to obtain the updated parameters of the generator, and the generator is updated by the updated parameters of the generator; after the discriminator and the generator are updated for multiple alternating iterations, a CGAN network model is obtained, the CGAN network model includes the discriminator and the generator after the parameters are updated, and finally the quality of the image samples generated by the generator in the CGAN network model and the accuracy of the discriminator in distinguishing true and false samples are verified, and after verification that they meet the requirements, they are put into practical use.
[0030] Training the discriminator: First, the parameters of the generator are fixed, and the first input data is input into the generator to obtain the first batch of sample images. The first batch of sample images are fake sample images generated by the generator according to the first input data. After obtaining the fake sample images, the fake sample images and the real sample images in the second input data are input into the discriminator, so that the discriminator calculates the probability that the fake sample images are real samples, and then calculates the loss function of the discriminator based on the output probability data. .
[0031] Specifically, the loss function of the discriminator is Calculate using the following formula:
[0032] Among them, m is the number of real samples x, is the output data of the discriminator D under the given condition y for the i-th real sample, and represents the probability distribution of the discriminator for the given condition y under the real sample; is the output data of the generator G for the i-th input sample z under the given condition y, and represents the probability distribution of the discriminator for the given condition y under the generated sample. Finally, the update parameters of the discriminator are calculated according to the loss function, and then the discriminator is updated according to its updated parameters.
[0033] Training the generator: After determining that the discriminator update is completed, the parameters of the discriminator are fixed, and the first input data is input into the generator to obtain a second batch of sample images. The second batch of sample images are fake sample images generated by the generator according to the first input data. After obtaining the fake sample images, the fake sample images and the real sample images in the second input data are input into the discriminator, so that the discriminator calculates the probability that the fake sample images are real samples, and then calculates the loss function of the generator according to the output probability data. .
[0034] Specifically, the loss function of the generator is Calculate using the following formula:
[0035] Among them, m is the number of generator input samples z, is the output data of the generator for the input sample z under the given generation condition y, To generate data under given conditions y Next, the output data of the discriminator; finally, the update parameters of the generator are calculated according to the loss function, and then the generator is updated according to the update parameters of the generator.
[0036] After multiple alternating iterative updates of the discriminator and the generator, a CGAN network model is obtained. The CGAN network model includes the discriminator and the generator after parameter update. In subsequent use, the CGAN network model can be controlled to generate rare or unseen Mura defect images according to the generation control conditions, and the Mura defect images can be used as the training basis of the deep convolutional model.
[0037] Furthermore, in the actual training process, the loss functions of the discriminator and the generator will be updated alternately, and the training intensity of the generator and the discriminator will be adjusted according to the changes in the loss during the training process to ensure that the generator can generate high-quality samples and the discriminator can correctly distinguish between true and false samples. After the training is completed, the quality of the data generated by the generator and the discrimination accuracy of the discriminator are further evaluated.
[0038] After the CGAN network model is trained, image expansion is performed based on the Mura defect image to obtain a classification collection of Mura defect images.
[0039] Specifically, after the training is completed, by providing generation control conditions, such as new or unseen defect conditions, to the generator of the CGAN network model, the corresponding defect images are generated, and the generator can generate images with corresponding features according to the generation control conditions. In order to obtain more images, the required defect images can be generated in batches by combining multiple generation control conditions, and then the generated defect images are screened and made into classification data sets, which can greatly increase the diversity, innovation, and comprehensiveness of the training samples, and lay a data foundation for the subsequent deep classification model training.
[0040] 103. Using the Mura defect image classification collection to train a deep convolution model to obtain a target deep classification model; In the embodiment of the present application, after obtaining the Mura defect image classification collection in step 102, further, the Mura defect image classification collection is used to train a deep convolution model to obtain a target deep classification model.
[0041] Specifically, first, the classified collection of mura defect images is sorted to ensure that each image has a clear defect type label. These defect type labels will be used as supervision information in the training process to guide the model to learn how to distinguish different mura defects.
[0042] Furthermore, in order to improve the generalization ability of the model, the Mura defect image classification collection can be enhanced, where the enhancement techniques include rotation, flipping, scaling, cropping, color transformation, etc. The enhancement technology can generate more training samples while avoiding model overfitting.
[0043] Then select a suitable deep convolutional model. Common deep convolutional models include AlexNet, VGG, ResNet, DenseNet, etc. After selecting the deep convolutional model, you can modify the input layer of the deep convolutional model to match the size and number of channels of the training image; you can adjust the number of convolutional layers, convolution kernel size and other parameters of the model to optimize model performance; you can also introduce attention mechanisms, residual connections and other technologies to improve the robustness and generalization ability of the model.
[0044] Before training begins, set a series of training parameters, including learning rate, batch size, training rounds, optimization algorithm, etc. Then use random weights or pre-trained weights to initialize the model, input the Mura defect image classification collection into the model, calculate the loss function through forward propagation, and then update the model parameters through back propagation. During the training process, it is necessary to regularly use the validation set to evaluate the performance of the model, and adjust the training parameters or optimize the model structure based on the evaluation results, so as to obtain the target deep classification model.
[0045] 104. Classify the Mura defect image according to the target depth classification model.
[0046] In this embodiment, the target depth classification model generated by training is used to detect and classify the mura defect image, specifically: 1. Prepare the image to be detected Image collection: First, you need to collect the Mura defect images to be detected. The Mura defect images may come from real-time detection on the production line or from previously stored images to be detected. The source of the Mura defect images to be detected is not limited here.
[0047] Image preprocessing: Before inputting the image into the model, the image is preprocessed as necessary. Preprocessing operations include adjusting the size of the image to match the input layer of the model, and normalizing or standardizing to eliminate differences in brightness, contrast, etc. between images.
[0048] 2. Model loading and initialization Loading model: Load the target depth classification model trained in step 103 to prepare for image detection and classification processing.
[0049] Model initialization: Ensure that the model is in the correct initialization state, including loading the model's weights and parameters, and setting up the necessary computing resources and environment.
[0050] 3. Image Detection and Classification Processing Forward propagation: The preprocessed mura defect image is input into the model for forward propagation calculation. The model will extract features based on the input image and output the predicted probability of each category.
[0051] Category judgment: Based on the output of the model, determine which mura defect category the mura defect image belongs to. Usually, the category with the highest prediction probability is selected as the category label of the image.
[0052] Finally, the Mura defect image is classified according to the image category label.
[0053] It can be further known that the present application trains the CGAN network model, generates rare or unseen Mura defect images using the trained CGAN network model, and then trains the deep convolution model based on the generated Mura defect images, which can effectively improve the generalization ability and versatility of the model, reduce the misjudgment rate of the model, and thus realize effective detection and classification of Mura defect images.
[0054] Reference Figure 2 According to some embodiments of the present invention, obtaining the Mura defect image of the display screen in step 101 may specifically include, but is not limited to, the following: 201. Acquire a display screen image; 202. Detecting a Mura defect of the display screen image, and obtaining position information of the Mura defect of the display screen image; 203. Acquire a Mura defect image of the display screen according to the position information.
[0055] In the embodiment of the present application, an image is captured from a display screen by a high-resolution camera and a high-resolution lens. In actual operation, it is necessary to ensure that the relative position between the image acquisition device and the display screen is fixed to obtain a clear and stable image. The acquired image will be used for subsequent Mura defect detection. It should be noted that the lighting conditions and camera parameters, such as focal length, exposure time, etc., need to be considered during the acquisition process to obtain a high-quality display screen image.
[0056] Furthermore, mura defects are detected in the acquired display screen images and the locations of these defects are determined. Mura defects usually appear as uneven brightness or color areas in the image. The detection process involves image processing algorithms, such as threshold segmentation, edge detection, and texture analysis, to identify defective areas. The detected defect location information is usually expressed in the form of pixel coordinates for subsequent extraction of mura defect images.
[0057] After obtaining the location information of the Mura defect, the image of the defective area is extracted from the original display screen image, mainly by cropping the original image according to the location information to obtain an image containing the defective area. Furthermore, the extracted defective image is subjected to additional image processing operations, such as enhancement, filtering or denoising, to improve its quality, so as to facilitate subsequent image expansion processing based on the Mura defect image.
[0058] Reference Figure 3 According to some embodiments of the present invention, in step 102, the image expansion of the mura defect image using the CGAN network model to obtain the mura defect image classification collection may specifically include, but is not limited to, the following: 301. Obtaining multiple generation control conditions; 302. Combining the multiple generation control conditions to form a collection of generation control conditions, wherein the collection of generation control conditions includes multiple combinations of generation control conditions; 303. Inputting the collection of generation control conditions into the CGAN network model, so that the CGAN network model generates a plurality of target images according to the collection of generation control conditions; 304. Create the Mura defect image classification collection according to the multiple target images.
[0059] In the embodiment of the present application, in step 301, the purpose of obtaining multiple generation control conditions is to collect and organize multiple control conditions for generating rare or unseen Mura defect images. The generation control conditions may include image style, color, texture, shape and other features, or more specific parameters such as brightness, contrast, saturation, etc. The control conditions will be used in subsequent steps to guide the CGAN network model to generate a large number of rare or unseen Mura defect images.
[0060] In step 302, the purpose of combining multiple generation control conditions to form a collection of generation control conditions is to combine the collected multiple generation control conditions to form a collection of generation control conditions containing multiple combinations. By combining different control conditions, a target image with multiple feature combinations can be generated, thereby increasing the diversity and complexity of the image. Algorithms or scripts can be used to automatically combine control conditions to generate a large number of combinations. Control conditions can also be combined according to specific rules or strategies, such as random combination, sequential combination, etc., which are not specifically limited here.
[0061] In step 303, the collection of generation control conditions is input into the CGAN network model so that the CGAN network model generates a plurality of target images according to the collection of generation control conditions. The goal of this step is to use the CGAN network model to generate a plurality of target images according to the collection of generated control conditions. The CGAN network model can generate images with corresponding features according to the input control conditions.
[0062] Finally, by comparing and classifying the generated images with known mura defect images, a collection of images containing mura defects of different types and degrees can be created. Specifically, the mura defect images can be classified according to the type, degree, location and other characteristics of the defects. The classified mura defect images will be organized into a mura defect image classification collection, which is used as the training basis for the deep convolutional model.
[0063] See also Figure 4 , Figure 4 An embodiment of a mura defect classification system based on a conditional generative adversarial network provided in the present application, the system comprising: An acquisition unit 401 is used to acquire a Mura defect image of a display screen; An expansion unit 402 is used to perform image expansion on the mura defect image using a CGAN network model to obtain a classification collection of mura defect images, wherein the classification collection of mura defect images includes rare or unseen mura defect images; A training unit 403 is used to train a deep convolution model using the mura defect image classification collection to obtain a target deep classification model; A classification unit 404 is used to detect and classify the mura defect image according to the target depth classification model; The CGAN network model in the expansion unit 402 is obtained by the following training method: Initialize the generator and discriminator in the CGAN network model; Defining first input data of the generator and second input data of the discriminator; Fixing the parameters of the generator, and training the discriminator according to the first input data to obtain updated parameters of the discriminator; Updating the discriminator by using the update parameters of the discriminator; After determining that the update of the discriminator is completed, fixing the parameters of the discriminator, and training the generator according to the second input data to obtain the updated parameters of the generator; Updating the generator by using an update parameter of the generator; The CGAN network model is obtained after performing multiple alternating iterative updates on the discriminator and the generator, and the CGAN network model includes the discriminator and the generator after parameter update.
[0064] See also Figure 5 The present application also provides a Mura defect classification device based on a conditional generative adversarial network, the device comprising: Processor 501, storage 502, input and output unit 503, bus 504; The processor 501 is connected to the storage 502, the input and output unit 503 and the bus 504; The storage 502 stores a program, and the processor 501 calls the program to execute any of the above Mura defect classification methods based on conditional generative adversarial networks.
[0065] The present application also relates to a computer-readable storage medium, on which a program is stored. When the program is run on a computer, the computer executes any of the above-mentioned Mura defect classification methods based on a conditional generative adversarial network.
[0066] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0067] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0068] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0069] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0070] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, etc. Various media that can store program codes.
Claims
1. A mura defect classification method based on conditional generative adversarial network, characterized in that: The method comprises: Get the Mura defect image of the display; Performing image expansion on the mura defect image using a CGAN network model to obtain a classification collection of mura defect images, wherein the classification collection of mura defect images includes rare or unseen mura defect images; Using the mura defect image classification collection to train a deep convolution model to obtain a target deep classification model; Classify the Mura defect image according to the target depth classification model; The CGAN network model is obtained by the following training method: Initialize the generator and discriminator in the CGAN network model; Defining first input data of the generator and second input data of the discriminator; Fixing the parameters of the generator, and training the discriminator according to the first input data to obtain updated parameters of the discriminator; Updating the discriminator by using the update parameters of the discriminator; After determining that the update of the discriminator is completed, fixing the parameters of the discriminator, and training the generator according to the second input data to obtain updated parameters of the generator; Updating the generator by using an update parameter of the generator; The CGAN network model is obtained after performing multiple alternating iterative updates on the discriminator and the generator, and the CGAN network model includes the discriminator and the generator after parameter update.
2. The mura defect classification method based on conditional generative adversarial network according to claim 1 is characterized in that: Fixing the parameters of the generator and training the discriminator according to the first input data to obtain updated parameters of the discriminator includes: Fixing the parameters of the generator and inputting the first input data into the generator to obtain a first batch of sample images; Inputting the first batch of sample images and the second input data into the discriminator to obtain first output data of the discriminator, wherein the first output data includes a probability that the first batch of sample images are true sample images; Calculate the loss function of the discriminator according to the first output data ; Where m is the number of real samples x, is the output data of the discriminator D under the given condition y for the i-th real sample, which represents the probability distribution of the discriminator for the given condition y under the real sample; is the output data of the generator G for the i-th input sample z under the given condition y, which represents the probability distribution of the discriminator for the given condition y under the generated sample; According to the loss function Obtain updated parameters of the discriminator.
3. The mura defect classification method based on conditional generative adversarial network according to claim 1, characterized in that: After determining that the update of the discriminator is completed, fixing the parameters of the discriminator, and training the generator according to the second input data to obtain the updated parameters of the generator includes: After determining that the update of the discriminator is completed, fixing the parameters of the discriminator, and inputting the first input data into the generator to obtain a second batch of sample images; Inputting the second batch of sample images and the second input data into the discriminator to obtain second output data of the discriminator, wherein the second output data includes a probability that the second batch of sample images are true sample images; Calculate the loss function of the generator based on the second output data ; m is the number of generator input samples z, is the output data of the generator for the input sample z under the given generation condition y, To generate data under given conditions y Below, the output data of the discriminator; According to the loss function Gets the updated parameters of the generator.
4. The mura defect classification method based on conditional generative adversarial network according to claim 1, characterized in that: Defining the first input data of the generator and the second input data of the discriminator includes: Define the first input data of the generator, the first input data is an input vector and a condition vector, the input vector is a random noise vector with spatial dimensions, and the condition vector is a category label or a text description; Define the second input data of the discriminator, wherein the second input data is a generated image, a real image and a conditional vector, the generated image is an image generated by the generator, the real image has a random noise vector with the same spatial dimension as the input vector, and the conditional vector is a category label or a text description.
5. The mura defect classification method based on conditional generative adversarial network according to claim 1, characterized in that: Get the display's mura defect image, including: Get the display screen image; Detecting Mura defects of the display screen image, and obtaining position information of the Mura defects of the display screen image; A Mura defect image of the display screen is acquired according to the position information.
6. The mura defect classification method based on conditional generative adversarial network according to claim 1, characterized in that: The CGAN network model is used to perform image expansion on the mura defect image to obtain a classification collection of mura defect images, including: Get multiple generation control conditions; Combining multiple generation control conditions to form a collection of generation control conditions, wherein the collection of generation control conditions includes multiple combinations of generation control conditions; Inputting the collection of generation control conditions into the CGAN network model, so that the CGAN network model generates a plurality of target images according to the collection of generation control conditions; The Mura defect image classification collection is produced according to multiple target images.
7. The mura defect classification method based on conditional generative adversarial network according to claim 1, characterized in that: After the discriminator and the generator are updated multiple times through alternating iterations to obtain the CGAN network model, the method further includes: Verify the quality of the image samples generated by the generator in the CGAN network model and the accuracy of the discriminator in distinguishing true and false samples.
8. A mura defect classification system based on conditional generative adversarial network, characterized in that: The system comprises: An acquisition unit, used for acquiring a Mura defect image of the display screen; An expansion unit, configured to perform image expansion on the mura defect image by using a CGAN network model to obtain a classification collection of mura defect images, wherein the classification collection of mura defect images includes rare or unseen mura defect images; A training unit, used to train a deep convolution model using the mura defect image classification collection to obtain a target deep classification model; A classification unit, configured to classify the mura defect images according to the target depth classification model, wherein the image classification collection includes rare or unseen mura defect images; The CGAN network model in the expansion unit is obtained by the following training method: Initialize the generator and discriminator in the CGAN network model; Defining first input data of the generator and second input data of the discriminator; Fixing the parameters of the generator, and training the discriminator according to the first input data to obtain updated parameters of the discriminator; Updating the discriminator by using the update parameters of the discriminator; After determining that the update of the discriminator is completed, fixing the parameters of the discriminator, and training the generator according to the second input data to obtain the updated parameters of the generator; Updating the generator by using an update parameter of the generator; The CGAN network model is obtained after performing multiple alternating iterative updates on the discriminator and the generator, and the CGAN network model includes the discriminator and the generator after parameter update.
9. A mura defect classification device based on conditional generative adversarial network, characterized in that: The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Mura defect level judgment method and device based on deep learning
CN108171707A
Cross-domain diversity image generation method and system based on generative adversarial network
CN111292384A
CGAN-based inspection image data small sample expansion method
CN112446429A
CTGAN-based power grid transient stability sample controllable generation and evaluation method and system
CN113746087A
Industrial robot fault data generation method and system, terminal and storage medium
CN114326655A
Cited By
MURA defect segmentation method, system and device and storage medium
CN119649036A
Industrial defect detection automation system based on generative adversarial network
CN120198418A
Industrial time series data enhancement method and device based on cooperative constraint
CN120873404A
An industrial time series data enhancement method and device based on collaborative constraints
CN120873404B
