CN117830857A - A space target detection method and related equipment based on Atlas200DK - Google Patents

A space target detection method and related equipment based on Atlas200DK Download PDF

Info

Publication number
CN117830857A
CN117830857A CN202410117710.6A CN202410117710A CN117830857A CN 117830857 A CN117830857 A CN 117830857A CN 202410117710 A CN202410117710 A CN 202410117710A CN 117830857 A CN117830857 A CN 117830857A
Authority
CN
China
Prior art keywords
target detection
model
atlas200dk
atlas200
detection method
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.)
Pending
Application number
CN202410117710.6A
Other languages
Chinese (zh)
Inventor
刘曦
於志文
周美娟
贺鹏超
王宁
毛远宏
王天行
何海峰
王亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northwestern Polytechnical University
Xian Microelectronics Technology Institute
Original Assignee
Northwestern Polytechnical University
Xian Microelectronics Technology Institute
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 Northwestern Polytechnical University, Xian Microelectronics Technology Institute filed Critical Northwestern Polytechnical University
Priority to CN202410117710.6A priority Critical patent/CN117830857A/en
Publication of CN117830857A publication Critical patent/CN117830857A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • 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/0464Convolutional networks [CNN, ConvNet]
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • G06V10/443Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components by matching or filtering
    • G06V10/449Biologically inspired filters, e.g. difference of Gaussians [DoG] or Gabor filters
    • G06V10/451Biologically inspired filters, e.g. difference of Gaussians [DoG] or Gabor filters with interaction between the filter responses, e.g. cortical complex cells
    • G06V10/454Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/07Target detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Multimedia (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Biophysics (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computational Linguistics (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a space target detection method based on Atlas200DK and related equipment, the method is based on Atlas200DK, resnet18 is adopted as a backbone network to replace an original feature extraction network Darknet53 in a YOLO v3 network model, the combination greatly improves the detection rate of the model, meanwhile, the problem of suitability between an algorithm and a processor is considered, the target detection model is subjected to model file conversion processing to ensure that the optimized algorithm can be normally executed, finally, an obtained space target image is input into the target detection model supported by Atlas200DK, a target detection result is obtained through analysis processing, and the reasoning speed of the model can be ensured through the optimization and the suitability adjustment of the YOLO v3 network model even when facing a large amount of data, so that the processing effect of high speed and low power consumption is achieved; the method can improve the processing speed and the detection precision of the space target monitoring, and meets the requirement of the current spaceborne computer system on the high reliability of the space target monitoring.

Description

一种基于Atlas200DK的空间目标检测方法及相关设备A space target detection method and related equipment based on Atlas200DK

技术领域Technical Field

本发明属于星载计算机领域,具体涉及一种基于Atlas200DK的空间目标检测方法及相关设备。The invention belongs to the field of satellite-borne computers, and in particular relates to a space target detection method based on Atlas200DK and related equipment.

背景技术Background technique

空间目标检测是空间目标监视领域的一个重要部分,不同的目标检测算法适应于不同的应用场景,其中,YOLO系列的目标检测算法因其高效的检测性能受到了广泛的应用。Space target detection is an important part of the field of space target monitoring. Different target detection algorithms are suitable for different application scenarios. Among them, the YOLO series of target detection algorithms have been widely used due to their efficient detection performance.

随着时代的发展,星载计算机系统对于空间目标监视的可靠性能提出了更高的要求,一般情况下,空间图像信息较多,在进行空间目标识别的过程中计算量也较大。With the development of the times, satellite-borne computer systems have put forward higher requirements for the reliability of space target monitoring. Generally speaking, there is a lot of space image information and the amount of calculation in the process of space target identification is also large.

当前,采用CPU和GPU等计算设备,由于采用传统的YOLO系列算法,在数据处理方面会有处理速度慢、功耗大等问题,显然无法满足星载计算机系统对空间目标监视的高可靠性的要求。Currently, the use of computing devices such as CPU and GPU, due to the use of traditional YOLO series algorithms, has problems such as slow processing speed and high power consumption in data processing, which obviously cannot meet the high reliability requirements of satellite-borne computer systems for monitoring space targets.

发明内容Summary of the invention

为克服上述技术的缺点,本发明提供一种基于Atlas200DK的空间目标检测方法及相关设备,能够解决现有CPU和GPU等计算设备,在数据处理量较大的情况下,存在处理速度慢、功耗大的技术问题。In order to overcome the shortcomings of the above-mentioned technology, the present invention provides a space target detection method and related equipment based on Atlas200DK, which can solve the technical problems of slow processing speed and high power consumption of existing computing devices such as CPU and GPU when the data processing volume is large.

为了达到上述目的,本发明采用技术方案如下:In order to achieve the above object, the present invention adopts the following technical solution:

一种基于Atlas200DK的空间目标检测方法,应用于Atlas200DK,包括:A space target detection method based on Atlas200DK, applied to Atlas200DK, includes:

获取Atlas200DK上的空间目标图像;Acquire space target images on Atlas200DK;

将空间目标图像输入至Atlas200DK支持的目标检测模型,经解析处理得到目标检测结果;Input the space target image into the target detection model supported by Atlas200DK, and obtain the target detection result after parsing and processing;

其中,Atlas200DK支持的目标检测模型由目标检测模型经模型文件转换处理得到;目标检测模型由YOLO v3以及Resnet18构建的模型结构,经训练和测试后得到。Among them, the target detection model supported by Atlas200DK is obtained by converting the target detection model through model file conversion; the target detection model is a model structure constructed by YOLO v3 and Resnet18, which is obtained after training and testing.

进一步地,所述目标检测模型的构建步骤包括:Furthermore, the step of constructing the target detection model includes:

将YOLO v3网络模型中的特征提取网络替换成Resnet18网络,得到YOLO-R网络结构。Replace the feature extraction network in the YOLO v3 network model with the Resnet18 network to obtain the YOLO-R network structure.

进一步地,对目标检测模型进行模型文件转换处理的具体步骤包括:Furthermore, the specific steps of converting the model file of the target detection model include:

将目标检测模型转换成om模型文件,输出Atlas200DK支持的目标检测模型。Convert the target detection model into an om model file and output the target detection model supported by Atlas200DK.

进一步地,所述目标检测模型采用Caffe框架下的prototxt模型文件。Furthermore, the target detection model adopts the prototxt model file under the Caffe framework.

进一步地,其中,在进行模型文件转换处理过程中,同时对Caffe框架下的prototxt模型文件进行定制网络修改以及AIPP配置。Furthermore, during the model file conversion process, the prototxt model file under the Caffe framework is customized for network modification and AIPP configuration.

进一步地,采用昇腾AI处理器软件栈中的辅助开发工具ATC将目标检测模型转换成om模型文件,其中,通过执行ATC命令完成模型转换,采用Mind Studio对转换结果进行校对。Furthermore, the auxiliary development tool ATC in the Ascend AI processor software stack is used to convert the target detection model into an om model file, wherein the model conversion is completed by executing the ATC command, and Mind Studio is used to proofread the conversion result.

进一步地,将获取到的空间目标图像输入至Atlas200DK支持的目标检测模型,得到推理检测结果,对推理检测结果进行解析并结合IoU以及非极大值抑制进行边界框筛选处理,得到目标检测结果。Furthermore, the acquired spatial target image is input into the target detection model supported by Atlas200DK to obtain the inference detection result, which is then analyzed and processed by bounding box screening in combination with IoU and non-maximum suppression to obtain the target detection result.

一种基于Atlas200DK的空间目标检测系统,用于实现上述基于Atlas200DK的空间目标检测方法的步骤,包括:A space target detection system based on Atlas200DK, used to implement the steps of the above-mentioned space target detection method based on Atlas200DK, comprising:

图像获取模块,用于获取Atlas200DK上的空间目标图像;Image acquisition module, used to acquire space target images on Atlas200DK;

目标检测模块,用于将获取到的空间目标图像输入至Atlas200DK支持的目标检测模型,经解析处理得到目标检测结果;The target detection module is used to input the acquired space target image into the target detection model supported by Atlas200DK, and obtain the target detection result through parsing and processing;

其中,Atlas200DK支持的目标检测模型由目标检测模型经模型文件转换处理得到;目标检测模型由YOLO v3以及Resnet18构建的模型结构,经训练和测试后得到。Among them, the target detection model supported by Atlas200DK is obtained by converting the target detection model through model file conversion; the target detection model is a model structure constructed by YOLO v3 and Resnet18, which is obtained after training and testing.

一种设备,包括:A device comprising:

存储器,用于存储计算机程序;Memory for storing computer programs;

处理器,用于执行所述计算机程序时实现上述基于Atlas200DK的空间目标检测方法的步骤。A processor is used to implement the steps of the above-mentioned space target detection method based on Atlas200DK when executing the computer program.

一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时用于实现上述基于Atlas200DK的空间目标检测方法的步骤。A computer-readable storage medium stores a computer program, which is used to implement the steps of the above-mentioned space target detection method based on Atlas200DK when executed by a processor.

相比于现有技术,本发明具有有益效果如下:Compared with the prior art, the present invention has the following beneficial effects:

本发明还提供一种基于Atlas200DK的空间目标检测方法,本方法基于Atlas200DK,采用将Resnet18作为骨干网络,替换了YOLO v3网络模型中的原始特征提取网络Darknet53,这一结合极大提升了模型的检测速率,同时,考虑了算法与处理器之间适配性的问题,通过将目标检测模型进行模型文件转换处理,保证优化后的算法能够正常执行,最终将获取到的空间目标图像输入至Atlas200DK支持的目标检测模型,经解析处理得到目标检测结果,通过对YOLO v3网络模型的优化以及适配性的调整,即使面对大量的数据时,依然能够保证模型的推理速度,达到了高速、低功耗的处理效果;采用本方法能够提高空间目标监视的处理速度和检测精度,满足了当前星载计算机系统对空间目标监视的高可靠性的要求。The present invention also provides a space target detection method based on Atlas200DK. The method is based on Atlas200DK, uses Resnet18 as a backbone network, and replaces the original feature extraction network Darknet53 in the YOLO v3 network model. This combination greatly improves the detection rate of the model. At the same time, the compatibility problem between the algorithm and the processor is considered. By converting the target detection model into a model file, it is ensured that the optimized algorithm can be executed normally. Finally, the acquired space target image is input into the target detection model supported by Atlas200DK, and the target detection result is obtained through parsing. By optimizing the YOLO v3 network model and adjusting the adaptability, the reasoning speed of the model can still be guaranteed even in the face of a large amount of data, and the processing effect of high speed and low power consumption is achieved. The method can improve the processing speed and detection accuracy of space target monitoring, and meet the high reliability requirements of the current onboard computer system for space target monitoring.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明实施例提供的一种基于Atlas200DK的空间目标检测方法流程的框架图;FIG1 is a framework diagram of a space target detection method flow based on Atlas200DK provided by an embodiment of the present invention;

图2为本发明实施例提供的YOLO-R网络结构图;FIG2 is a diagram of a YOLO-R network structure provided by an embodiment of the present invention;

图3为本发明提供的一种基于Atlas200DK的空间目标检测方法的流程图;FIG3 is a flow chart of a space target detection method based on Atlas200DK provided by the present invention;

图4为本发明提供的一种基于Atlas200DK的空间目标检测系统的结构示意图。FIG. 4 is a schematic diagram of the structure of a space target detection system based on Atlas200DK provided by the present invention.

具体实施方式Detailed ways

本发明提供一种基于Atlas200DK的空间目标检测方法,如图3所示,包括如下步骤:The present invention provides a space target detection method based on Atlas200DK, as shown in FIG3 , comprising the following steps:

S1:获取Atlas200DK上的空间目标图像。S1: Acquire space target images on Atlas200DK.

S2:将空间目标图像输入至Atlas200DK支持的目标检测模型,经解析处理得到目标检测结果。S2: Input the space target image into the target detection model supported by Atlas200DK, and obtain the target detection result after parsing.

其中,Atlas200DK支持的目标检测模型由目标检测模型经模型文件转换处理得到;目标检测模型由YOLO v3以及Resnet18构建的模型结构,经训练和测试后得到。Among them, the target detection model supported by Atlas200DK is obtained by converting the target detection model through model file conversion; the target detection model is a model structure constructed by YOLO v3 and Resnet18, which is obtained after training and testing.

上述目标检测模型的构建步骤包括:The steps for building the above target detection model include:

将YOLO v3网络模型中的特征提取网络替换成Resnet18网络,得到YOLO-R网络结构。Replace the feature extraction network in the YOLO v3 network model with the Resnet18 network to obtain the YOLO-R network structure.

其中,对目标检测模型进行模型文件转换处理的具体步骤包括:The specific steps of converting the model file of the target detection model include:

将目标检测模型转换成om模型文件,输出Atlas200DK支持的目标检测模型。Convert the target detection model into an om model file and output the target detection model supported by Atlas200DK.

这里,目标检测模型采用Caffe框架下的prototxt模型文件。Here, the target detection model uses the prototxt model file under the Caffe framework.

其中,在进行模型文件转换处理过程中,同时对Caffe框架下的prototxt模型文件进行定制网络修改以及AIPP配置。During the model file conversion process, the prototxt model file under the Caffe framework is customized for network modification and AIPP configuration.

具体的,采用昇腾AI处理器软件栈中的辅助开发工具ATC将目标检测模型转换成om模型文件,其中,通过执行ATC命令完成模型转换,采用Mind Studio对转换结果进行校对。Specifically, the auxiliary development tool ATC in the Ascend AI processor software stack is used to convert the target detection model into an om model file. The model conversion is completed by executing the ATC command, and Mind Studio is used to proofread the conversion result.

具体的,将获取到的空间目标图像输入至Atlas200DK支持的目标检测模型,得到推理检测结果,对推理检测结果进行解析并结合IoU以及非极大值抑制进行边界框筛选处理,得到目标检测结果。Specifically, the acquired spatial target image is input into the target detection model supported by Atlas200DK to obtain the inference detection result, the inference detection result is analyzed and bounding box screening is performed in combination with IoU and non-maximum suppression to obtain the target detection result.

如图4所示,本发明还提供了一种基于Atlas200DK的空间目标检测系统,包括:图像获取模块,用于获取Atlas200DK上的空间目标图像;目标检测模块,用于将获取到的空间目标图像输入至Atlas200DK支持的目标检测模型,经解析处理得到目标检测结果;其中,Atlas200DK支持的目标检测模型由目标检测模型经模型文件转换处理得到;目标检测模型由YOLO v3以及Resnet18构建的模型结构,经训练和测试后得到。As shown in FIG4 , the present invention further provides a space target detection system based on Atlas200DK, including: an image acquisition module, used to acquire a space target image on Atlas200DK; a target detection module, used to input the acquired space target image into a target detection model supported by Atlas200DK, and obtain a target detection result through parsing; wherein, the target detection model supported by Atlas200DK is obtained by converting the target detection model through a model file; and the target detection model is obtained through a model structure constructed by YOLO v3 and Resnet18 after training and testing.

本发明还提供了一种设备,包括:存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现所述的基于Atlas200DK的空间目标检测方法的步骤。The present invention also provides a device, comprising: a memory for storing a computer program; and a processor for implementing the steps of the space target detection method based on Atlas200DK when executing the computer program.

所述处理器执行所述计算机程序时实现上述基于Atlas200DK的空间目标检测的步骤,例如:获取Atlas200DK上的空间目标图像;将获取到的空间目标图像输入至Atlas200DK支持的目标检测模型,经解析处理得到目标检测结果;其中,Atlas200DK支持的目标检测模型由目标检测模型经模型文件转换处理得到;目标检测模型由YOLO v3以及Resnet18构建的模型结构,经训练和测试后得到。When the processor executes the computer program, the above-mentioned steps of space target detection based on Atlas200DK are implemented, for example: obtaining a space target image on Atlas200DK; inputting the obtained space target image into a target detection model supported by Atlas200DK, and obtaining a target detection result through parsing; wherein, the target detection model supported by Atlas200DK is obtained by converting the target detection model through a model file; and the target detection model is obtained through a model structure constructed by YOLO v3 and Resnet18 after training and testing.

或者,所述处理器执行所述计算机程序时实现上述系统中各模块的功能,例如:图像获取模块,用于获取Atlas200DK上的空间目标图像;目标检测模块,用于将获取到的空间目标图像输入至Atlas200DK支持的目标检测模型,经解析处理得到目标检测结果;其中,Atlas200DK支持的目标检测模型由目标检测模型经模型文件转换处理得到;目标检测模型由YOLO v3以及Resnet18构建的模型结构,经训练和测试后得到。Alternatively, when the processor executes the computer program, the functions of each module in the above system are realized, for example: an image acquisition module, used to acquire a space target image on Atlas200DK; a target detection module, used to input the acquired space target image into a target detection model supported by Atlas200DK, and obtain a target detection result through parsing; wherein, the target detection model supported by Atlas200DK is obtained by converting the target detection model through a model file; the target detection model is a model structure constructed by YOLO v3 and Resnet18, and is obtained after training and testing.

示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块/单元可以是能够完成预设功能的一系列计算机程序指令段,所述指令段用于描述所述计算机程序在所述基于Atlas200DK的空间目标检测设备中的执行过程。例如,所述计算机程序可以被分割成图像获取模块和目标检测模块;各模块具体功能如下:Exemplarily, the computer program may be divided into one or more modules/units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of completing preset functions, and the instruction segments are used to describe the execution process of the computer program in the space target detection device based on Atlas200DK. For example, the computer program may be divided into an image acquisition module and a target detection module; the specific functions of each module are as follows:

图像获取模块,用于获取Atlas200DK上的空间目标图像;目标检测模块,用于将获取到的空间目标图像输入至Atlas200DK支持的目标检测模型,经解析处理得到目标检测结果;其中,Atlas200DK支持的目标检测模型由目标检测模型经模型文件转换处理得到;目标检测模型由YOLO v3以及Resnet18构建的模型结构,经训练和测试后得到。The image acquisition module is used to acquire the space target image on Atlas200DK; the target detection module is used to input the acquired space target image into the target detection model supported by Atlas200DK, and obtain the target detection result after parsing. Among them, the target detection model supported by Atlas200DK is obtained by converting the target detection model through the model file; the target detection model is a model structure constructed by YOLO v3 and Resnet18, which is obtained after training and testing.

所述基于Atlas200DK的空间目标检测设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述基于Atlas200DK的空间目标检测设备可包括,但不仅限于处理器、存储器。本领域技术人员可以理解,上述是基于Atlas200DK的空间目标检测设备的示例,并不构成对基于Atlas200DK的空间目标检测设备的限定,可以包括比上述更多的部件,或者组合某些部件,或者不同的部件,例如所述基于Atlas200DK的空间目标检测设备还可以包括输入输出设备、网络接入设备、总线等。The space target detection device based on Atlas200DK can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The space target detection device based on Atlas200DK may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above is an example of a space target detection device based on Atlas200DK, and does not constitute a limitation on the space target detection device based on Atlas200DK, and may include more components than the above, or a combination of certain components, or different components. For example, the space target detection device based on Atlas200DK may also include input and output devices, network access devices, buses, etc.

所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者所述处理器也可以是任何常规的处理器等,所述处理器是所述基于Atlas200DK的空间目标检测的控制中心,利用各种接口和线路连接整个基于Atlas200DK的空间目标检测设备的各个部分。The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the space target detection based on Atlas200DK, and uses various interfaces and lines to connect various parts of the entire space target detection device based on Atlas200DK.

所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述基于Atlas200DK的空间目标检测设备的各种功能。The memory can be used to store the computer program and/or module, and the processor implements various functions of the space target detection device based on Atlas200DK by running or executing the computer program and/or module stored in the memory, and calling the data stored in the memory.

所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现所述的一种基于Atlas200DK的空间目标检测方法的步骤。The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the space target detection method based on Atlas200DK are implemented.

所述基于Atlas200DK的空间目标检测系统集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。If the module/unit integrated in the space target detection system based on Atlas200DK is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.

基于这样的理解,本发明实现上述基于Atlas200DK的空间目标检测方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,所述计算机程序在被处理器执行时,可实现上述基于Atlas200DK的空间目标检测方法的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或预设中间形式等。Based on such understanding, the present invention implements all or part of the processes in the above-mentioned space target detection method based on Atlas200DK, and can also be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned space target detection method based on Atlas200DK can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or preset intermediate form, etc.

所述计算机可读存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质等。The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.

需要说明的是,所述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括电载波信号和电信信号。It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electrical carrier signals and telecommunication signals.

下面结合实施例与附图对本发明作进一步说明:The present invention will be further described below in conjunction with the embodiments and drawings:

实施例Example

正如背景技术中提及的:现有星载计算机系统中,采用CPU和GPU等计算设备,由于采用传统的YOLO系列算法,在数据处理方面会有处理速度慢、功耗大等问题,显然无法满足星载计算机系统对空间目标监视的高可靠性的要求。As mentioned in the background technology: In the existing satellite computer systems, computing devices such as CPU and GPU are used. Due to the use of traditional YOLO series algorithms, there are problems such as slow processing speed and high power consumption in data processing. Obviously, it cannot meet the high reliability requirements of the satellite computer system for space target monitoring.

为了解决上述问题,本实施例提供了一种基于Atlas200DK的空间目标检测方法,本方法主要使用改进的YOLO v3算法进行目标检测,改进的YOLO v3算法具有高效的检测性能,通过Atlas 200DK可进一步提高该算法的推理速度,完成高效的检测任务。In order to solve the above problems, this embodiment provides a space target detection method based on Atlas200DK. This method mainly uses an improved YOLO v3 algorithm for target detection. The improved YOLO v3 algorithm has efficient detection performance. Through Atlas 200DK, the reasoning speed of the algorithm can be further improved to complete efficient detection tasks.

本检测方法的主要步骤为:分为模型训练阶段和模型推理阶段;如图1所示,模型训练阶段主要在服务器端实现,得到目标检测模型,本发明主要针对昇腾AI处理器进行优化,将YOLO v3的特征提取网络换成Resnet18完成优化,模型推理阶段在华为Atlas200DK上实现。基于此,本发明的主要构思在于:The main steps of this detection method are: divided into a model training phase and a model reasoning phase; as shown in Figure 1, the model training phase is mainly implemented on the server side to obtain a target detection model. The present invention is mainly optimized for the Ascend AI processor, and the feature extraction network of YOLO v3 is replaced with Resnet18 to complete the optimization. The model reasoning phase is implemented on Huawei Atlas200DK. Based on this, the main idea of the present invention is:

(1)算法优化(1) Algorithm Optimization

Atlas 200DK作为一个开发者套件形态的硬件产品,以昇腾310芯片作为加速模块的核心,而昇腾310芯片通过强大的计算能力提高了算法性能。所以在进行算法设计时考虑如何充分利用昇腾AI系列新芯片计算单元的使用率,本次算法优化过程中主要通过对修改网络结构实现算法优化。Atlas 200DK is a hardware product in the form of a developer kit. It uses the Ascend 310 chip as the core of the acceleration module. The Ascend 310 chip improves the algorithm performance through its powerful computing power. Therefore, when designing the algorithm, we consider how to make full use of the computing unit of the new Ascend AI series chips. In this algorithm optimization process, the algorithm optimization is mainly achieved by modifying the network structure.

本实施例所使用的基于YOLO v3的目标检测算法,其特征提取网络是Darknet53,由于面对大量的计算数据,传统的YOLO v3计算速度相对较慢,无法满足当前的星载计算机系统对空间目标监视的高可靠性的要求,因此,为了提高模型的检测速率,在本实施例中将YOLO v3的骨干网络Darknet53替换为深度较浅的骨干网络来完成特征提取。在完成对昇腾社区中使用Atlas200DK进行应用开发的各个案例进行研究之后,其中,较为典型的经典案例就是使用Resnet18来完成目标识别与检测任务,并且通过各类案例也可看出Resnet18有良好的性能表现,此处为本发明的发明点之一。而在实际的Atlas200DK的应用实现过程中,首先需要考虑的就是该算法与昇腾AI处理器的适配性,若出现无法适配的情况,会给后续的应用实现带来极大的阻力。同时Darknet53网络作为Resnet的重要变体网络,为保证YOLOv3目标检测算法可以在优化后保证其能正常执行,考虑将Darknet53逐步替换成与其结构相近的Resnet系列网络结构,即Resnet18。The target detection algorithm based on YOLO v3 used in this embodiment has a feature extraction network of Darknet53. Due to the large amount of calculation data, the traditional YOLO v3 calculation speed is relatively slow and cannot meet the high reliability requirements of the current onboard computer system for space target monitoring. Therefore, in order to improve the detection rate of the model, in this embodiment, the backbone network Darknet53 of YOLO v3 is replaced with a shallower backbone network to complete feature extraction. After completing the study of various cases of using Atlas200DK for application development in the Ascend community, a typical classic case is to use Resnet18 to complete target recognition and detection tasks, and it can be seen from various cases that Resnet18 has good performance, which is one of the invention points of the present invention. In the actual application implementation process of Atlas200DK, the first thing to consider is the compatibility of the algorithm with the Ascend AI processor. If there is a situation where it cannot be adapted, it will bring great resistance to the subsequent application implementation. At the same time, Darknet53 network is an important variant network of Resnet. In order to ensure that the YOLOv3 target detection algorithm can be executed normally after optimization, it is considered to gradually replace Darknet53 with a Resnet series network structure similar to its structure, namely Resnet18.

如图2所示,采用上述优化方法对YOLO v3进行优化,得到YOLO-R的结构,在使用该结构进行算法的目标检测时,其流程与原版的YOLO v3相似。首先需要使用Resnet18网络完成特征提取,分别提取到三个不同尺度的特征,然后经过卷积网络和上采样等处理完成不同尺度目标结果的输出。接着,进行目标框的预测,从特征中提取有用的框,此处的目标框预测与原始的YOLO v3网络相同。最后,根据非极大值抑制算法筛选出最终的结果框。As shown in Figure 2, the above optimization method is used to optimize YOLO v3 to obtain the structure of YOLO-R. When using this structure for target detection of the algorithm, its process is similar to the original YOLO v3. First, it is necessary to use the Resnet18 network to complete feature extraction, extract features of three different scales respectively, and then use convolutional networks and upsampling to complete the output of target results of different scales. Next, the target box is predicted and useful boxes are extracted from the features. The target box prediction here is the same as the original YOLO v3 network. Finally, the final result box is screened out according to the non-maximum suppression algorithm.

(2)实验平台整体配置(2) Overall configuration of the experimental platform

在Atlas200DK中的模型推理阶段,需要将原始的模型文件转换为昇腾AI处理器支持的离线网络模型om模型文件。在昇腾AI处理器中,支持当前主流的深度学习框架下的模型文件,如Caffe、MindSpore、TensorFlow等。本实施例使用Caffe框架下的模型文件prototxt文件和权重文件caffemodel,通过模型转换工具成功转换模型。In the model inference stage in Atlas200DK, the original model file needs to be converted into an offline network model om model file supported by the Ascend AI processor. In the Ascend AI processor, model files under the current mainstream deep learning frameworks are supported, such as Caffe, MindSpore, TensorFlow, etc. This embodiment uses the model file prototxt file and the weight file caffemodel under the Caffe framework to successfully convert the model through the model conversion tool.

在模型推理阶段完成模型转化之后,按照Atlas200DK的开发流程并结合ACL开发API进行应用开发。一般应用开发的流程为:媒体数据的预处理,加载模型进行模型推理,解析模型推理结果,最后将得到的推理结果进行处理。应用开发完成后,可根据不同应用的开发语言进行模型部署以及模型运行。在当前版本的Atlas200DK开发者套件中,提供了API分为C++版本以及python版本,因此应用开发语言主要以C++语言或者python语言为主。本实施例使用C++语言进行模型部署与模型运行,在开发环境中先完成工程文件的编译工作,再进行开发者板上的部署及运行。After completing the model conversion in the model reasoning stage, application development is performed according to the development process of Atlas200DK and in combination with the ACL development API. The general application development process is: preprocessing of media data, loading the model for model reasoning, parsing the model reasoning results, and finally processing the obtained reasoning results. After the application development is completed, the model can be deployed and run according to the development language of different applications. In the current version of the Atlas200DK developer kit, APIs are provided in C++ version and python version, so the application development language is mainly C++ or python. This embodiment uses C++ language for model deployment and model operation. The compilation of the project files is completed in the development environment first, and then deployed and run on the developer board.

(3)算法及应用开发实现(3) Algorithm and application development and implementation

在Atlas200DK中,必须将已有的模型转换为昇腾AI处理器支持的离线模型om文件,才可以用于后续的应用开发,并进行业务实现与完成。进行模型转换时,主要使用了昇腾AI处理器软件栈中的辅助开发工具ATC,该工具向用户提供了两种不同的模型转换方法,分别是MindStudio的模型转换工具和ATC命令行进行模型转换。进行模型转换时,需根据需要进行定制网络修改以及AIPP配置。定制网络修改主要针对Caffe框架下的模型文件(*.prototxt)进行修改,使其满足昇腾AI处理器模型转换时的算子支持,两种模型转换操作均需在模型转换前完成该文件内容的修改,而AIPP配置则针对两种不同的转换方式提供了不同的配置方法。本实施例采用ATC作为模型转换的辅助开发工具。通过ATC命令行进行模型转换时,将模型文件,权重文件,AIPP配置文件放入同一文件夹下,在该文件夹下打开终端进行环境配置,并通过ATC命令行完成模型转换。使用ATC进行模型转换之后再使用MindStudio查看om模型的结构是否和原始caffe模型一致。以上为本发明的又一发明点。In Atlas200DK, the existing model must be converted into an offline model om file supported by the Ascend AI processor before it can be used for subsequent application development and business implementation and completion. When performing model conversion, the auxiliary development tool ATC in the Ascend AI processor software stack is mainly used. The tool provides users with two different model conversion methods, namely the model conversion tool of MindStudio and the ATC command line for model conversion. When performing model conversion, customized network modifications and AIPP configurations need to be performed as needed. Customized network modifications are mainly performed on the model file (*.prototxt) under the Caffe framework to meet the operator support during model conversion of the Ascend AI processor. Both model conversion operations require the modification of the file content before model conversion, and the AIPP configuration provides different configuration methods for two different conversion methods. This embodiment uses ATC as an auxiliary development tool for model conversion. When performing model conversion through the ATC command line, put the model file, weight file, and AIPP configuration file in the same folder, open the terminal in the folder for environment configuration, and complete the model conversion through the ATC command line. After using ATC to convert the model, use MindStudio to check whether the structure of the om model is consistent with the original caffe model. The above is another inventive point of the present invention.

根据应用场景分析中的各项功能分析,针对各个功能分别创建一个子函数,对各个场景的功能进行实现。According to the analysis of various functions in the application scenario analysis, a sub-function is created for each function to implement the function of each scenario.

1)资源初始化与去初始化:在使用ACL进行程序开发时,必须对各类资源进行初始化,通过acl.init接口实现ACL初始化,使用acl.media下的接口完成数据预处理资源申请,使用acl.mdl下的接口模型加载资源申请,避免后续开发操作出现问题,当某一资源使用完成后,需要进行去初始化,完成对该资源的释放。1) Resource initialization and deinitialization: When using ACL for program development, various resources must be initialized. ACL initialization is implemented through the acl.init interface, and the interface under acl.media is used to complete the data preprocessing resource application. The interface model under acl.mdl is used to load the resource application to avoid problems in subsequent development operations. When a resource is used, it needs to be deinitialized to release the resource.

2)模型推理函数:主要调用acl.mdl下的接口。在完成对图片的预处理操作后,即可将该图像送入模型进行模型加载与执行,完成模型的推理任务。模型推理结束之后,需进行模型资源释放。2) Model inference function: mainly calls the interface under acl.mdl. After completing the preprocessing operation of the image, the image can be sent to the model for model loading and execution to complete the model inference task. After the model inference is completed, the model resources need to be released.

