WO2021109593A1 - Embedded platform deployment method and device, and storage medium - Google Patents

Embedded platform deployment method and device, and storage medium Download PDF

Info

Publication number
WO2021109593A1
WO2021109593A1 PCT/CN2020/104548 CN2020104548W WO2021109593A1 WO 2021109593 A1 WO2021109593 A1 WO 2021109593A1 CN 2020104548 W CN2020104548 W CN 2020104548W WO 2021109593 A1 WO2021109593 A1 WO 2021109593A1
Authority
WO
WIPO (PCT)
Prior art keywords
embedded
software
motherboard
embedded motherboard
computer
Prior art date
Application number
PCT/CN2020/104548
Other languages
French (fr)
Chinese (zh)
Inventor
邓辅秦
黄永深
陈颖颖
彭健烽
冯华
李伟科
Original Assignee
五邑大学
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 五邑大学 filed Critical 五邑大学
Publication of WO2021109593A1 publication Critical patent/WO2021109593A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Definitions

  • the invention relates to the technical field of embedded development of deep learning, in particular to a deployment method, equipment and storage medium of an embedded platform.
  • Compatibility problems are prone to occur when configuring the framework environment. Therefore, if you want to run deep learning smoothly on embedded motherboards, A series of tedious tasks such as downloading source code, patching, finding files, and installing dependent libraries need to be completed through complex command lines. Each step has different and complex commands. In order to complete different steps, it is often necessary to switch between different software. , The operation is very inconvenient.
  • the above method only tests one image data at a time.
  • the user imports the data to be tested from the personal computer into the embedded development board.
  • the traditional transmission method is to use the command line or some software for batch transmission.
  • After importing the data to be tested enter a specific command line command to test the model on the embedded development board, but the command line can only be tested once.
  • you must write a script file by yourself. Each test is performed. It is necessary to re-enter the command line instructions to complete the data import and test. If the data to be tested contains tens of thousands of pictures, the workload of the above process is very huge.
  • the purpose of the present invention is to provide a deployment method, equipment and storage medium of an embedded platform, which simplifies the deployment process of deep learning and improves the efficiency of training models.
  • an embedded platform deployment method of the present invention includes:
  • the preset software and library file resources are sent and installed to the embedded motherboard;
  • the training files of different formats are converted into formats, packaged and sent to the embedded motherboard;
  • the deployment method of an embedded platform of the present invention adopts the following steps: communicating with the embedded motherboard, acquiring the hardware environment and software environment of the embedded motherboard, and presetting based on the acquired hardware environment information and software environment information
  • the software and library file resources are sent and installed to the embedded motherboard.
  • the training files of different formats are converted and packaged and sent to the embedded motherboard, and the data to be tested is dragged and uploaded in batches.
  • the step of sending and installing preset software and library file resources to the embedded motherboard based on the acquired hardware environment information and software environment information includes:
  • the software and library file resources include TensorFlow Lite deep learning framework files and software that can realize the speed measurement experiment function and the data analysis report function.
  • the TensorFlow Lite deep learning framework is used to provide a training environment for deep learning models, and the software that can realize the speed measurement experiment function and the data analysis report function is used for the speed measurement and data analysis of the embedded motherboard in the deep learning training process. , And send the training results to the host.
  • the step of sending and installing preset software and library file resources to the embedded motherboard based on the acquired hardware environment information and software environment information includes:
  • the software and library file resources are uniformly reinstalled. Before installation, it is determined whether the software and library file resources are already on the embedded motherboard. If not, the software and library are installed If the file exists, the command line interface displays the prompt information that the software and library file resources have been installed, and extracts the prompt information to determine whether the software and library file are successfully installed.
  • the host obtains the software and library file resources needed in the process of deep learning model training of the embedded motherboard, and then the software obtains the software resource package integrated from the background of the host Grab the corresponding software resources such as the photo library and patches.
  • the host After the host receives the user instruction through the ssh and sftp protocol and the human-computer interaction interface, it automatically packages and sends the software resources required by the embedded motherboard in training to the embedded motherboard, so that the user does not need to analyze the embedded motherboard by himself
  • the hardware environment of the motherboard and searching for missing software and library file resources of the embedded motherboard greatly reduce the difficulty of deployment of the deep learning platform. For example, if the embedded motherboard is jetson Nano of the MVIDIA series, the TensorRT software needs to be installed, and the host detects it by itself. If the TensorRT software is not installed, the embedded motherboard will be installed.
  • the step of converting the trained training files in different formats into .tflite format files after receiving user instructions through the human-computer interaction interface and packaging and sending them to the embedded motherboard includes:
  • the converted file is packaged and sent to the embedded motherboard.
  • the TensorFlow lite deep learning framework runs on the embedded motherboard, the user must train a model on the desktop device in advance, and in order to implement the model import, some other types of files are needed, such as Graph Definition, Checkpoints, and Frozen Graph, however, only files in the .tflite format can be run on the embedded motherboard with the TensorFlow lite library installed, so training files in different formats need to be converted to files in the .tflite format.
  • the user only needs to input the pre-conversion and post-conversion file formats in the human-computer interaction interface, and the host can convert training files in different formats into .tflite format files that can be run in the TensorFlow Lite deep learning framework.
  • the conversion of .tflite format files is divided into three steps: save the trained model files .ckpt and .pb; use freeze_graph tool to generate frozen graphdef files; use toco (Tensorflow Optimizing COnverter) tool to generate the final tflite file.
  • the data to be tested is batch dragged Drag and upload and send to the embedded motherboard and start testing; obtain the speed test experiment report and data analysis report of the embedded motherboard.
  • the user can upload and send multiple sets of data at one time by dragging and dropping the buttons on the human-machine communication interface.
  • the user can complete a large number of tests for the model by clicking on the corresponding interface of the host computer to start running the network model.
  • the embedded motherboard records the time when the model is used and when it ends, and calculates the results of the speed measurement experiment.
  • the data analysis report includes accuracy, recall, sensitivity, specific validity and comprehensive evaluation indicators, and the accuracy is expressed The probability of the true positive sample in the sample that is predicted to be positive, the recall rate indicates how many positive examples in the sample are predicted correctly, and the sensitivity indicates the proportion of all positive examples that are matched, which measures the classifier’s ability to recognize positive examples.
  • the specific validity represents the proportion of all negative cases that are matched, and it measures the classifier’s ability to recognize negative cases.
  • the comprehensive evaluation index is the weighted and average of accuracy and recall. When the value of the comprehensive evaluation index is high, the training model is explained. More effective.
  • the present invention provides a deployment method and equipment of an embedded platform
  • It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor, so that the at least one control processor A method for deploying an embedded platform as described above can be executed.
  • the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute the method for deploying an embedded platform as described above.
  • the present invention also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer , Make the computer execute the deployment method of an embedded platform as described above.
  • FIG. 1 is a schematic diagram of the software flow of an embedded platform deployment method according to an embodiment of the present invention.
  • step S101 run the software. First, open the software applying the embedded platform deployment method of the present invention.
  • step S102 the host communicates with the embedded motherboard through a data network cable.
  • the host and the embedded motherboard communicate via a data network cable or wirelessly.
  • the host computer and the embedded motherboard communicate through a data network cable.
  • Step S103 the host detects the software environment and hardware environment of the embedded motherboard. After the host is successfully connected to the embedded motherboard, the host starts to detect the software environment and hardware environment of the embedded motherboard, and the hardware information of the embedded motherboard includes the model and operating system type of the embedded motherboard .
  • the host obtains the hardware environment of the embedded motherboard by manually selecting the hardware environment by the user or by command detection.
  • the user manually selects the hardware environment of the embedded motherboard, the deployment process is less buggy, the software will list commonly used artificial intelligence embedded motherboards (such as Jeston series, RK3399) for users to choose, and different motherboard models use different Installation steps;
  • another way to obtain the hardware environment of the embedded motherboard is to detect through commands, such as detecting CPU information: uname-a or cat/proc/cpuinfo and the general computer name will put the model in: hostname#View computer name.
  • the host acquires the hardware environment of the embedded motherboard through a command detection method, and the host acquires the hardware environment by sending a ping packet to the embedded motherboard.
  • Windows starts The default value of ttl is 128, and the default value of linux and unix systems is 64. There are some special unix systems whose ttl value is 255, or use the parameter -O provided by map.
  • step S104 the software analyzes the software environment and the hardware environment and packages the required software and library file resources into a software containing TensorFlow lite and transmits it to the embedded development board system to deploy a deep learning environment.
  • the software and library file resources needed in the process of deep learning model training of the embedded motherboard are obtained, and then the software grabs the corresponding software resource package from the back-end integrated software resource package of the host.
  • the embedded motherboard is a jetson Nano of the MVIDIA series
  • the TensorRT software needs to be installed, and the host detects itself. If the TensorRT software is not installed, it will install the embedded motherboard.
  • the software and library file resources include TensorFlow Lite deep learning framework files and software that can realize the speed test function and the data analysis report function.
  • the host determines whether the software and library file resources are already on the embedded motherboard. If it does not exist, the software and library files are installed. If they exist, the command line interface displays a prompt message that the software and library file resources have been installed. The host extracts the prompt information to determine whether the software and library files are Successful installation.
  • step S105 the software on the host converts the trained training files in different formats into .tflite format files and packs them and sends them to the embedded motherboard. Since the TensorFlow lite deep learning framework runs on the embedded motherboard, the user must train a model in advance on the desktop device, and in order to implement the model import, some other types of files are needed, such as Graph Definition, Checkpoints, and Frozen Graph. However, only files in the .tflite format can be run on the embedded motherboard with the TensorFlow lite library installed, so training files in different formats need to be converted to files in the .tflite format.
  • the user enters the pre-conversion and post-conversion file formats in the software.
  • the software uses the source code in the TensorFlow Lite deep learning framework to compile and convert the trained deep learning model files and variable files into files in .tflite format. Finally, the software packages the converted files and sends them to the embedded motherboard.
  • step S106 the software sends the data to be tested to the embedded motherboard in batches and starts the test.
  • the software provides a file drag and drop function, which replaces the traditional use of a command line interface for file positioning, transmission and other complex instructions.
  • the user issues a transmission instruction by clicking the corresponding button on the software, or by dragging and dropping the data file to be tested into the corresponding area of the software, so that the host transmits the data to be tested in batches to The embedded motherboard;
  • the user drags and drops the data file to be tested into the corresponding area of the software, so that the host transmits the data to be tested to the embedded motherboard in batches. , And then the user issues a test instruction by clicking the corresponding button to make the embedded motherboard start batch testing of the received data to be tested, so that the user can upload and test multiple sets of data with one click through the software.
  • step S107 the embedded motherboard sends the speed measurement experiment report and the data analysis report to the host to complete the deployment of the neural network.
  • the embedded motherboard runs the software that can realize the speed measurement experiment in the software resource package transmitted from the host, so as to perform the speed measurement experiment, record the time from the beginning to the end of the model, and internally calculate the speed measurement result And send it to the host, so as to ensure the real-time performance of the data result.
  • the data analysis report includes accuracy rate, recall rate, sensitivity rate, specific validity and comprehensive evaluation index.
  • the accuracy rate indicates the probability of a true positive sample in the sample that is predicted to be positive
  • the recall rate indicates how many positive examples in the sample are predicted correctly
  • the sensitivity indicates the proportion of all positive examples that are matched, which measures the classifier’s ability to positive examples.
  • Recognition ability, special validity indicates the proportion of all negative examples that are matched, and measures the classifier’s ability to recognize negative examples.
  • the comprehensive evaluation index is the weighted average of accuracy and recall. When the value of the comprehensive evaluation index is high It shows that the training model is more effective. In this way, users can clearly understand the operation of the deep learning model and improve the deep learning model.
  • the method and equipment for deploying an embedded platform includes: one or more control processors and memories, and the control processors and memories may be connected by a bus or in other ways.
  • the memory can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, as in the embodiment of the present invention, an embedded platform deployment method corresponds to The program instructions/modules of the control processor execute the various functional applications and data processing of an embedded platform deployment method device by running the non-transitory software programs, instructions and modules stored in the memory, that is, the above method is realized An embodiment of a method for deploying an embedded platform.
  • the memory may include a storage program area and a storage data area, where the storage program area can store an operating system and an application program required by at least one function; the storage data area can store data created by using an embedded platform deployment method device. Data etc.
  • the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • the memory may optionally include a memory remotely arranged with respect to the control processor, and these remote memories may be connected to the deployment method device of the embedded platform through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the one or more modules are stored in the memory, and when executed by the one or more control processors, an embedded platform deployment method in the foregoing method embodiment is executed.
  • the embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors.
  • the device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each implementation manner can be implemented by means of software plus a general hardware platform.
  • All or part of the processes in the methods of the foregoing embodiments can be implemented by computer programs instructing relevant hardware.
  • the programs can be stored in a computer readable storage medium. At this time, it may include the flow of the embodiment of the above-mentioned method.
  • the storage medium can be a magnetic disk, an optical disc, a read-only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Mathematical Physics (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

An embedded platform deployment method and device, and a storage medium, relating to the technical field of embedded development of deep learning. The method comprises the following steps of: communicating with an embedded motherboard; obtaining a hardware environment and a software environment of the embedded motherboard; sending and installing preset software and library file resources to the embedded motherboard on the basis of obtained hardware environment information and software environment information; after receiving a user instruction by means of a human-machine interaction interface, converting formats of training files having different formats, packaging and sending the training files to the embedded motherboard; uploading, by dragging, data to be tested in batches and sending same to the embedded motherboard to enable the embedded motherboard to start testing; and obtaining a speed measurement experiment report and a data analysis report of the embedded motherboard. In the method, the operations of deploying a platform for deep learning training for different types of embedded devices, importing said data in batches, and testing said data in batches are implemented by means of the human-machine interaction interface, thereby greatly reducing the working difficulty of a test personnel and improving the test efficiency.

Description

嵌入式平台的部署方法、设备及存储介质Deployment method, equipment and storage medium of embedded platform 技术领域Technical field
本发明涉及深度学习的嵌入式开发技术领域,特别涉及嵌入式平台的部署方法、设备及存储介质。The invention relates to the technical field of embedded development of deep learning, in particular to a deployment method, equipment and storage medium of an embedded platform.
背景技术Background technique
随着大数据时代的发展,基于深度学习的计算机视觉越来越受到世界各国相关领域研究人员和高科技公司的重视,随着深度学习在移动设备上的使用越来越普遍,人们对嵌入式主板平台的计算能力和性能的要求越来越高。深度学习的训练和部署有很大不同,而且训练阶段和部署阶段分离,彼此独立。得益于这几年来出现的开源轻量化深度学习框架模型,例如TensorFlow Lite深度学习框架,这些模型能够减轻深度学习的运算量,有效减轻嵌入式开发板的负担。然而不同公司生产的嵌入式开发板间的组件、结构、连接方式、使用材料等存在较大差异,在配置框架环境时容易出现兼容性问题,因此要想在嵌入式主板上顺利运行深度学习,需要通过复杂的命令行完成下载源码、打补丁、找文件、安装依赖库等一系列繁琐的工作,每一步都有着不同且复杂的命令,为了完成不同的步骤,往往需要在不同的软件间切换,操作十分不便。With the development of the era of big data, computer vision based on deep learning has received more and more attention from researchers and high-tech companies in related fields around the world. As the use of deep learning on mobile devices becomes more and more common, people are more concerned about embedded The computing power and performance requirements of motherboard platforms are getting higher and higher. The training and deployment of deep learning are very different, and the training phase and the deployment phase are separate and independent of each other. Thanks to the open source lightweight deep learning framework models that have emerged in the past few years, such as the TensorFlow Lite deep learning framework, these models can reduce the amount of deep learning calculations and effectively reduce the burden on embedded development boards. However, there are big differences in the components, structures, connection methods, and materials used between embedded development boards produced by different companies. Compatibility problems are prone to occur when configuring the framework environment. Therefore, if you want to run deep learning smoothly on embedded motherboards, A series of tedious tasks such as downloading source code, patching, finding files, and installing dependent libraries need to be completed through complex command lines. Each step has different and complex commands. In order to complete different steps, it is often necessary to switch between different software. , The operation is very inconvenient.
在使用深度学习模型时,上述方法每次只测试一张图片数据,测试前用户将需要测试的数据从个人电脑导入嵌入式开发板,传统的传输方式为使用命令行或者某些软件进行批量传输,导入待测试数据后,输入特定的命令行指令,进行在嵌入式开发板上模型的测试,但命令行只能进行一次测试,为了测试多张图片还要自行写脚本文件,每测试一次,就要重新输入命令行指令完成数据的导入和测试,假如要测试的数据中含有几千几万张图片,上述流程的工作量就非常庞大。When using the deep learning model, the above method only tests one image data at a time. Before the test, the user imports the data to be tested from the personal computer into the embedded development board. The traditional transmission method is to use the command line or some software for batch transmission. , After importing the data to be tested, enter a specific command line command to test the model on the embedded development board, but the command line can only be tested once. In order to test multiple pictures, you must write a script file by yourself. Each test is performed. It is necessary to re-enter the command line instructions to complete the data import and test. If the data to be tested contains tens of thousands of pictures, the workload of the above process is very huge.
发明内容Summary of the invention
为了克服现有技术的不足,本发明的目的在于提供一种嵌入式平台的部署方法、设备及存储介质,简化了深度学习的部署流程,并且提高训练模型的效率。In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a deployment method, equipment and storage medium of an embedded platform, which simplifies the deployment process of deep learning and improves the efficiency of training models.
本发明解决其问题所采用的技术方案是:The technical solutions adopted by the present invention to solve its problems are:
第一方面,本发明一种嵌入式平台的部署方法,包括:In the first aspect, an embedded platform deployment method of the present invention includes:
与嵌入式主板通信;Communicate with embedded motherboard;
获取所述嵌入式主板的硬件环境和软件环境;Acquiring the hardware environment and software environment of the embedded motherboard;
基于获取的硬件环境信息和软件环境信息,将预设的软件和库文件资源发送并安装至嵌入式主板;Based on the acquired hardware environment information and software environment information, the preset software and library file resources are sent and installed to the embedded motherboard;
通过人机交互界面接收用户指令后,将不同格式的训练文件转换格式并打包发送至所述嵌入式主板;After receiving the user's instruction through the human-computer interaction interface, the training files of different formats are converted into formats, packaged and sent to the embedded motherboard;
有益效果:本发明一种嵌入式平台的部署方法通过以下步骤:与嵌入式主板通信,获取所述嵌入式主板的硬件环境和软件环境,基于获取的硬件环境信息和软件环境信息,将预设的软件和库文件资源发送并安装至嵌入式主板,通过人机交互界面接收用户指令后,将不同格式的训练文件转换格式并打包发送至所述嵌入式主板,将待测试数据批量拖拽上传并发送至所述嵌入式主板并使其开始测试,获取所述嵌入式主板的测速实验报告和数据分析报告,从而实现对不同型号的嵌入式设备部署用于深度学习训练的平台、批量导入待测试数据并且批量测试待测试数据的操作,从而大大降低测试人员的工作难度并提高测试效率。Beneficial effects: The deployment method of an embedded platform of the present invention adopts the following steps: communicating with the embedded motherboard, acquiring the hardware environment and software environment of the embedded motherboard, and presetting based on the acquired hardware environment information and software environment information The software and library file resources are sent and installed to the embedded motherboard. After receiving user instructions through the human-computer interaction interface, the training files of different formats are converted and packaged and sent to the embedded motherboard, and the data to be tested is dragged and uploaded in batches. And send it to the embedded motherboard and make it start the test, and obtain the speed test report and data analysis report of the embedded motherboard, so as to realize the deployment of platforms for deep learning training to different types of embedded devices, and batch import Test data and batch test the operation of the data to be tested, thereby greatly reducing the difficulty of the tester's work and improving the test efficiency.
进一步,所述基于获取的硬件环境信息和软件环境信息,将预设的软件和库文件资源发送并安装至嵌入式主板的步骤包括:Further, the step of sending and installing preset software and library file resources to the embedded motherboard based on the acquired hardware environment information and software environment information includes:
所述软件和库文件资源中含有TensorFlow Lite深度学习框架文件和能实现测速实验功能和生成数据分析报告功能的软件。The software and library file resources include TensorFlow Lite deep learning framework files and software that can realize the speed measurement experiment function and the data analysis report function.
具体地,TensorFlow Lite深度学习框架用于提供深度学习模型的训练环境,所述能实现测速实验功能和生成数据分析报告功能的软件分别用于嵌入式主板在深度学习训练过程中的测速和数据分析,并且将训练结果发送至主机。Specifically, the TensorFlow Lite deep learning framework is used to provide a training environment for deep learning models, and the software that can realize the speed measurement experiment function and the data analysis report function is used for the speed measurement and data analysis of the embedded motherboard in the deep learning training process. , And send the training results to the host.
进一步,所述基于获取的硬件环境信息和软件环境信息,将预设的软件和库文件资源发送并安装至嵌入式主板的步骤包括:Further, the step of sending and installing preset software and library file resources to the embedded motherboard based on the acquired hardware environment information and software environment information includes:
通过人机交互界面接收用户指令后,统一重新安装软件和库文件资源,安装前判断所述软件和库文件资源是否已经在所述嵌入式主板上,若不存在,则安装所述软件和库文件,若存在,命令行界面则显示所述软件和库文件资源已安装的提示信息,提取所述提示信息,从而判断软件和库文件是否安装成功。After receiving the user's instruction through the human-computer interaction interface, the software and library file resources are uniformly reinstalled. Before installation, it is determined whether the software and library file resources are already on the embedded motherboard. If not, the software and library are installed If the file exists, the command line interface displays the prompt information that the software and library file resources have been installed, and extracts the prompt information to determine whether the software and library file are successfully installed.
具体地,主机通过分析所述嵌入式主板的软件环境,获取所述嵌入式主板进行深度学习模型训练过程中需要的软件和库文件资源,然后所述软件从所述主机后台集成的软件资源包中抓取对应的相库及补丁等软件资源。Specifically, by analyzing the software environment of the embedded motherboard, the host obtains the software and library file resources needed in the process of deep learning model training of the embedded motherboard, and then the software obtains the software resource package integrated from the background of the host Grab the corresponding software resources such as the photo library and patches.
主机通过ssh和sftp协议和人机交互界面接收到用户指令后自动将所述嵌入式主板在训练中需要的软件资源打包并发送至所述嵌入式主板,从而用户不需要自行分析所述嵌入式主板的硬件环境并查找所述嵌入式主板缺少的软件和库文件资源,大大降低了深度学习平台的部署难度。例如,假如嵌入式主板是MVIDIA系列的jetson Nano,则需要安装TensorRT软件,主机自行检测,如果没安装TensorRT软件则会帮嵌入式主板安装。After the host receives the user instruction through the ssh and sftp protocol and the human-computer interaction interface, it automatically packages and sends the software resources required by the embedded motherboard in training to the embedded motherboard, so that the user does not need to analyze the embedded motherboard by himself The hardware environment of the motherboard and searching for missing software and library file resources of the embedded motherboard greatly reduce the difficulty of deployment of the deep learning platform. For example, if the embedded motherboard is jetson Nano of the MVIDIA series, the TensorRT software needs to be installed, and the host detects it by itself. If the TensorRT software is not installed, the embedded motherboard will be installed.
进一步,所述通过人机交互界面接收用户指令后,将已训练好的不同格式的训练文件转换成.tflite格式的文件并打包发送至所述嵌入式主板的步骤包括:Further, the step of converting the trained training files in different formats into .tflite format files after receiving user instructions through the human-computer interaction interface and packaging and sending them to the embedded motherboard includes:
通过人机交互界面接收用户指令,指令包括转换前和转换后的文件格式;Receive user instructions through the human-computer interaction interface, the instructions include the file format before and after conversion;
将已训练好的深度学习模型文件和变量文件编译并转换文件格式;Compile and convert the file format of the trained deep learning model file and variable file;
将转换后的文件打包并发送至所述嵌入式主板。The converted file is packaged and sent to the embedded motherboard.
具体地,由于TensorFlow lite深度学习框架在嵌入式主板上运行,用户必须要在桌面设备上提前训练好一个模型,并且为了实现模型的导入,还需要一些其他类型的文件,比如Graph Definition、Checkpoints以及Frozen Graph,然而只有.tflite格式的文件才能在装了TensorFlow lite库的嵌入式主板上运行,因此需要将不同格式的训练文件转换为.tflite格式的文件。用户只需在人机交互界面输入转换前和转换后的文件格式,主机便可将不同格式的训练文件转 换成能在TensorFlow Lite深度学习框架中运行的.tflite格式文件。Specifically, because the TensorFlow lite deep learning framework runs on the embedded motherboard, the user must train a model on the desktop device in advance, and in order to implement the model import, some other types of files are needed, such as Graph Definition, Checkpoints, and Frozen Graph, however, only files in the .tflite format can be run on the embedded motherboard with the TensorFlow lite library installed, so training files in different formats need to be converted to files in the .tflite format. The user only needs to input the pre-conversion and post-conversion file formats in the human-computer interaction interface, and the host can convert training files in different formats into .tflite format files that can be run in the TensorFlow Lite deep learning framework.
.tflite格式的文件的转换分为3步:保存训练好的模型文件.ckpt和.pb;用freeze_graph工具生成frozen的graphdef文件;利用toco(Tensorflow Optimizing COnverter)工具,生成最终的tflite文件。The conversion of .tflite format files is divided into three steps: save the trained model files .ckpt and .pb; use freeze_graph tool to generate frozen graphdef files; use toco (Tensorflow Optimizing COnverter) tool to generate the final tflite file.
进一步,所述通过人机交互界面接收用户指令后,将已训练好的不同格式的训练文件转换成.tflite格式的文件并打包发送至所述嵌入式主板的步骤之后,将待测试数据批拖拽上传并发送至所述嵌入式主板并使其开始测试;获取所述嵌入式主板的测速实验报告和数据分析报告。Further, after the step of receiving user instructions through the human-computer interaction interface, converting the trained training files in different formats into .tflite format files and packaging and sending them to the embedded motherboard, the data to be tested is batch dragged Drag and upload and send to the embedded motherboard and start testing; obtain the speed test experiment report and data analysis report of the embedded motherboard.
具体地,用户可以通过人机交际界面上的按键一次性拖拽上传并发送多组数据。导入数据后,用户通过在主机相应的界面点击开始运行网络模型,便能一键完成大量针对该模型的测试。嵌入式主板记录模型开始使用的时间和使用结束的时间,并且计算得到所述测速实验的结果,所述数据分析报告包括准确率、召回率、灵敏率、特效度和综合评价指标,准确率表示预测为正的样本中真正的正样本的概率,召回率表示样本中的有多少正例被预测正确,灵敏度表示所有正例中被分对的比例,衡量了分类器对正例的识别能力,特效度表示所有负例中被分对的比例,衡量了分类器对负例的识别能力,综合评价指标是准确率和召回率的加权调和平均,当综合评价指标的值较高时说明训练模型比较有效。Specifically, the user can upload and send multiple sets of data at one time by dragging and dropping the buttons on the human-machine communication interface. After importing the data, the user can complete a large number of tests for the model by clicking on the corresponding interface of the host computer to start running the network model. The embedded motherboard records the time when the model is used and when it ends, and calculates the results of the speed measurement experiment. The data analysis report includes accuracy, recall, sensitivity, specific validity and comprehensive evaluation indicators, and the accuracy is expressed The probability of the true positive sample in the sample that is predicted to be positive, the recall rate indicates how many positive examples in the sample are predicted correctly, and the sensitivity indicates the proportion of all positive examples that are matched, which measures the classifier’s ability to recognize positive examples. The specific validity represents the proportion of all negative cases that are matched, and it measures the classifier’s ability to recognize negative cases. The comprehensive evaluation index is the weighted and average of accuracy and recall. When the value of the comprehensive evaluation index is high, the training model is explained. More effective.
第二方面,本发明提供了一种嵌入式平台的部署方法设备,In the second aspect, the present invention provides a deployment method and equipment of an embedded platform,
包括至少一个控制处理器和用于与至少一个控制处理器通信连接的存储器;存储器存储有可被至少一个控制处理器执行的指令,指令被至少一个控制处理器执行,以使至少一个控制处理器能够执行如上所述的一种嵌入式平台的部署方法。It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor, so that the at least one control processor A method for deploying an embedded platform as described above can be executed.
第三方面,本发明提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于使计算机执行如上所述的一种嵌入式平台的部署方法。In a third aspect, the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute the method for deploying an embedded platform as described above.
第四方面,本发明还提供了一种计算机程序产品,所述计算机程序产品包括 存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使计算机执行如上所述的一种嵌入式平台的部署方法。In a fourth aspect, the present invention also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer , Make the computer execute the deployment method of an embedded platform as described above.
附图说明Description of the drawings
下面结合附图和实施例对本发明进一步地说明;The present invention will be further described below with reference to the drawings and embodiments;
图1为本发明实施例应用一种嵌入式平台的部署方法的软件的流程示意图。FIG. 1 is a schematic diagram of the software flow of an embedded platform deployment method according to an embodiment of the present invention.
具体实施方式Detailed ways
本部分将详细描述本发明的具体实施例,本发明之较佳实施例在附图中示出,附图的作用在于用图形补充说明书文字部分的描述,使人能够直观地、形象地理解本发明的每个技术特征和整体技术方案,但其不能理解为对本发明保护范围的限制。This section will describe the specific embodiments of the present invention in detail. The preferred embodiments of the present invention are shown in the accompanying drawings. The function of the accompanying drawings is to supplement the description of the text part of the manual with graphics, so that people can understand the present invention intuitively and vividly. Each technical feature and overall technical solution of the invention cannot be understood as a limitation on the protection scope of the present invention.
在本发明的描述中,如果有描述到第一、第二只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。In the description of the present invention, if the first and second are described for the purpose of distinguishing technical features, they cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating The precedence of the indicated technical characteristics.
本发明的描述中,除非另有明确的限定,设置、安装、连接等词语应做广义理解,所属技术领域技术人员可以结合技术方案的具体内容合理确定上述词语在本发明中的具体含义。In the description of the present invention, unless otherwise clearly defined, terms such as setting, installation, and connection should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meaning of the above terms in the present invention in combination with the specific content of the technical solution.
参照图1,步骤S101,运行软件。首先,打开应用本发明一种嵌入式平台的部署方法的软件。Referring to Fig. 1, step S101, run the software. First, open the software applying the embedded platform deployment method of the present invention.
步骤S102,主机与嵌入式主板通过数据网线通信。In step S102, the host communicates with the embedded motherboard through a data network cable.
在其中一些实施例中,主机与嵌入式主板通过数据网线或者无线方式通信。In some of these embodiments, the host and the embedded motherboard communicate via a data network cable or wirelessly.
本发明实施例应用一种嵌入式平台的部署方法的软件中,主机与嵌入式主板通过数据网线通信。In the software in which the embodiment of the present invention applies an embedded platform deployment method, the host computer and the embedded motherboard communicate through a data network cable.
步骤S103,所述主机检测所述嵌入式主板的软件环境和硬件环境。所述主机与所述嵌入式主板连接成功后,所述主机开始检测所述嵌入式主板的软件环境和硬件环境,所述嵌入式主板的硬件信息包括所述嵌入式主板的型号和操作系统 类型。Step S103, the host detects the software environment and hardware environment of the embedded motherboard. After the host is successfully connected to the embedded motherboard, the host starts to detect the software environment and hardware environment of the embedded motherboard, and the hardware information of the embedded motherboard includes the model and operating system type of the embedded motherboard .
在其中一些实施例中,主机通过用户手动选中硬件环境或者通过命令检测,从而获取所述嵌入式主板的硬件环境。一种是用户手动选中所述嵌入式主板的硬件环境,部署过程更少bug,软件上会列出常用的人工智能嵌入式主板(例如Jeston系列,RK3399)供用户选择,不同主板型号采用不同的安装步骤;另一种获取所述嵌入式主板的硬件环境的方法是通过命令检测,例如检测CPU信息:uname-a或者cat/proc/cpuinfo并且一般计算机名会把型号放进去:hostname#查看计算机名。In some of the embodiments, the host obtains the hardware environment of the embedded motherboard by manually selecting the hardware environment by the user or by command detection. One is that the user manually selects the hardware environment of the embedded motherboard, the deployment process is less buggy, the software will list commonly used artificial intelligence embedded motherboards (such as Jeston series, RK3399) for users to choose, and different motherboard models use different Installation steps; another way to obtain the hardware environment of the embedded motherboard is to detect through commands, such as detecting CPU information: uname-a or cat/proc/cpuinfo and the general computer name will put the model in: hostname#View computer name.
本发明实施例应用一种嵌入式平台的部署方法的软件中,主机通过命令检测方法获取所述嵌入式主板的硬件环境,主机通过向所述嵌入式主板发送ping包获取硬件环境,windows起始ttl值默认为128,linux和unix系统默认为64,还有一些特殊的unix系统的ttl值为255,或使用map提供的参数-O。In the software of an embedded platform deployment method in the embodiment of the present invention, the host acquires the hardware environment of the embedded motherboard through a command detection method, and the host acquires the hardware environment by sending a ping packet to the embedded motherboard. Windows starts The default value of ttl is 128, and the default value of linux and unix systems is 64. There are some special unix systems whose ttl value is 255, or use the parameter -O provided by map.
步骤S104,所述软件分析所述软件环境和硬件环境并将所需要的软件和库文件资源打包成一个包含TensorFlow lite的软件传输给嵌入式开发板系统,部署深度学习的环境。通过分析所述嵌入式主板的软件环境,获取所述嵌入式主板进行深度学习模型训练过程中需要的软件和库文件资源,然后所述软件从所述主机后台集成的软件资源包中抓取对应的相库及补丁等软件资源,例如,假如嵌入式主板是MVIDIA系列的jetson Nano,则需要安装TensorRT软件,主机自行检测,如果没安装TensorRT软件则会帮嵌入式主板安装。In step S104, the software analyzes the software environment and the hardware environment and packages the required software and library file resources into a software containing TensorFlow lite and transmits it to the embedded development board system to deploy a deep learning environment. By analyzing the software environment of the embedded motherboard, the software and library file resources needed in the process of deep learning model training of the embedded motherboard are obtained, and then the software grabs the corresponding software resource package from the back-end integrated software resource package of the host. For example, if the embedded motherboard is a jetson Nano of the MVIDIA series, the TensorRT software needs to be installed, and the host detects itself. If the TensorRT software is not installed, it will install the embedded motherboard.
所述软件和库文件资源中含有TensorFlow Lite深度学习框架文件以及能实现测速实验功能和生成数据分析报告功能的软件。用户通过点击所述软件的相应按键,使所述主机统一重新给所述嵌入式主板安装软件和库文件资源,安装前所述主机判断所述软件和库文件资源是否已经在所述嵌入式主板上,若不存在,则安装所述软件和库文件,若存在,命令行界面则显示所述软件和库文件资源已安装的提示信息,主机提取所述提示信息,从而判断软件和库文件是否安装成功。The software and library file resources include TensorFlow Lite deep learning framework files and software that can realize the speed test function and the data analysis report function. The user clicks on the corresponding button of the software to make the host re-install the software and library file resources to the embedded motherboard in a unified manner. Before installation, the host determines whether the software and library file resources are already on the embedded motherboard. If it does not exist, the software and library files are installed. If they exist, the command line interface displays a prompt message that the software and library file resources have been installed. The host extracts the prompt information to determine whether the software and library files are Successful installation.
步骤S105,所述主机上的软件将已训练好的不同格式的训练文件转换 成.tflite格式的文件并打包发送至所述嵌入式主板。由于TensorFlow lite深度学习框架在嵌入式主板上运行,用户必须要在桌面设备上提前训练好一个模型,并且为了实现模型的导入,还需要一些其他类型的文件,比如Graph Definition、Checkpoints以及Frozen Graph,然而只有.tflite格式的文件才能在装了TensorFlow lite库的嵌入式主板上运行,因此需要将不同格式的训练文件转换为.tflite格式的文件。首先,用户在所述软件内输入转换前和转换后的文件格式,软件使用TensorFlow Lite深度学习框架中的源代码将已训练好的深度学习模型文件和变量文件编译并转换成.tflite格式的文件,最后所述软件将转换后的文件打包并发送至所述嵌入式主板。In step S105, the software on the host converts the trained training files in different formats into .tflite format files and packs them and sends them to the embedded motherboard. Since the TensorFlow lite deep learning framework runs on the embedded motherboard, the user must train a model in advance on the desktop device, and in order to implement the model import, some other types of files are needed, such as Graph Definition, Checkpoints, and Frozen Graph. However, only files in the .tflite format can be run on the embedded motherboard with the TensorFlow lite library installed, so training files in different formats need to be converted to files in the .tflite format. First, the user enters the pre-conversion and post-conversion file formats in the software. The software uses the source code in the TensorFlow Lite deep learning framework to compile and convert the trained deep learning model files and variable files into files in .tflite format. Finally, the software packages the converted files and sends them to the embedded motherboard.
步骤S106,所述软件将待测试数据批量发送至所述嵌入式主板并使其开始测试。所述软件提供文件拖拽功能,取代传统的使用命令行界面进行文件定位,传输等复杂指令。In step S106, the software sends the data to be tested to the embedded motherboard in batches and starts the test. The software provides a file drag and drop function, which replaces the traditional use of a command line interface for file positioning, transmission and other complex instructions.
在其中一些实施例中,用户通过点击所述软件上的相应按键下达传输指令,或者通过将待测试的数据文件拖拽到所述软件相应的区域内,使所述主机批量传输待测试数据至所述嵌入式主板;In some of the embodiments, the user issues a transmission instruction by clicking the corresponding button on the software, or by dragging and dropping the data file to be tested into the corresponding area of the software, so that the host transmits the data to be tested in batches to The embedded motherboard;
本发明实施例应用一种嵌入式平台的部署方法的软件中,用户将待测试的数据文件拖拽到所述软件相应的区域内,使所述主机批量传输待测试数据至所述嵌入式主板,然后用户通过点击相应按键下达测试指令,使所述嵌入式主板开始批量测试接收到的待测试数据,从而用户通过所述软件实现一键上传和测试多组数据的操作。In the software using an embedded platform deployment method in the embodiment of the present invention, the user drags and drops the data file to be tested into the corresponding area of the software, so that the host transmits the data to be tested to the embedded motherboard in batches. , And then the user issues a test instruction by clicking the corresponding button to make the embedded motherboard start batch testing of the received data to be tested, so that the user can upload and test multiple sets of data with one click through the software.
步骤S107,所述嵌入式主板,将测速实验报告和数据分析报告发送至所述主机,完成神经网络的部署。所述嵌入式主板在测试数据的同时,运行从所述主机传送的所述软件资源包中能实现测速实验的软件,从而进行测速实验,记录模型开始使用到结束的时间,内部计算得到测速结果并发送给所述主机,从而保证数据结果的实时性。所述数据分析报告包括准确率、召回率、灵敏率、特效度和综合评价指标。准确率表示预测为正的样本中真正的正样本的概率,召回率表示样 本中的有多少正例被预测正确,灵敏度表示所有正例中被分对的比例,衡量了分类器对正例的识别能力,特效度表示所有负例中被分对的比例,衡量了分类器对负例的识别能力,综合评价指标是准确率和召回率的加权调和平均,当综合评价指标的值较高时说明训练模型比较有效。从而用户能清楚了解深度学习模型运行的情况并改进深度学习模型。In step S107, the embedded motherboard sends the speed measurement experiment report and the data analysis report to the host to complete the deployment of the neural network. While testing the data, the embedded motherboard runs the software that can realize the speed measurement experiment in the software resource package transmitted from the host, so as to perform the speed measurement experiment, record the time from the beginning to the end of the model, and internally calculate the speed measurement result And send it to the host, so as to ensure the real-time performance of the data result. The data analysis report includes accuracy rate, recall rate, sensitivity rate, specific validity and comprehensive evaluation index. The accuracy rate indicates the probability of a true positive sample in the sample that is predicted to be positive, the recall rate indicates how many positive examples in the sample are predicted correctly, and the sensitivity indicates the proportion of all positive examples that are matched, which measures the classifier’s ability to positive examples. Recognition ability, special validity indicates the proportion of all negative examples that are matched, and measures the classifier’s ability to recognize negative examples. The comprehensive evaluation index is the weighted average of accuracy and recall. When the value of the comprehensive evaluation index is high It shows that the training model is more effective. In this way, users can clearly understand the operation of the deep learning model and improve the deep learning model.
需要说明的是,由于本实施例中的一种嵌入式平台的部署方法装置与上述的一种嵌入式平台的部署方法基于相同的发明构思,因此,方法实施例中的相应内容同样适用于本装置实施例,此处不再详述。It should be noted that, because the deployment method of an embedded platform in this embodiment and the deployment method of an embedded platform described above are based on the same inventive concept, the corresponding content in the method embodiment is also applicable to the present invention. The device embodiment will not be described in detail here.
具体地,该一种嵌入式平台的部署方法设备包括:一个或多个控制处理器和存储器,控制处理器和存储器可以通过总线或者其他方式连接。Specifically, the method and equipment for deploying an embedded platform includes: one or more control processors and memories, and the control processors and memories may be connected by a bus or in other ways.
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态性计算机可执行程序以及模块,如本发明实施例中的一种嵌入式平台的部署方法方法对应的程序指令/模块,控制处理器通过运行存储在存储器中的非暂态软件程序、指令以及模块,从而执行一种嵌入式平台的部署方法装置的各种功能应用以及数据处理,即实现上述方法实施例的一种嵌入式平台的部署方法方法。As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, as in the embodiment of the present invention, an embedded platform deployment method corresponds to The program instructions/modules of the control processor execute the various functional applications and data processing of an embedded platform deployment method device by running the non-transitory software programs, instructions and modules stored in the memory, that is, the above method is realized An embodiment of a method for deploying an embedded platform.
存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据一种嵌入式平台的部署方法装置的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于控制处理器远程设置的存储器,这些远程存储器可以通过网络连接至该一种嵌入式平台的部署方法设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a storage program area and a storage data area, where the storage program area can store an operating system and an application program required by at least one function; the storage data area can store data created by using an embedded platform deployment method device. Data etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged with respect to the control processor, and these remote memories may be connected to the deployment method device of the embedded platform through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
所述一个或者多个模块存储在所述存储器中,当被所述一个或者多个控制处理器执行时,执行上述方法实施例中的一种嵌入式平台的部署方法。The one or more modules are stored in the memory, and when executed by the one or more control processors, an embedded platform deployment method in the foregoing method embodiment is executed.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个控制处理器执行。The embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现。本领域技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ReadOnly Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Through the description of the above implementation manners, those skilled in the art can clearly understand that each implementation manner can be implemented by means of software plus a general hardware platform. Those skilled in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by computer programs instructing relevant hardware. The programs can be stored in a computer readable storage medium. At this time, it may include the flow of the embodiment of the above-mentioned method. Wherein, the storage medium can be a magnetic disk, an optical disc, a read-only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
以上是对本发明的较佳实施进行了具体说明,但本发明并不局限于上述实施方式,熟悉本领域的技术人员在不违背本发明精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a detailed description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. Equivalent modifications or replacements are all included in the scope defined by the claims of this application.

Claims (7)

  1. 一种嵌入式平台的部署方法,其特征在于,包括以下步骤:A deployment method of an embedded platform is characterized in that it comprises the following steps:
    与嵌入式主板通信;Communicate with embedded motherboard;
    获取所述嵌入式主板的硬件环境和软件环境;Acquiring the hardware environment and software environment of the embedded motherboard;
    基于获取的硬件环境信息和软件环境信息,将预设的软件和库文件资源发送并安装至嵌入式主板;Based on the acquired hardware environment information and software environment information, the preset software and library file resources are sent and installed to the embedded motherboard;
    通过人机交互界面接收用户指令后,将不同格式的训练文件转换格式并打包发送至所述嵌入式主板。After receiving the user instruction through the human-computer interaction interface, the training files of different formats are converted, packaged and sent to the embedded motherboard.
  2. 如权利要求1所述的一种嵌入式平台的部署方法,其特征在于,所述基于获取的硬件环境信息和软件环境信息,将预设的软件和库文件资源发送并安装至嵌入式主板的步骤包括:An embedded platform deployment method according to claim 1, characterized in that, based on the acquired hardware environment information and software environment information, the preset software and library file resources are sent and installed to the embedded motherboard The steps include:
    所述软件和库文件资源中含有TensorFlow Lite深度学习框架文件和能实现测速实验功能和生成数据分析报告功能的软件。The software and library file resources include TensorFlow Lite deep learning framework files and software that can realize the speed measurement experiment function and the data analysis report function.
  3. 如权利要求2所述的一种嵌入式平台的部署方法,其特征在于,所述基于获取的硬件环境信息和软件环境信息,将预设的软件和库文件资源发送并安装至嵌入式主板的步骤包括:The deployment method of an embedded platform according to claim 2, characterized in that, based on the acquired hardware environment information and software environment information, the preset software and library file resources are sent and installed to the embedded motherboard The steps include:
    通过人机交互界面接收用户指令后,统一重新安装软件和库文件资源,安装前判断所述软件和库文件资源是否已经在所述嵌入式主板上,若不存在,则安装所述软件和库文件,若存在,命令行界面则显示所述软件和库文件资源已安装的提示信息,提取所述提示信息,从而判断软件和库文件是否安装成功。After receiving the user's instruction through the human-computer interaction interface, the software and library file resources are uniformly reinstalled. Before installation, it is determined whether the software and library file resources are already on the embedded motherboard. If not, the software and library are installed If the file exists, the command line interface displays the prompt information that the software and library file resources have been installed, and extracts the prompt information to determine whether the software and library file are successfully installed.
  4. 如权利要求1所述的一种嵌入式平台的部署方法,其特征在于,所述通过人机交互界面接收用户指令后,将已训练好的不同格式的训练文件转换成.tflite格式的文件并打包发送至所述嵌入式主板的步骤包括:The deployment method of an embedded platform according to claim 1, characterized in that, after receiving a user instruction through a human-computer interaction interface, the trained training files in different formats are converted into .tflite format files and The steps of packaging and sending to the embedded motherboard include:
    通过人机交互界面接收用户指令,指令包括转换前和转换后的文件格式;Receive user instructions through the human-computer interaction interface, the instructions include the file format before and after conversion;
    将已训练好的深度学习模型文件和变量文件编译并转换文件格式;Compile and convert the file format of the trained deep learning model file and variable file;
    将转换后的文件打包并发送至所述嵌入式主板。The converted file is packaged and sent to the embedded motherboard.
  5. 如权利要求1所述的一种嵌入式平台的部署方法,其特征在于,所述通过人机交互界面接收用户指令后,将已训练好的不同格式的训练文件转换成.tflite格式的文件并打包发送至所述嵌入式主板的步骤之后,将待测试数据批量拖拽上传并发送至所述嵌入式主板并使其开始测试;获取所述嵌入式主板的测速实验报告和数据分析报告。The deployment method of an embedded platform according to claim 1, characterized in that, after receiving a user instruction through a human-computer interaction interface, the trained training files in different formats are converted into .tflite format files and After the step of packaging and sending to the embedded motherboard, drag and upload the data to be tested in batches and send it to the embedded motherboard to start the test; obtain the speed test experiment report and data analysis report of the embedded motherboard.
  6. 一种嵌入式平台的部署设备,其特征在于:包括至少一个控制处理器和用于与所述至少一个控制处理器通信连接的存储器;所述存储器存储有可被所述至少一个控制处理器执行的指令,所述指令被所述至少一个控制处理器执行,以使所述至少一个控制处理器能够执行如权利要求1-5任一项所述的一种嵌入式平台的部署方法。A deployment device for an embedded platform, which is characterized in that it includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores which can be executed by the at least one control processor The instructions are executed by the at least one control processor, so that the at least one control processor can execute the method for deploying an embedded platform according to any one of claims 1-5.
  7. 一种计算机可读存储介质,其特征在于:所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如权利要求1-5任一项所述的一种嵌入式平台的部署方法。A computer-readable storage medium, characterized in that: the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute any one of claims 1-5. An embedded platform deployment method.
PCT/CN2020/104548 2019-12-05 2020-07-24 Embedded platform deployment method and device, and storage medium WO2021109593A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911231190.7A CN111190605A (en) 2019-12-05 2019-12-05 Embedded platform deployment method, equipment and storage medium
CN201911231190.7 2019-12-05

Publications (1)

Publication Number Publication Date
WO2021109593A1 true WO2021109593A1 (en) 2021-06-10

Family

ID=70707673

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/104548 WO2021109593A1 (en) 2019-12-05 2020-07-24 Embedded platform deployment method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN111190605A (en)
WO (1) WO2021109593A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116225460A (en) * 2023-02-15 2023-06-06 天津赛象科技股份有限公司 Method for simplifying software deployment of operators in industrial personal computers
US11811681B1 (en) 2022-07-12 2023-11-07 T-Mobile Usa, Inc. Generating and deploying software architectures using telecommunication resources

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190605A (en) * 2019-12-05 2020-05-22 五邑大学 Embedded platform deployment method, equipment and storage medium
CN113065473A (en) * 2021-04-07 2021-07-02 浙江天铂云科光电股份有限公司 Mask face detection and body temperature measurement method suitable for embedded system
CN113408744A (en) * 2021-07-08 2021-09-17 山东浪潮科学研究院有限公司 Multi-sensor multi-environment monitoring method based on AIot and TinyML technology

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408351A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of method and apparatus of AI environment measuring and deep learning environment automatic deployment
CN109460827A (en) * 2018-11-01 2019-03-12 郑州云海信息技术有限公司 A kind of deep learning environment is built and optimization method and system
CN110096401A (en) * 2019-05-13 2019-08-06 苏州浪潮智能科技有限公司 A kind of server data process performance test method and device
CN111190605A (en) * 2019-12-05 2020-05-22 五邑大学 Embedded platform deployment method, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153529A (en) * 2016-03-02 2017-09-12 中兴通讯股份有限公司 A kind of embedded software development method, device and platform
US10074038B2 (en) * 2016-11-23 2018-09-11 General Electric Company Deep learning medical systems and methods for image reconstruction and quality evaluation
CN107678946B (en) * 2017-09-12 2020-11-06 中航洛阳光电技术有限公司 Model-based airborne embedded software test environment construction method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408351A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of method and apparatus of AI environment measuring and deep learning environment automatic deployment
CN109460827A (en) * 2018-11-01 2019-03-12 郑州云海信息技术有限公司 A kind of deep learning environment is built and optimization method and system
CN110096401A (en) * 2019-05-13 2019-08-06 苏州浪潮智能科技有限公司 A kind of server data process performance test method and device
CN111190605A (en) * 2019-12-05 2020-05-22 五邑大学 Embedded platform deployment method, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11811681B1 (en) 2022-07-12 2023-11-07 T-Mobile Usa, Inc. Generating and deploying software architectures using telecommunication resources
CN116225460A (en) * 2023-02-15 2023-06-06 天津赛象科技股份有限公司 Method for simplifying software deployment of operators in industrial personal computers
CN116225460B (en) * 2023-02-15 2023-10-17 天津赛象科技股份有限公司 Method for simplifying software deployment of operators in industrial personal computers

Also Published As

Publication number Publication date
CN111190605A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
WO2021109593A1 (en) Embedded platform deployment method and device, and storage medium
KR102493449B1 (en) Edge computing test methods, devices, electronic devices and computer-readable media
US10419546B2 (en) Migration assessment for cloud computing platforms
CN108959068B (en) Software interface testing method, device and storage medium
CN111708571B (en) Micro-service deployment method and device, electronic equipment and storage medium
EP3220270A1 (en) System and method to configure distributed measuring devices and treat measurement data
US9176851B2 (en) Utilizing intelligent automated scripts to test software applications
CN107608901B (en) Jmeter-based testing method and device, storage medium and electronic equipment
US20200319879A1 (en) Development project blueprint and package generation
CN109960642A (en) Automatic test approach and device
CN113778898B (en) User interface automatic test method and device, electronic equipment and storage medium
EP4195108A1 (en) Method and apparatus for generating and applying deep learning model based on deep learning framework
WO2020096665A2 (en) System error detection
CN115203012A (en) Artificial intelligence performance test method and device
CN111459506B (en) Deep learning platform cluster deployment method and device, medium and electronic equipment
US10120661B2 (en) Multi-flavored software execution from a singular code base
CN109634856B (en) IOS intelligent terminal remote real machine debugging system and method based on cloud service
CN109065111A (en) A kind of cloud platform health check system and method based on docker
CN114942890A (en) User interface testing method, device, equipment and medium
CN110954214B (en) Equipment testing method, device and system
CN108960433B (en) Method and system for running machine learning modeling process
Breitbach et al. Artifact: Voltaire: precise energy-aware code offloading decisions with machine learning
WO2019210674A1 (en) Method for simulation manual operation smart device, system and apparatus
CN116560819B (en) RPA-based batch automatic operation method, system, equipment and storage medium
CN110618914A (en) Monitoring method, device and system for distributed system cluster

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: 20896992

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: 20896992

Country of ref document: EP

Kind code of ref document: A1