当前位置:网站首页>Practical example of propeller easydl: automatic scratch recognition of industrial parts
Practical example of propeller easydl: automatic scratch recognition of industrial parts
2022-07-07 12:58:00 【Paddlepaddle】
Baidu Flying propeller EasyDL Provide zero threshold for enterprise developers AI Development platform , One stop support for smart tagging 、 model training 、 Service deployment and other functions , Built in rich pre training model , Support for public clouds / Local server / Flexible deployment on the device side , It has been used in industry 、 retail 、 manufacture 、 Medical treatment and other fields .
Automatic scratch recognition of industrial parts
Through training object detection customization AI Model , To achieve for “ Scratches on industrial parts ” Intelligent recognition of , It is widely used in industrial quality inspection 、 Intelligent manufacturing and other fields .
Project description
Business background
A factory is mainly engaged in the production and processing of various workpieces , Because the factory production environment is complex , There are scratches in the production process of the workpiece 、 Bump 、 Possibility of making omissions , Defective goods should be treated as defective products , Do not enter the market .
Business difficulties
The precision of defect quality inspection is required to be high , Defects are usually subtle and difficult to find , The traditional manual quality inspection method is inefficient , Long time operation is prone to visual fatigue and false detection 、 Phenomenon of missing inspection . Low quality inspection efficiency will directly affect the factory's production capacity and delivery efficiency .
Solutions
To improve production capacity and quality inspection accuracy , The factory decided to intelligently empower the quality inspection production line , adopt AI Realize automatic identification of defects + Manual review method , Improve the efficiency of ex factory quality inspection . come to know Flying propeller EasyDL Provides zero threshold AI Development function , Model training can be completed quickly without knowing the basis of the algorithm , The factory passed EasyDL The object detection task type provided by the platform is quickly trained in the following steps , High precision scratch quality inspection of production workpiece is obtained AI Model and put it into practical business application , Based on this intelligent quality inspection scheme , The quality inspection manpower invested by the enterprise every year is reduced 60%, The efficiency and accuracy of quality inspection have been greatly improved .
Tips : For workpiece surface scratch recognition scene , Multiple scratch defects may appear in a single picture , The number of scratches needs to be identified , Therefore, the object detection model is selected .
Data preparation
Data collection and import
The factory selects historical defect data from the original production environment, about 300 Zhang , When preparing training data, we should pay attention to keeping consistent with the data generated by the actual production scene as far as possible , Like light 、 brightness 、 Shooting angle, etc , Only when the objective factors are consistent, the trained model will have higher applicability and effect in practical application . for example , The angle of the camera deployed in the actual quality inspection production line to the parts is overhead , that , When collecting data, you also need to collect the original pictures from the same angle . If the original data obtained by the enterprise has no annotation information , You can choose to import unmarked information in the platform and then press one key to import , for example , You can type the original image into a compressed package , The specific import path is as follows :
meanwhile EasyDL It also provides a variety of other data import methods , You can choose different import methods according to your usage habits , for example , You can upload the picture to the network address first ( for example , Baidu SkyDrive 、 Baidu BOS etc. ), Copy the corresponding address link to complete the quick import , It is suitable for cases with large data magnitude , Help you shorten the import time .
Data tagging
The original image needs to be marked , Before model training . The data marking process should be as close to the defect characteristics of scratches as possible , Make sure that all defects are contained in the rectangular box and that the rectangular box is not too large than the defect size , The following are examples of correct annotation and wrong annotation .
Tips : When your annotation workload is large , You can choose to turn on smart annotation , That is, you only need to mark 30% Pictures of the , The remaining 70% The picture of will automatically label you .
model training
After training data preparation , You can create it by clicking 【 Creating models 】 Enter the basic information and complete the model creation , Click on 【 Training models 】 Start training . A model can cover multiple versions , One training produces one version , You can customize the version management according to your business needs . Considering that industrial quality inspection scenarios usually pay more attention to prediction efficiency , The prediction efficiency of the model will directly affect the quality inspection efficiency , Therefore, it is recommended that you choose EasyEdge Local deployment - The server - Ultra high precision algorithm . The advantages of this scheme are : The local deployment method can effectively save the time required for the upload of prediction data and the distribution of prediction results , Greatly improve the prediction efficiency and then increase the production capacity , Ultra high precision algorithm can maximize the effect of the model , Here's the picture :
Model deployment
Local deployment requires local computing power to carry the model deployment and prediction process , To ensure the prediction performance of the model , The factory chose the one with sufficient computing power T4 Server as local computing power , Therefore, it is necessary to publish the model as a model suitable for the hardware SDK. meanwhile EasyDL The platform still supports many other hardware types , You can choose the corresponding operating system and chip type according to your actual business needs , Here's the picture :
After the model is released , Can be found in 【 Pure offline service 】 Found published models in SDK, Download and 【 Get the serial number 】 After activation, it can be deployed in the terminal application .
The enterprise will AI The model is applied to the actual scene, hoping to realize the automatic sorting of defective workpieces , In the quality inspection production line, each workpiece is photographed by a professional camera , The captured pictures are transferred to the prediction server for quality inspection , When defects are detected in the current workpiece picture , The defective workpiece is grabbed by the mechanical arm and stored in a specific area for manual review .
Effect optimization
After model training , adopt EasyDL The overall effect of the model can be viewed in the automatically produced evaluation report , In this factory scenario, the defect characteristics are relatively consistent and the scenario is fixed , The overall effect is better . If the effect is not good, you can check the error examples of different labels to locate the reasons for the poor performance under this label . for example , By looking at the error examples , Pictures with wrong predictions are usually taken during periods of insufficient light , For optimization suggestions, we need to supplement the data in the case of insufficient lighting Improve model effect , Here's the picture :
common problem
problem 1:EasyDL Images provide a variety of training tasks , Why choose the object detection task type in this scenario ?
at present EasyDL Images provide image classification 、 Object detection 、 There are three types of tasks in image segmentation : Image classification is applicable to scenes with a single subject or state in the picture ; Object detection is applicable to scenes with multiple subjects and the need to identify the location of the subjects ; Image segmentation can locate multiple subjects and needs to be located at the pixel level of the subject . For the scratch inspection scenario , Multiple defects may appear in a single picture , Defects do not need to be located at the pixel level , Therefore, it is more appropriate to select object detection .
problem 2: How to collect industrial quality inspection scene data ?
The data is AI Prerequisites for model training , The training data in the industrial quality inspection scene usually comes from the historical stock data of the image acquisition equipment on the industrial production line , therefore , If image acquisition equipment has not been built on the production line, priority should be given to the construction of image acquisition equipment , Based on the collected image data AI model training .
problem 3: How to solve the problem of too few defect samples ? EasyDL The platform provides data enhancement strategies , in the light of EasyDL The platform provides data imbalance strategies , The existing defect pictures can be expanded by data enhancement strategy , And then maximize the utilization of limited data , Complete the configuration on your model training page .
边栏推荐
- 详解ThinkPHP支持的URL模式有四种普通模式、PATHINFO、REWRITE和兼容模式
- 免费手机号码归属地API查询接口
- Leetcode skimming: binary tree 25 (the nearest common ancestor of binary search tree)
- HZOJ #236. 递归实现组合型枚举
- About IPSec
- 【无标题】
- 2022危险化学品生产单位安全生产管理人员考题及在线模拟考试
- [statistical learning method] learning notes - support vector machine (I)
- Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
- [statistical learning method] learning notes - logistic regression and maximum entropy model
猜你喜欢
云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection
图像像素读写操作
DHCP 动态主机设置协议 分析
通过Keil如何查看MCU的RAM与ROM使用情况
Master公式。(用于计算递归的时间复杂度。)
明星企业普渡科技大裁员:曾募资超10亿 腾讯红杉是股东
[crawler] avoid script detection when using selenium
Master formula. (used to calculate the time complexity of recursion.)
HZOJ #240. 图形打印四
Connect to blog method, overload, recursion
随机推荐
数据库安全的重要性
Ip2long and long2ip analysis
layer弹出层的关闭问题
Guangzhou held work safety conference
Leetcode brush question: binary tree 24 (the nearest common ancestor of binary tree)
[difficult and miscellaneous]pip running suddenly appears modulenotfounderror: no module named 'pip‘
在字符串中查找id值MySQL
【从 0 开始学微服务】【01】什么是微服务
PHP调用纯真IP数据库返回具体地址
Day-20 file operation, recursive copy, serialization
【从 0 开始学微服务】【03】初探微服务架构
飞桨EasyDL实操范例:工业零件划痕自动识别
Adopt a cow to sprint A shares: it plans to raise 1.85 billion yuan, and Xu Xiaobo holds nearly 40%
关于 appium 如何关闭 app (已解决)
2022 practice questions and mock examination of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge)
[爬虫]使用selenium时,躲避脚本检测
基于NeRF的三维内容生成
博文推荐|Apache Pulsar 跨地域复制方案选型实践
HZOJ #235. 递归实现指数型枚举
TPG x AIDU|AI领军人才招募计划进行中!