3)数据后处理函数:模型推理操作结束之后,进行图片推理结果的获取,并对模型推理结果进行解析,来获取最终的目标检测结果。不同的原始模型会使后处理函数有所不同,比如在本文中,YOLOv3模型在模型转换时封装了置信度以及非极大值抑制等参数,因此在后处理中无需针对此部分进行处理,仅需获取推理结果并进行结果输出。而YOLO-R模型则需要对推理结果进行详细解析,需在后处理函数中解析模型推理结果,并结合使用IoU(交并比测量)以及非极大值抑制等完成边界框筛选相关操作,获得最终目标检测结果。在获得推理结果之后,输出推理检测结果,并在原本的图片上使用opencv或者pillow函数进行推理结果标记。3) Data post-processing function: After the model inference operation is completed, the image inference results are obtained and the model inference results are parsed to obtain the final target detection results. Different original models will make the post-processing functions different. For example, in this article, the YOLOv3 model encapsulates parameters such as confidence and non-maximum suppression during model conversion. Therefore, there is no need to process this part in post-processing. You only need to obtain the inference results and output the results. The YOLO-R model requires a detailed analysis of the inference results. It is necessary to parse the model inference results in the post-processing function, and combine IoU (intersection over union measurement) and non-maximum suppression to complete bounding box screening related operations to obtain the final target detection results. After obtaining the inference results, output the inference detection results, and use opencv or pillow functions on the original image to mark the inference results.

