WO2020211823A1 - 模型训练方法、装置及缺陷检测方法、装置 - Google Patents
模型训练方法、装置及缺陷检测方法、装置 Download PDFInfo
- Publication number
- WO2020211823A1 WO2020211823A1 PCT/CN2020/085205 CN2020085205W WO2020211823A1 WO 2020211823 A1 WO2020211823 A1 WO 2020211823A1 CN 2020085205 W CN2020085205 W CN 2020085205W WO 2020211823 A1 WO2020211823 A1 WO 2020211823A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- area
- label
- training sample
- defect
- probability value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
- G06T7/0008—Industrial image inspection checking presence/absence
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/77—Determining position or orientation of objects or cameras using statistical methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30124—Fabrics; Textile; Paper
Definitions
- This application relates to the field of computer technology, in particular to a model training method and device, and a defect detection method and device.
- ASI Automated Surface Inspection
- the defect detection is carried out by using a neural network based on deep learning, but the detection error rate is relatively high.
- the present application provides a defect detection method and device to solve the problem of relatively high detection error detection rate in related technologies.
- a model training method including:
- the labels include at least a first label and a second label
- the first label is used to record that the first area marked in the training sample is an area prone to misdetection
- the second label Used to record that the marked second area in the training sample is a defective area
- a detection model for detecting defects is trained.
- a model training device including:
- the acquisition module is used to acquire multiple frames of labeled training samples, where the labels include at least a first label and a second label, and the first label is used to record that a marked first area in the training sample is an area prone to misdetection, The second label is used to record that the marked second area in the training sample is a defective area;
- the training module is used to train a detection model for detecting defects by using each labeled training sample and the location information of the first region and the location information of the second region in each training sample.
- a defect detection method using a detection model trained by the model training method described in the first aspect including:
- a defect detection device using a detection model trained by the model training method described in the first aspect including:
- the detection module is configured to input the target image to be detected into the detection model, so that the target image to be detected is detected by the detection model to obtain the target defect probability value of each pixel in the target image to be detected;
- the determining module is configured to determine whether there is a defect area in the target image to be detected according to the target defect probability value of each pixel in the target image to be detected.
- a method for obtaining defect detection samples including:
- the area is determined to be an area prone to misdetection, and the area is marked with the first label.
- each acquired training sample carries a second label
- the second label is used to record that the marked second area in the training sample is a defective area.
- a device for acquiring a defect detection sample including:
- the detection module is used to detect the defect area in each training sample obtained
- the labeling module is used to determine that in the detected defect area, if there is an area that does not overlap with the second area marked with the second label, the area is determined to be an area prone to misdetection, and the area is used as the first label Mark to obtain training samples with the first label and the second label;
- each acquired training sample carries a second label
- the second label is used to record that the marked second area in the training sample is a defective area.
- Fig. 1A is a diagram of a chopstick to be tested according to an exemplary embodiment of the application
- Fig. 1B is a defect diagram of chopsticks obtained by using related technologies according to an exemplary embodiment of the present application
- Fig. 2A is a flowchart of an embodiment of a model training method according to an exemplary embodiment of this application;
- FIG. 2B is a schematic diagram showing a type of cloth defect according to the embodiment shown in FIG. 2A in this application;
- FIG. 2C is a schematic diagram of a model training structure according to the embodiment shown in FIG. 2A according to this application;
- FIG. 2D is a schematic diagram of another model training structure according to the embodiment shown in FIG. 2A according to this application;
- Fig. 3A is a flowchart of a defect detection method according to an exemplary embodiment of the application.
- FIG. 3B is a schematic diagram of a defect detection structure according to the embodiment shown in FIG. 3A;
- Fig. 3C is a defect diagram of the chopsticks shown in Fig. 1A according to an exemplary embodiment of this application;
- Fig. 3D is a picture of a cloth to be inspected according to an exemplary embodiment of this application.
- FIG. 3E is a defect diagram of the cloth to be inspected shown in FIG. 3D obtained according to the embodiment shown in FIG. 3A in this application;
- Fig. 4 is a flow chart of a method for obtaining defect detection samples according to an exemplary embodiment of the application
- Fig. 5 is a hardware structure diagram of an electronic device according to an exemplary embodiment of the application.
- Fig. 6 is a structural diagram of a model training device according to an exemplary embodiment of the application.
- Fig. 7 is a structural diagram of a defect detection device according to an exemplary embodiment of the present application.
- Fig. 8 is a structural diagram of a device for acquiring a defect detection sample according to an exemplary embodiment of the application.
- first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
- first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
- word “if” as used herein can be interpreted as "when” or “when” or "in response to determination”.
- the training process of the neural network based on deep learning currently used is: obtain a sample image of the target object, and mark the defective area and the non-defective area in each frame of the sample image with different labels, and then use the sample image and the labeled label Train the neural network model.
- the detection results obtained by the currently trained network model have over-fitting problems, resulting in a relatively high false detection rate.
- Fig. 1A is the image to be inspected with chopsticks as the target object.
- the image to be inspected is input to the trained network model, and the image to be inspected is inspected by the network model, and the defect map determined by the inspection result is shown in Fig.
- the black areas are non-defective areas, and the white areas are defective areas, but the white areas enclosed by dashed circles: Area 1, Area 2, Area 3, Area 4, and Area 5 are all misdetected It is the defect area.
- this application proposes a model training method by acquiring multiple frames of labeled training samples.
- the labels include at least a first label and a second label.
- the first label is used to record the marked first label in the training sample.
- One area is easy to be misdetected
- the second label is used to record the marked second area in the training sample as a defective area, and then use each labeled training sample and the position information of the first area in each training sample,
- the location information of the second area is used to train a detection model for detecting defects.
- the detection model when training the detection model, by adding the tags of the areas that are prone to false detections, the learning of the features of the false detection areas is enhanced according to the tags and location information of the areas that are prone to false detections, so as to reduce the false detection of the detection model.
- the purpose of improving the detection accuracy of the detection model when training the detection model, by adding the tags of the areas that are prone to false detections, the learning of the features of the false detection areas is enhanced according to the tags and location information of the areas that are prone to false detections, so as to reduce the false detection of the detection model.
- Fig. 2A is a flowchart of an embodiment of a model training method according to an exemplary embodiment of this application.
- the model training method includes the following steps:
- Step 201 Obtain multiple frames of labeled training samples.
- the labels include at least a first label and a second label.
- the first label is used to record that the first area marked in the training sample is an area prone to misdetection, and the second label is used The second area marked in the recording training sample is a defective area.
- training samples can be selected or captured according to actual detection requirements, and the objects in each training sample belong to the same category.
- the defect area existing in the training sample can be detected.
- the area is determined to be a false detection area, and the area is marked with a first label to obtain training samples with the first label and the second label.
- the marking process of the second label used to mark the defective area can be realized by related technologies, which will not be described in detail here.
- the labeled training sample may further include a third label, and the third label is used to record that the marked third area in the training sample is an area without defects.
- This application does not limit the specific representation forms of the first label, the second label, and the third label, as long as three different areas can be distinguished.
- the white areas enclosed by dashed lines: Area 1, Area 2, Area 3, Area 4, and Area 5 are areas that are easy to be misdetected, marked with the first label, and the rest are white
- the area is a defective area, which is marked with a second label
- the black area is a defective area, which is marked with a third label.
- Step 202 Using each labeled training sample and the location information of the first region and the location information of the second region in each training sample, train a detection model for detecting defects.
- each labeled training sample when the detection model is a single model, it is possible to combine each labeled training sample with the location information of the first region, the location information of the second region, and the first region in each training sample.
- the location information of the three regions is input to the designated model training engine, so that the model training engine uses the input labeled training samples, the location information of the first region, the location information of the second region, and the location information of the third region for training Develop an inspection model for detecting defects.
- the weight of the first label is greater than the weight of the second label and the weight of the third label, so that when performing gradient backhaul, more computing power can be used to learn areas that are prone to misdetection.
- the weight of the first label is greater than the weight of the second label and the weight of the third label, so that when performing gradient backhaul, more computing power can be used to learn areas that are prone to misdetection.
- the detection model when the detection model includes the first sub-detection model and the second sub-detection model, the position information of the first region in each training sample and each labeled training sample Input to the first model training engine, the first model training engine uses the input labeled training samples and the first region location information to train the first sub-detection model, and by combining each labeled training sample and each training sample
- the location information of the second area and the location information of the third area are input to the second model training engine, so that the second model training engine uses the input labeled training samples and the location information of the second area and the location of the third area
- the information trains the second sub-detection model.
- the output of the first sub-detection model is the probability value of each pixel in the training sample that is easy to distinguish defects.
- the output of the second sub-detection model Is the probability value of defects in each pixel in the training sample. The larger the value, the greater the probability of defects.
- the first sub-detection model can be trained through a deep network learning method, and the adopted network structure can be the structure of a convolutional neural network.
- the convolutional neural network can include a convolutional layer, a pooling layer, and BN (Batch Normalization). , Batch normalization) layer, fully connected layer and other computing layers.
- the second sub-detection model can be obtained by the same method as the first sub-detection model, but it can also be obtained by a method different from the first sub-detection model, which is not limited in this application.
- multiple frames of labeled training samples are obtained, and the labels include at least a first label and a second label, and the first label is used to record that the first area marked in the training sample is a false detection area
- the second label is used to record that the marked second area in the training sample is a defective area, and then use each labeled training sample and the position information of the first area and the second area in each training sample to train Develop an inspection model for detecting defects.
- the detection model when training the detection model, by adding the tags of the areas that are prone to false detections, the learning of the features of the false detection areas is enhanced according to the tags and location information of the areas that are prone to false detections, so as to reduce the false detection of the detection model.
- the purpose of improving the detection accuracy of the detection model when training the detection model, by adding the tags of the areas that are prone to false detections, the learning of the features of the false detection areas is enhanced according to the tags and location information of the areas that are prone to false detections, so as to reduce the false detection of the detection model.
- Fig. 3A is a flowchart of an embodiment of a defect detection method according to an exemplary embodiment of this application. This embodiment is based on the embodiment shown in Fig. 2A and applies the detection model to realize defect detection. The method includes the following steps:
- Step 301 Input the target image to be detected into the detection model, and the target image to be detected is detected by the detection model to obtain the target defect probability value of each pixel in the target image to be detected.
- the detection model when the detection model includes a first sub-detection model and a second sub-detection model, the image of the object to be detected may be input into the first sub-detection model, so that the second A sub-detection model detects the target image to be detected, and obtains the first candidate probability value of each pixel in the target image to be detected.
- the first candidate probability value is used to indicate the probability of easily distinguishing defects.
- the target image to be detected is also input into a second sub-detection model, so that the second sub-detection model detects the target image to be detected to obtain a second candidate for each pixel in the target image to be detected
- the probability value, the second candidate probability value is used to indicate the probability of a defect, and then the first candidate probability value and the second candidate probability value of each pixel are fused to obtain the target defect probability value of each pixel.
- the detection result output by the first sub-detection model represents the probability that each pixel in the target image to be detected is easy to distinguish defects
- the larger the value the easier it is to distinguish defects, and the smaller the value, the more difficult it is to distinguish defects.
- the detection result output by the second sub-detection model represents the probability that each pixel in the target image to be detected has a defect. The larger the value, the greater the probability that there is a defect. Therefore, the detection of the output of the first sub-detection model is required.
- the result is fused with the detection result output by the second sub-detection model to obtain the target defect probability value of each pixel.
- the first fusion method For each pixel, the average value of the first candidate probability value and the second candidate probability value of the pixel can be used as the target defect probability value of the pixel.
- Formula 1 is as follows:
- Target defect probability value 0.5* (first candidate probability value + second candidate probability value)
- the second fusion method for each pixel, if the first candidate probability value of the pixel is less than the preset value, then the first candidate probability value of the pixel is used as the target defect probability value of the pixel, if The first candidate probability value of the pixel is not less than the preset value, and the second candidate probability value of the pixel is taken as the target defect probability value of the pixel.
- Formula 2 is as follows:
- the first candidate probability value of the pixel is less than the preset value, it means that the pixel is more difficult to distinguish as a defect (that is, the pixel has a high probability of not being a defect).
- the second candidate probability of the pixel The reliability of the value is not high, and it is likely to be the wrong detection result. Therefore, the first candidate probability value is selected as the target defect probability value of the pixel; if the first candidate probability value of the pixel is not less than the preset value, it means The pixel is easier to distinguish defects (that is, the pixel has a high probability of being a defect). In this case, the second candidate probability value of the pixel is more reliable, so the second candidate probability value is selected as the pixel Point’s target defect probability value.
- the preset value is 0.5
- the first candidate probability value is taken as the target defect probability value
- the second candidate probability value is taken as the target defect probability value
- the target defect probability value of each pixel in the target image to be detected is obtained by using the combination of the first sub-detection model and the second sub-detection model. Because the first sub-detection model is used to detect whether each pixel is It is easy to distinguish defects, and by fusing the detection results of the first sub-detection model with the detection results of the second sub-detection model, it is possible to avoid misdetecting pixels that are not easily distinguishable as defects.
- Step 302 Determine whether there is a defect area in the target image to be detected according to the target defect probability value of each pixel in the target image to be detected.
- the target defect probability value of each pixel in the target image to be detected may be converted into a defect image to facilitate the judgment of the defect area.
- the conversion process can be: determine the gray value of the target defect probability value mapping of each pixel in the target image to be detected, and use the gray value of the target defect probability value mapping of each pixel in the target image to be detected to generate the target to be detected The defect diagram corresponding to the diagram.
- the target defect probability value of the pixel has a value range of 0 to 1
- the defect map uses a gray value
- the value range is 0 to 255, so it is necessary to convert the target defect probability value of the pixel to
- the gray value used in the defect map, and the mapping relationship of the gray value used in the conversion from the target defect probability value to the defect map can be set in advance based on practical experience, as long as the greater the target defect probability value, the larger the mapped gray value. .
- an area formed by pixels with a gray value greater than a preset threshold in the defect map may be determined as a defective area.
- the image to be inspected shown in FIG. 1A is input into the inspection model, and the image to be inspected is inspected by the inspection model to obtain the target defect probability value of each pixel in the image to be inspected. Then the target defect probability value of each pixel in the image to be inspected is converted into a defect map, as shown in Fig. 3C.
- the black area is the defect-free area
- the white area is the defect area, which is similar to the defect map obtained by the related technology.
- the false detection area in Figure 1B is filtered out by the detection model.
- FIG. 3D it is the cloth image to be inspected.
- the cloth image to be inspected is input into the inspection model, and the cloth image to be inspected is inspected by the inspection model to obtain the cloth image to be inspected.
- the target defect probability value of each pixel in the figure, and then the target defect probability value of each pixel in the cloth image to be inspected is converted into a defect map, as shown in the defect map of the cloth as shown in Figure 3E, the black area is a defect-free area.
- White areas are defective areas.
- the defect detection model is trained by training samples with additional labels of areas that are prone to false detections, the labels and location information of the areas that are prone to false detections can strengthen the learning of the characteristics of the false detection areas.
- the defect detection error rate realized by the detection model is low, and the detection accuracy is high.
- Fig. 4 is a flowchart of an embodiment of a method for obtaining defect detection samples according to an exemplary embodiment of the present application.
- the method for obtaining defect detection samples includes the following steps:
- Step 401 For each acquired training sample, detect the defect area in the training sample.
- each acquired training sample carries a second label
- the second label is used to record that the marked second area in the training sample is a defective area.
- the defect area in the detection training sample can be detected by the detection model used in the related technology, so that the detected defect area and the marked defect area can be distinguished and compared to obtain easy misdetection. Area.
- Step 402 In the detected defect area, if there is an area that does not overlap with the second area marked with the second label, determine that the area is an area prone to misdetection, and mark the area with the first label to obtain Training samples with first label and second label.
- each acquired training sample may also carry a third label, and the third label is used to record that the marked third area in the training sample is an area without defects.
- the error-prone area is automatically obtained by comparing the detected defect area with the area that has been marked with defects, so as to realize the labeling of the error-prone area, which is more accurate than manual marking. And it can also save labor costs.
- FIG. 5 is a hardware structure diagram of an electronic device according to an exemplary embodiment of this application.
- the electronic device includes: a communication interface 501, a processor 502, a machine-readable storage medium 503, and a bus 504; wherein, the communication interface 501
- the processor 502 and the machine-readable storage medium 503 communicate with each other through the bus 504.
- the processor 502 reads and executes the machine executable instructions in the machine readable storage medium 503 to execute the model training method, defect detection method, and defect detection sample acquisition method described above. For details of these methods, please refer to the above implementation For example, I won’t repeat them here.
- the machine-readable storage medium 503 mentioned in this application can be any electronic, magnetic, optical or other physical storage device, and can contain or store information, such as executable instructions, data, and so on.
- the machine-readable storage medium may be: volatile memory, non-volatile memory, or similar storage media.
- the machine-readable storage medium 503 may be RAM (Radom Access Memory), flash memory, storage drive (such as hard disk drive), any type of storage disk (such as optical disc, DVD, etc.), or similar storage Medium, or a combination of them.
- Fig. 6 is a structural diagram of an embodiment of a model training device according to an exemplary embodiment of the application, and the model training device includes:
- the acquiring module 610 is configured to acquire multiple frames of labeled training samples, the tags include at least a first tag and a second tag, and the first tag is used to record that the first area marked in the training sample is a false detection area , The second label is used to record that the marked second area in the training sample is a defective area;
- the training module 620 is used to train a detection model for detecting defects by using each labeled training sample and the location information of the first region and the location information of the second region in each training sample.
- the tag may further include a third tag; the third tag is used to record that the marked third area in the training sample is an area without defects;
- the training module 620 is specifically configured to input each labeled training sample and the location information of the first region, the location information of the second region, and the location information of the third region in each training sample to a designated model training engine to
- the model training engine uses the input labeled training samples, the location information of the first area, the location information of the second area, and the location information of the third area to train a detection model for detecting defects.
- the detection model includes a first sub-detection model and a second sub-detection model
- the training module 620 is further specifically configured to input each labeled training sample and the location information of the first region in each training sample to the first model training engine, so that the first model training engine uses the input labeled
- the first sub-detection model is trained by the training samples and the location information of the first region; each labeled training sample and the location information of the second region and the location information of the third region in each training sample are input to the second model training engine ,
- the second sub-detection model is trained by the second model training engine using the input labeled training sample, the location information of the second area, and the location information of the third area.
- the acquisition module 610 is specifically configured to detect a defect area in the training sample for each training sample; in the detected defect area, if there is a defect area and is marked with a second label If the second area does not overlap, it is determined that the area is easy to be misdetected, and the area is marked with a first label to obtain a training sample with the first label and the second label.
- Fig. 7 is a structural diagram of an embodiment of a defect detection device according to an exemplary embodiment of the application, and the defect detection device includes:
- the detection module 710 is configured to input a target image to be detected into a detection model to detect the target image to be detected by the detection model to obtain a target defect probability value of each pixel in the target image to be detected;
- the determining module 720 is configured to determine whether there is a defect area in the target image to be detected according to the target defect probability value of each pixel in the target image to be detected.
- the detection model includes a first sub-detection model and a second sub-detection model
- the detection module 710 is specifically configured to input the to-be-detected target image into a first sub-detection model, so that the first sub-detection model detects the to-be-detected target image to obtain the to-be-detected target image
- the first candidate probability value of each pixel point, the first candidate probability value is used to indicate the probability of easily distinguishing defects
- the target image to be detected is input into the second sub-detection model, so that the second sub-detection model Detect the target image to be detected, and obtain a second candidate probability value of each pixel in the target image to be detected, and the second candidate probability value is used to indicate the probability of a defect
- the first candidate probability value and the second candidate probability value are fused to obtain the target defect probability value of each pixel.
- the detection module 710 is specifically configured to, in the process of fusing the first candidate probability value and the second candidate probability value of each pixel point, for each pixel point, the pixel point
- the average value of the first candidate probability value and the second candidate probability value of is used as the target defect probability value of the pixel.
- the detection module 710 is specifically configured to merge the first candidate probability value and the second candidate probability value of each pixel point, for each pixel point, if the pixel point is If the first candidate probability value of the pixel is less than the preset value, then the first candidate probability value of the pixel is taken as the target defect probability value of the pixel; if the first candidate probability value of the pixel is not less than the preset value, the The second candidate probability value of the pixel is used as the target defect probability value of the pixel.
- Fig. 8 is a structural diagram of an embodiment of a device for acquiring a defect detection sample according to an exemplary embodiment of the present application.
- the device for acquiring a defect detection sample includes:
- the detection module 810 is configured to detect a defect area in each training sample obtained
- the labeling module 820 is used to determine that in the detected defect area, if there is an area that does not overlap with the second area marked with the second label, the area is determined to be an area prone to misdetection, and the area is used as the first Label marking to obtain training samples with the first label and the second label;
- each acquired training sample carries a second label
- the second label is used to record that the marked second area in the training sample is a defective area.
- each acquired training sample may also carry a third label, and the third label is used to record that the marked third area in the training sample is an area without defects.
- the relevant part can refer to the part of the description of the method embodiment.
- the device embodiments described above are merely illustrative.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units.
- Some or all of the modules can be selected according to actual needs to achieve the objectives of the solution of this application. Those of ordinary skill in the art can understand and implement it without creative work.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Probability & Statistics with Applications (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Quality & Reliability (AREA)
- Image Analysis (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
Description
Claims (14)
- 一种模型训练方法,包括:获取多帧带标签的训练样本,所述标签至少包括第一标签和第二标签,所述第一标签用于记录训练样本中被标记的第一区域为易误检区域,所述第二标签用于记录训练样本中被标记的第二区域为存在缺陷的区域;利用各带标签的训练样本和各训练样本中第一区域的位置信息、第二区域的位置信息,训练出用于检测缺陷的检测模型。
- 根据权利要求1所述的方法,其中,所述标签还包括第三标签;所述第三标签用于记录训练样本中被标记的第三区域为不存在缺陷的区域;利用各带标签的训练样本和各训练样本中第一区域的位置信息、第二区域的位置信息,训练出用于检测缺陷的检测模型,包括:将各带标签的训练样本和各训练样本中第一区域的位置信息、第二区域的位置信息以及第三区域的位置信息输入至指定的模型训练引擎,以由所述模型训练引擎利用输入的带标签的训练样本、第一区域的位置信息、第二区域的位置信息以及第三区域的位置信息训练出用于检测缺陷的检测模型。
- 根据权利要求2所述的方法,其中,所述检测模型包括第一子检测模型和第二子检测模型;利用各带标签的训练样本和各训练样本中第一区域的位置信息、第二区域的位置信息,训练出用于检测缺陷的检测模型,包括:将各带标签的训练样本和各训练样本中第一区域的位置信息输入至第一模型训练引擎,以由所述第一模型训练引擎利用输入的带标签的训练样本和第一区域的位置信息训练出所述第一子检测模型;将各带标签的训练样本和各训练样本中第二区域的位置信息、第三区域的位置信息输入至第二模型训练引擎,以由所述第二模型训练引擎利用输入的带标签的训练样本和第二区域的位置信息、第三区域的位置信息训练出所述第二子检测模型。
- 根据权利要求1所述的方法,其中,获取所述多帧带标签的训练样本,包括:针对每一训练样本,检测该训练样本中存在的缺陷区域;在检测到的缺陷区域中,若存在与被标记有第二标签的第二区域未重合的区域,则确定该区域为易误检区域,并将该区域用第一标签标记,得到带有第一标签和第二标签的训练样本。
- 一种缺陷检测样本的获取方法,包括:针对获取的每一训练样本,检测该训练样本中存在的缺陷区域;在检测到的缺陷区域中,若存在与被标记有第二标签的第二区域未重合的区域,则确定该区域为易误检区域,并将该区域用第一标签标记,得到带有第一标签和第二标签的训练样本;其中,获取的每一训练样本携带有第二标签,所述第二标签用于记录训练样本中被标记的第二区域为存在缺陷的区域。
- 根据权利要求5所述的方法,其中,获取的每一训练样本还携带有第三标签,所述第三标签用于记录训练样本中被标记的第三区域为不存在缺陷的区域。
- 一种应用如上述权利要求1所述模型训练方法训练的检测模型的缺陷检测方法,包括:将待检测目标图输入所述检测模型,以由所述检测模型对所述待检测目标图进行检测,得到所述待检测目标图中每一像素点的目标缺陷概率值;依据所述待检测目标图中各个像素点的目标缺陷概率值确定所述待检测目标图中是否存在缺陷区域。
- 根据权利要求7所述的方法,其中,所述检测模型包括第一子检测模型和第二子检测模型;将待检测目标图输入检测模型,包括:将所述待检测目标图输入所述第一子检测模型,以由所述第一子检测模型对所述待检测目标图进行检测,得到所述待检测目标图中每一像素点的第一候选概率值,所述第一候选概率值用于表示易于区分缺陷的概率;将所述待检测目标图输入所述第二子检测模型,以由所述第二子检测模型对所述待检测目标图进行检测,得到所述待检测目标图中每一像素点的第二候选概率值,所述第二候选概率值用于表示存在缺陷的概率;对每个像素点的第一候选概率值和第二候选概率值进行融合,得到每个像素点的目标缺陷概率值。
- 根据权利要求8所述的方法,其中,将每个像素点的第一候选概率值和第二候选概率值进行融合,包括:针对每个像素点,将该像素点的第一候选概率值和第二候选概率值的均值作为该像素点的目标缺陷概率值。
- 根据权利要求8所述的方法,其中,将每个像素点的第一候选概率值和第二候选概率值进行融合,包括:针对每个像素点,若该像素点的第一候选概率值小于预设数值,则将该像素点的第一候选概率值作为该像素点的目标缺陷概率值;若该像素点的第一候选概率值不小于预设数值,则将该像素点的第二候选概率值作为该像素点的目标缺陷概率值。
- 一种模型训练装置,包括:获取模块,用于获取多帧带标签的训练样本,所述标签至少包括第一标签和第二标签,所述第一标签用于记录训练样本中被标记的第一区域为易误检区域,所述第二标签用于记录训练样本中被标记的第二区域为存在缺陷的区域;训练模块,用于利用各带标签的训练样本和各训练样本中第一区域的位置信息、第二区域的位置信息,训练出用于检测缺陷的检测模型。
- 一种缺陷检测样本的获取装置,包括:检测模块,用于针对获取的每一训练样本,检测该训练样本中存在的缺陷区域;打标签模块,用于在检测到的缺陷区域中,若存在与被标记有第二标签的第二区域未重合的区域,则确定该区域为易误检区域,并将该区域用第一标签标记,得到带有第一标签和第二标签的训练样本;其中,获取的每一训练样本携带有第二标签,所述第二标签用于记录训练样本中被标记的第二区域为存在缺陷的区域。
- 一种应用如上述权利要求1所述模型训练方法训练的检测模型的缺陷检测装置,包括:检测模块,用于将待检测目标图输入检测模型,以由所述检测模型对所述待检测目标图进行检测,得到所述待检测目标图中每一像素点的目标缺陷概率值;确定模块,用于依据所述待检测目标图中各个像素点的目标缺陷概率值确定所述待检测目标图中是否存在缺陷区域。
- 一种电子设备,包括:处理器;和存储有机器可执行指令的机器可读存储介质;其中,所述处理器通过读取所述机器可执行指令执行权利要求1-10任一所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910312755.8 | 2019-04-18 | ||
| CN201910312755.8A CN111861966B (zh) | 2019-04-18 | 2019-04-18 | 模型训练方法、装置及缺陷检测方法、装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020211823A1 true WO2020211823A1 (zh) | 2020-10-22 |
Family
ID=72838053
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/085205 Ceased WO2020211823A1 (zh) | 2019-04-18 | 2020-04-16 | 模型训练方法、装置及缺陷检测方法、装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111861966B (zh) |
| WO (1) | WO2020211823A1 (zh) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112651941A (zh) * | 2020-12-25 | 2021-04-13 | 北京巅峰科技有限公司 | 车辆缺陷识别方法、装置、电子装置和存储介质 |
| CN112784997A (zh) * | 2021-01-22 | 2021-05-11 | 北京百度网讯科技有限公司 | 标注复核方法、装置、设备、存储介质以及程序产品 |
| CN113706462A (zh) * | 2021-07-21 | 2021-11-26 | 南京旭锐软件科技有限公司 | 产品表面缺陷检测方法、装置、设备及存储介质 |
| CN113744252A (zh) * | 2021-09-07 | 2021-12-03 | 全芯智造技术有限公司 | 用于标记和检测缺陷的方法、设备、存储介质和程序产品 |
| CN115984959A (zh) * | 2022-12-20 | 2023-04-18 | 山东大学 | 基于神经网络与质心跟踪的牛类异常行为检测方法及系统 |
| CN116012634A (zh) * | 2021-10-21 | 2023-04-25 | 北京首钢冷轧薄板有限公司 | 一种带钢板形分类方法、装置、计算机介质和设备 |
| CN116363065A (zh) * | 2023-02-22 | 2023-06-30 | 元始智能科技(南通)有限公司 | 基于事件相机的工件缺陷检测方法及装置 |
| CN116580407A (zh) * | 2023-05-12 | 2023-08-11 | 北京中关村科金技术有限公司 | 文本检测模型的训练方法、文本检测方法及装置 |
| CN117282687A (zh) * | 2023-10-18 | 2023-12-26 | 广州市普理司科技有限公司 | 印刷品视觉检测自动剔补标控制系统 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117934470B (zh) * | 2024-03-22 | 2024-09-10 | 宁德时代新能源科技股份有限公司 | 模型训练方法、缺陷检测方法、装置、设备和存储介质 |
| CN119251182B (zh) * | 2024-09-25 | 2025-07-15 | 江西广信药业有限公司 | 一种药物包装缺陷的智能检测方法及系统 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106875381A (zh) * | 2017-01-17 | 2017-06-20 | 同济大学 | 一种基于深度学习的手机外壳缺陷检测方法 |
| CN109146873A (zh) * | 2018-09-04 | 2019-01-04 | 凌云光技术集团有限责任公司 | 一种基于学习的显示屏缺陷智能检测方法及装置 |
| US20190042953A1 (en) * | 2017-08-07 | 2019-02-07 | International Business Machines Corporation | Filter for harmful training samples in online learning systems |
| CN109389160A (zh) * | 2018-09-27 | 2019-02-26 | 南京理工大学 | 基于深度学习的电力绝缘端子缺陷检测方法 |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103473925B (zh) * | 2013-08-28 | 2016-08-10 | 惠州市德赛工业发展有限公司 | 一种道路车辆检测系统的验证方法 |
| CN104156734B (zh) * | 2014-08-19 | 2017-06-13 | 中国地质大学(武汉) | 一种基于随机蕨分类器的全自主在线学习方法 |
| CN107871134A (zh) * | 2016-09-23 | 2018-04-03 | 北京眼神科技有限公司 | 一种人脸检测方法及装置 |
| CN106548155A (zh) * | 2016-10-28 | 2017-03-29 | 安徽四创电子股份有限公司 | 一种基于深度信念网络的车牌检测方法 |
| JP6705777B2 (ja) * | 2017-07-10 | 2020-06-03 | ファナック株式会社 | 機械学習装置、検査装置及び機械学習方法 |
| CN107966447B (zh) * | 2017-11-14 | 2019-12-17 | 浙江大学 | 一种基于卷积神经网络的工件表面缺陷检测方法 |
| CN107886133A (zh) * | 2017-11-29 | 2018-04-06 | 南京市测绘勘察研究院股份有限公司 | 一种基于深度学习的地下管道缺陷自动识别方法 |
| CN108562589B (zh) * | 2018-03-30 | 2020-12-01 | 慧泉智能科技(苏州)有限公司 | 一种对磁路材料表面缺陷进行检测的方法 |
| CN108921111A (zh) * | 2018-07-06 | 2018-11-30 | 南京旷云科技有限公司 | 对象检测后处理方法及对应装置 |
| CN109410190B (zh) * | 2018-10-15 | 2022-04-29 | 广东电网有限责任公司 | 基于高分辨率遥感卫星影像的杆塔倒断检测模型训练方法 |
| CN109558902A (zh) * | 2018-11-20 | 2019-04-02 | 成都通甲优博科技有限责任公司 | 一种快速目标检测方法 |
| CN109522968A (zh) * | 2018-11-29 | 2019-03-26 | 济南浪潮高新科技投资发展有限公司 | 一种基于串行双任务网络的病灶区检测方法及系统 |
-
2019
- 2019-04-18 CN CN201910312755.8A patent/CN111861966B/zh active Active
-
2020
- 2020-04-16 WO PCT/CN2020/085205 patent/WO2020211823A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106875381A (zh) * | 2017-01-17 | 2017-06-20 | 同济大学 | 一种基于深度学习的手机外壳缺陷检测方法 |
| US20190042953A1 (en) * | 2017-08-07 | 2019-02-07 | International Business Machines Corporation | Filter for harmful training samples in online learning systems |
| CN109146873A (zh) * | 2018-09-04 | 2019-01-04 | 凌云光技术集团有限责任公司 | 一种基于学习的显示屏缺陷智能检测方法及装置 |
| CN109389160A (zh) * | 2018-09-27 | 2019-02-26 | 南京理工大学 | 基于深度学习的电力绝缘端子缺陷检测方法 |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112651941A (zh) * | 2020-12-25 | 2021-04-13 | 北京巅峰科技有限公司 | 车辆缺陷识别方法、装置、电子装置和存储介质 |
| CN112784997A (zh) * | 2021-01-22 | 2021-05-11 | 北京百度网讯科技有限公司 | 标注复核方法、装置、设备、存储介质以及程序产品 |
| CN112784997B (zh) * | 2021-01-22 | 2023-11-10 | 北京百度网讯科技有限公司 | 标注复核方法、装置、设备、存储介质以及程序产品 |
| CN113706462A (zh) * | 2021-07-21 | 2021-11-26 | 南京旭锐软件科技有限公司 | 产品表面缺陷检测方法、装置、设备及存储介质 |
| CN113744252A (zh) * | 2021-09-07 | 2021-12-03 | 全芯智造技术有限公司 | 用于标记和检测缺陷的方法、设备、存储介质和程序产品 |
| CN116012634A (zh) * | 2021-10-21 | 2023-04-25 | 北京首钢冷轧薄板有限公司 | 一种带钢板形分类方法、装置、计算机介质和设备 |
| CN115984959A (zh) * | 2022-12-20 | 2023-04-18 | 山东大学 | 基于神经网络与质心跟踪的牛类异常行为检测方法及系统 |
| CN116363065A (zh) * | 2023-02-22 | 2023-06-30 | 元始智能科技(南通)有限公司 | 基于事件相机的工件缺陷检测方法及装置 |
| CN116580407A (zh) * | 2023-05-12 | 2023-08-11 | 北京中关村科金技术有限公司 | 文本检测模型的训练方法、文本检测方法及装置 |
| CN117282687A (zh) * | 2023-10-18 | 2023-12-26 | 广州市普理司科技有限公司 | 印刷品视觉检测自动剔补标控制系统 |
| CN117282687B (zh) * | 2023-10-18 | 2024-05-28 | 广州市普理司科技有限公司 | 印刷品视觉检测自动剔补标控制系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111861966A (zh) | 2020-10-30 |
| CN111861966B (zh) | 2023-10-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020211823A1 (zh) | 模型训练方法、装置及缺陷检测方法、装置 | |
| CN113344857B (zh) | 缺陷检测网络的训练方法、缺陷检测方法和存储介质 | |
| US11080839B2 (en) | System and method for training a damage identification model | |
| Yao et al. | A feature memory rearrangement network for visual inspection of textured surface defects toward edge intelligent manufacturing | |
| TWI716012B (zh) | 樣本標註方法、裝置、儲存媒體和計算設備、損傷類別的識別方法及裝置 | |
| WO2024002187A1 (zh) | 缺陷检测方法、缺陷检测设备及存储介质 | |
| CN114627089B (zh) | 缺陷识别方法、装置、计算机设备及计算机可读存储介质 | |
| US11315229B2 (en) | Method for training defect detector | |
| JP2021190716A5 (zh) | ||
| CN115719460A (zh) | 一种基于深度学习的气体泄露检测方法、系统及终端设备 | |
| CN111353521A (zh) | 用于噪声标签的对抗训练系统和方法 | |
| CN111696077A (zh) | 一种基于WaferDet网络的晶圆缺陷检测方法 | |
| CN109919934A (zh) | 一种基于多源域深度迁移学习的液晶面板缺陷检测方法 | |
| CN110232406A (zh) | 一种基于统计学习的液晶面板cf图片识别方法 | |
| CN113095444B (zh) | 图像标注方法、装置及存储介质 | |
| CN106127746A (zh) | 电路板元件漏件检测方法和系统 | |
| CN108761237A (zh) | 无人机电力巡检图像关键电力部件自动诊断与标注系统 | |
| CN116433651B (zh) | 一种小样本面板缺陷检测方法、系统、设备及存储介质 | |
| CN114663687A (zh) | 模型训练方法、目标识别方法、装置、设备及存储介质 | |
| US12094098B2 (en) | Defect management apparatus, method and non-transitory computer readable medium | |
| CN111311545A (zh) | 集装箱检测方法、装置及计算机可读存储介质 | |
| TW202029070A (zh) | 神經網路的訓練方法、基於神經網路的分類方法及其裝置 | |
| CN110619619A (zh) | 一种缺陷检测方法、装置及电子设备 | |
| CN115294039A (zh) | 一种钢卷端面缺陷检测方法 | |
| CN114782349A (zh) | 领域自适应原油泄露检测模型训练方法、检测方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20790777 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20790777 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.05.2023) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20790777 Country of ref document: EP Kind code of ref document: A1 |