综上,本发明提供了一种基于Atlas200DK的空间目标检测方法,本方法基于Atlas200DK,采用将Resnet18作为骨干网络,替换了YOLO v3网络模型中的原始特征提取网络Darknet53,这一结合极大提升了模型的检测速率,同时,考虑了算法与处理器之间适配性的问题,通过将训练完成的目标检测模型进行模型文件转换处理,保证优化后的算法能够正常执行,最终将获取到的空间目标图像输入至Atlas200DK支持的目标检测模型,经解析处理得到目标检测结果,通过对YOLO v3网络模型的优化以及适配性的调整,即使面对大量的数据时,依然能够保证模型的推理速度,达到了高速、低功耗的处理效果;采用本方法能够提高空间目标监视的处理速度和检测精度,满足了当前星载计算机系统对空间目标监视的高可靠性的要求。In summary, the present invention provides a space target detection method based on Atlas200DK. The method is based on Atlas200DK, uses Resnet18 as the backbone network, and replaces the original feature extraction network Darknet53 in the YOLO v3 network model. This combination greatly improves the detection rate of the model. At the same time, the compatibility problem between the algorithm and the processor is considered. The trained target detection model is converted into a model file to ensure that the optimized algorithm can be executed normally. Finally, the acquired space target image is input into the target detection model supported by Atlas200DK, and the target detection result is obtained through parsing. By optimizing the YOLO v3 network model and adjusting its adaptability, the reasoning speed of the model can still be guaranteed even in the face of a large amount of data, achieving a high-speed and low-power processing effect. The method can improve the processing speed and detection accuracy of space target monitoring, and meet the high reliability requirements of the current onboard computer system for space target monitoring.

上述实施例仅仅是能够实现本发明技术方案的实施方式之一,本发明所要求保护的范围并不仅仅受本实施例的限制,还包括在本发明所公开的技术范围内,任何熟悉本技术领域的技术人员所容易想到的变化、替换及其他实施方式。The above embodiment is only one of the implementation methods that can realize the technical solution of the present invention. The scope of protection claimed by the present invention is not limited only to this embodiment, but also includes changes, replacements and other implementation methods that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention.

Claims (10)

1. The spatial target detection method based on Atlas200DK is characterized by being applied to Atlas200DK and comprising the following steps:
acquiring a space target image on Atlas200 DK;
inputting a space target image into a target detection model supported by Atlas200DK, and obtaining a target detection result through analysis;
the target detection model supported by Atlas200DK is obtained by converting a model file from the target detection model; the target detection model is obtained by training and testing a model structure constructed by YOLO v3 and Resnet18.
2. The Atlas200 DK-based spatial target detection method according to claim 1, wherein the step of constructing the target detection model includes:
and replacing the feature extraction network in the YOLO v3 network model with a Resnet18 network to obtain a YOLO-R network structure.
3. The Atlas200 DK-based spatial target detection method according to claim 1, wherein the specific step of performing model file conversion processing on the target detection model comprises:
and converting the target detection model into an om model file, and outputting the target detection model supported by Atlas200 DK.
4. The spatial target detection method based on Atlas200DK according to claim 3, wherein the target detection model adopts a prototxt model file under a Caffe framework.
5. The Atlas200 DK-based spatial target detection method of claim 4, wherein the custom network modification and AIPP configuration are performed on the prototxt model file under the Caffe framework at the same time during the model file conversion process.
6. The Atlas200 DK-based spatial object detection method of claim 3, wherein the object detection model is converted into an om model file by using an auxiliary development tool ATC in a software stack of a lifting AI processor, wherein the model conversion is completed by executing an ATC command, and the conversion result is collated by using a mini Studio.
7. The Atlas200 DK-based spatial target detection method of claim 1, wherein the acquired spatial target image is input to a target detection model supported by Atlas200DK to obtain an inference detection result, and the inference detection result is analyzed and combined with IoU and non-maximum suppression to perform bounding box screening processing to obtain the target detection result.
8. Atlas200 DK-based spatial target detection system for implementing the steps of the Atlas200 DK-based spatial target detection method of any one of claims 1-7, comprising:
the image acquisition module is used for acquiring a space target image on Atlas200 DK;
the target detection module is used for inputting the acquired space target image into a target detection model supported by Atlas200DK, and obtaining a target detection result through analysis;
the target detection model supported by Atlas200DK is obtained by converting a model file from the target detection model; the target detection model is obtained by training and testing a model structure constructed by YOLO v3 and Resnet18.
9. An apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the Atlas200 DK-based spatial target detection method of any one of claims 1-7 when executing said computer program.
10. A computer readable storage medium storing a computer program, characterized in that the computer program is executed by a processor for implementing the steps of the Atlas200 DK-based spatial target detection method of any of claims 1-7.
CN202410117710.6A 2024-01-26 2024-01-26 A space target detection method and related equipment based on Atlas200DK Pending CN117830857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410117710.6A CN117830857A (en) 2024-01-26 2024-01-26 A space target detection method and related equipment based on Atlas200DK

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410117710.6A CN117830857A (en) 2024-01-26 2024-01-26 A space target detection method and related equipment based on Atlas200DK

Publications (1)

Publication Number Publication Date
CN117830857A true CN117830857A (en) 2024-04-05

Family

ID=90524211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410117710.6A Pending CN117830857A (en) 2024-01-26 2024-01-26 A space target detection method and related equipment based on Atlas200DK

Country Status (1)

Country Link
CN (1) CN117830857A (en)

Similar Documents

Publication Publication Date Title
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN112819153B (en) Model transformation method and device
CN110147397B (en) System docking method, device, management system, terminal equipment and storage medium
CN111427583A (en) Component compiling method and device, electronic equipment and computer readable storage medium
CN111724248A (en) Deployment method of machine learning algorithm, micro-expression recognition method and terminal device
CN113570030A (en) Data processing method, device, equipment and storage medium
CN108415826A (en) Test method, terminal device and the computer readable storage medium of application
CN113269319B (en) Tuning method, compilation method and computing device of deep learning model
CN102402455A (en) Method and device for calling dynamic link library
CN111026368B (en) Python-based plug-in generation method, device, equipment and storage medium
CN110377708B (en) Multi-scene conversation switching method and device
CN115115048A (en) Model conversion method, device, computer equipment and storage medium
CN108008959A (en) A kind of Software Development Kit SDK cut-in methods, system and device
CN110569230A (en) Method, system and equipment for interconversion between database design model and design document
CN117830857A (en) A space target detection method and related equipment based on Atlas200DK
CN112527272A (en) Method for butting TVM and related equipment
CN116880894A (en) Unified platform management method, device, equipment and medium
CN114911541B (en) Processing method and device of configuration information, electronic equipment and storage medium
CN111522536A (en) Method for calling programming language and related equipment thereof
CN109359295A (en) Semantic analytic method, device, computer equipment and the storage medium of natural language
CN113361677A (en) Quantification method and device of neural network model
CN111027196A (en) Simulation analysis task processing method and device for power equipment and storage medium
CN111967273B (en) Dialog management system, method and rule engine device
EP4068141A1 (en) Method and system to enable print functionality in high-level synthesis (hls) design platforms
US12111244B2 (en) Method for calculating a density of stem cells in a cell image, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination