Calculation method and device for binding adjustment calculation architecture and electronic equipment
By using FPGA accelerators in bundled adjustment optimization to dynamically allocate and process GTG and FTF calculation sequences, the problem of low resource utilization efficiency and high overhead in the existing technology is solved, and efficient BA optimization calculations are achieved, which is suitable for small unmanned systems. real-time computing requirements.
Patent Information
- Application Number
- CN202410847157.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-22
AI Technical Summary
Existing bundled adjustment and optimization accelerator solutions suffer from low resource utilization efficiency and high overhead, making it difficult to achieve real-time computing and efficient processing in small unmanned systems.
A field programmable gate array FPGA accelerator is used to obtain and divide the GTG and FTF calculation sequences, dynamically allocate tasks to the matrix multiplication module, and use the Sher elimination processing algorithm to perform bundled adjustment optimization calculations to maximize the utilization of the processing unit.
While occupying less hardware resources, it improves the efficiency of BA optimization calculations, ensures that the calculation efficiency does not decrease under different scenario tasks, and solves the problems of low resource utilization efficiency and high overhead.
Smart Images

Figure CN118819833A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of bundle adjustment optimization, and in particular to a calculation method, device and electronic device for a bundle adjustment calculation architecture. Background Art
[0002] Perception and positioning capabilities are the basis for unmanned systems to complete complex tasks. External positioning solutions such as GPS have limited accuracy and cannot work well in indoor environments. Therefore, it is particularly important to rely on its own odometer to complete autonomous positioning in an unknown environment. It is the basic ability of drone planning, decision-making, and collaboration.
[0003] BA (Bundle Adjustment) optimization is a technology that optimizes the accuracy of visual positioning and is widely used in perception tasks such as visual positioning odometry. General visual positioning processing is to estimate the pose change of the system and the spatial position of the visual feature points between the two frames by extracting and matching features of two frames. However, this method of estimating the camera motion and the position of the feature points in the local time is very prone to trajectory drift during longer-term motion. Therefore, it is necessary to introduce the BA optimization model to establish a nonlinear least squares problem for all observation data over a long period of time in the past, and obtain the optimal motion estimate by minimizing the reprojection error.
[0004] However, the BA optimization process brings high computational costs, making it difficult for the CPU to perform real-time operations; and its sparse characteristics make it difficult for the GPU to process efficiently. Therefore, for various resource-constrained small unmanned systems, it is necessary to design an efficient BA optimization accelerator to support various visual perception tasks.
[0005] The current BA optimization accelerator solutions are mainly divided into two categories. One category directly treats the data in BA optimization as a dense matrix and completes it based on a parallel computing array; the other category pays attention to the data sparsity in BA optimization, but analyzes the data characteristics of the current scene through offline statistics, and then determines the design parameters of the hardware module.
[0006] However, the two existing solutions mentioned above both have the problems of low resource utilization efficiency and high overhead. For the first type of solution based on parallel computing array, although it can complete other general computing tasks at the same time, it ignores the data sparsity of BA optimization, resulting in high hardware resource overhead; for the second type of solution, although the excellent design for the current scene can be obtained by offline analysis of the characteristics of the current scene, the computing efficiency of the accelerator is low when migrating to different scene tasks, and the parameters of the hardware module need to be redesigned. Summary of the invention
[0007] The present application provides a computing method, device and electronic device for bundling and adjusting computing architecture to solve the problems of low resource utilization efficiency and high overhead in the current BA optimization accelerator solution.
[0008] The first aspect of the present application provides a computing method for a bundled adjustment computing architecture, wherein the bundled adjustment computing architecture includes a field programmable gate array FPGA (Field Programmable Gate Array) accelerator, wherein the method includes the following steps: obtaining a plurality of G T G calculation sequence and multiple F T F calculation sequence; each G T G calculation sequence is divided into multiple first subtasks, and each F T The F calculation sequence is divided into a plurality of second subtasks; based on the priorities of all the first subtasks and the priorities of all the second subtasks, each G is dynamically allocated T G calculation sequence corresponds to multiple first subtasks and each F T The F calculation sequence corresponds to multiple second subtasks to multiple matrix multiplication modules, and based on the allocation result, the FPGA accelerator is used to perform bundle adjustment optimization calculation.
[0009] Optionally, the obtaining of multiple G T G calculation sequence and multiple F T The F calculation sequence includes: obtaining the visual sensor measurement data of the CPU end, and generating a Jacobin matrix based on the visual sensor measurement data; merging the matrix rows belonging to the same spatial point in the Jacobin matrix to obtain multiple groups of Chunk blocks; sending the multiple groups of Chunk blocks to a preset communication module to obtain the multiple F T F calculation sequence, and send the Chunk block from the preset communication module to the FPGA accelerator to obtain the multiple G T G calculates the sequence.
[0010] Optionally, when the FPGA accelerator is used to perform bundle adjustment optimization calculation based on the allocation result, the method includes: T G calculation sequence corresponds to multiple first subtasks and each F T The plurality of second subtasks corresponding to the F calculation sequence are subjected to bundle adjustment optimization calculation using the Scher elimination processing algorithm and the FPGA accelerator, wherein the Scher elimination processing algorithm is:
[0011] S=F T FG T G;
[0012] Where S is the result of Scher's elimination.
[0013] Optionally, the priority of any first subtask is higher than the priorities of all second subtasks.
[0014] Optionally, each G T The number of the first subtasks corresponding to the G calculation sequence is greater than that of each F T F calculates the number of multiple second subtasks corresponding to the sequence.
[0015] A second aspect of the present application provides a computing device of a bundled adjustment computing architecture, wherein the bundled adjustment computing architecture includes a field programmable gate array FPGA accelerator, including: an acquisition module for acquiring a plurality of G T G calculation sequence and multiple F T F calculation sequence; division module, used to convert each G T G calculation sequence is divided into multiple first subtasks, and each F T The F calculation sequence is divided into a plurality of second subtasks; a calculation module is used to dynamically allocate each G based on the priorities of all the first subtasks and the priorities of all the second subtasks. T G calculation sequence corresponds to multiple first subtasks and each F T The F calculation sequence corresponds to multiple second subtasks to multiple matrix multiplication modules, and based on the allocation result, the FPGA accelerator is used to perform bundle adjustment optimization calculation.
[0016] Optionally, the acquisition module is further used to: acquire the visual sensor measurement data of the CPU end, and generate a Jacobin matrix based on the visual sensor measurement data; merge the matrix rows belonging to the same spatial point in the Jacobin matrix to obtain multiple groups of Chunk blocks; send the multiple groups of Chunk blocks to the preset communication module to obtain the multiple F T F calculation sequence, and send the Chunk block from the preset communication module to the FPGA accelerator to obtain the multiple G T G calculates the sequence.
[0017] Optionally, when the FPGA accelerator is used to perform bundle adjustment optimization calculation based on the allocation result, the calculation module is further used to: T G calculation sequence corresponds to multiple first subtasks and each F T The plurality of second subtasks corresponding to the F calculation sequence are subjected to bundle adjustment optimization calculation using the Scher elimination processing algorithm and the FPGA accelerator, wherein the Scher elimination processing algorithm is:
[0018] S=F T FG T G;
[0019] Where S is the result of Scher's elimination.
[0020] Optionally, the priority of any first subtask is higher than the priorities of all second subtasks.
[0021] Optionally, each G T The number of the first subtasks corresponding to the G calculation sequence is greater than that of each F T F calculates the number of multiple second subtasks corresponding to the sequence.
[0022] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the computing method of the bundled adjustment computing architecture as described in the above embodiment.
[0023] The fourth aspect of the present application provides a computer program product on which a computer program is stored, and the program is executed by a processor to implement the computing method of bundling and adjusting the computing architecture as described in the above embodiments.
[0024] In the above implementation, multiple G T G calculation sequence and multiple F T F calculates the sequence, and each G T G calculation sequence is divided into multiple first subtasks, and each F T The F calculation sequence is divided into multiple second subtasks, and each G is dynamically allocated based on the priority of all first subtasks and the priority of all second subtasks. T G calculates the first subtasks corresponding to the sequence and each F T The multiple second subtasks corresponding to the F calculation sequence are allocated to multiple matrix multiplication modules, and based on the allocation results, the FPGA accelerator is used to perform bundled adjustment optimization calculations. Thus, the problems of low resource utilization efficiency and high overhead in the current BA optimization accelerator solution are solved, and the utilization rate of the processing unit PE (processing element) is maximized, so that the BA optimization calculation can be completed more efficiently while occupying less hardware resources. In addition, since the calculation load is dynamically divided and allocated, the different scales of the calculation load in different scene tasks will not lead to a decrease in hardware calculation efficiency.
[0025] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0027] Figure 1 A flowchart of a calculation method for bundling and adjusting a calculation architecture provided according to an embodiment of the present application;
[0028] Figure 2 is a schematic diagram of a load distribution structure according to an embodiment of the present application;
[0029] Figure 3 A flowchart of a calculation method for a bundled adjustment calculation architecture according to an embodiment of the present application;
[0030] Figure 4 An example diagram of a computing device for bundling and adjusting a computing architecture according to an embodiment of the present application;
[0031] Figure 5 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. Description of the drawings:
[0033] 10-computing device for bundling and adjusting computing architecture; 100-acquisition module; 200-division module; 300-computing module. DETAILED DESCRIPTION
[0034] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0035] The following describes the calculation method, device and electronic device of the bundle adjustment calculation architecture of the embodiment of the present application with reference to the accompanying drawings. In view of the problems of low resource utilization efficiency and high overhead of the current BA optimization accelerator solution mentioned in the above background technology, the present application provides a calculation method of the bundle adjustment calculation architecture, in which multiple G T G calculation sequence and multiple F T F calculates the sequence, and each G T G calculation sequence is divided into multiple first subtasks, and each F T The F calculation sequence is divided into multiple second subtasks, and each G is dynamically allocated based on the priority of all first subtasks and the priority of all second subtasks. T G calculates the first subtasks corresponding to the sequence and each F TThe multiple second subtasks corresponding to the F calculation sequence are allocated to multiple matrix multiplication modules, and based on the allocation results, the FPGA accelerator is used to perform bundled adjustment optimization calculations. Thus, the problems of low resource utilization efficiency and high overhead in the current BA optimization accelerator solution are solved, and the utilization rate of the processing unit PE is maximized, so that the BA optimization calculation can be completed more efficiently while occupying less hardware resources. In addition, since the calculation load is dynamically divided and allocated, the different scales of the calculation load in different scene tasks will not lead to a decrease in hardware calculation efficiency.
[0036] Specifically, Figure 1 A flowchart of a computing method for bundling and adjusting a computing architecture provided in an embodiment of the present application.
[0037] like Figure 1 As shown, the calculation method of the bundled adjustment calculation architecture includes the following steps:
[0038] The bundled adjustment computing architecture includes a field programmable gate array FPGA accelerator,
[0039] In step S101, multiple G T G calculation sequence and multiple F T F calculates the sequence.
[0040] Optionally, in some embodiments, multiple G T G calculation sequence and multiple F T The F calculation sequence includes: obtaining the visual sensor measurement data on the CPU side, and generating a Jacobin matrix based on the visual sensor measurement data; merging the matrix rows belonging to the same spatial point in the Jacobin matrix to obtain multiple groups of Chunk blocks; sending the multiple groups of Chunk blocks to the preset communication module to obtain multiple F T F calculation sequence, and send the Chunk block from the preset communication module to the FPGA accelerator to obtain multiple G T G calculates the sequence.
[0041] Specific as Figure 2 As shown, the embodiment of the present application first obtains the visual sensor measurement data of the CPU end, generates a Jacobin matrix based on the visual sensor measurement data, and processes the input Jacobin matrix. Since the sparsity of the matrix has regularity, the matrix rows belonging to the same spatial point are merged into a group of Chunk blocks, and the Chunk block input data preset communication module (module communicating with the CPU end) is sent to the FPGA accelerator one by one. Each group of Chunk blocks independently generates a G matrix without interfering with each other, simplifying the calculation, thereby obtaining multiple G T G calculates the sequence and sends multiple groups of Chunks to the preset communication module to obtain multiple F TF calculates the sequence.
[0042] In step S102, each G T G calculation sequence is divided into multiple first subtasks, and each F T The F calculation sequence is divided into a plurality of second subtasks.
[0043] In some embodiments, each G T The number of the first subtasks corresponding to the G calculation sequence is greater than that of each F T F calculates the number of multiple second subtasks corresponding to the sequence.
[0044] Specifically, the embodiment of the present application converts each G T G calculation sequence is divided into n 2 subtasks, each F T The F calculation sequence is divided into n subtasks, which are dynamically assigned to subsequent small-block matrix multiplication modules according to task priorities.
[0045] In step S103, based on the priorities of all first subtasks and all second subtasks, each G is dynamically allocated. T G calculates the first subtasks corresponding to the sequence and each F T The F calculation sequence corresponds to multiple second subtasks to multiple matrix multiplication modules, and based on the allocation results, the FPGA accelerator is used to perform bundle adjustment optimization calculations.
[0046] In some embodiments, the priority of any first subtask is higher than the priority of all second subtasks.
[0047] It should be understood that the priority strategy is that the previously generated subtasks take precedence over the subsequently generated subtasks, i.e. T The subtasks of the G computation sequence take precedence over those of F. T F calculates the subtask of the sequence. Under this strategy, G can be effectively reduced T G calculates the idle time of PE processing units in the sequence generation process and the subsequent small-block matrix multiplication, improving resource utilization efficiency.
[0048] Furthermore, each G is dynamically allocated according to the priorities of all first subtasks and all second subtasks. T G calculates the first subtasks corresponding to the sequence and each F T F calculates the multiple second subtasks corresponding to the sequence to multiple matrix multiplication modules (such as Figure 2 PE in the cluster), and based on the allocation results, use the FPGA accelerator to perform bundle adjustment optimization calculations.
[0049] Optionally, in some embodiments, when using the FPGA accelerator to perform bundle adjustment optimization calculation based on the allocation result, it includes: based on each G T G calculates the first subtasks corresponding to the sequence and each F T The multiple second subtasks corresponding to the F calculation sequence are subjected to bundle adjustment optimization calculation using the Scher elimination processing algorithm and the FPGA accelerator, wherein the Scher elimination processing algorithm is:
[0050] S=F T FG T G;
[0051] Where S is the result of Scher's elimination.
[0052] In the Scher elimination process, considering that the number of rows in the Jacobin matrix of each set of input data is between 1 and n, the amount of calculation of the generated F matrix is in the order of O(n), and the amount of calculation of the generated G matrix is in the order of O(n). 2 ), where n is the number of spatial point tracking frames of the current group of data. Depending on the task scenario, n is always changing dynamically.
[0053] In order to enable those skilled in the art to further understand the calculation method of the bundled adjustment calculation architecture of the embodiment of the present application, the following is described in detail in conjunction with specific embodiments. Figure 3 shown.
[0054] (1) The user first prepares the visual sensor measurement data required for the BA optimization process in the CPU software interface.
[0055] (2) The user controls the GPIO peripheral to select the “Jacobin Matrix Generation” module in the FPGA and inputs the measurement data through DMA.
[0056] (3) The user waits for the Jacobin matrix generation module to return the Jacobin matrix data to the CPU via DMA, and performs customized preprocessing.
[0057] (4) The user controls the GPIO peripheral to select the "load dynamic allocation and calculation" module in the FPGA, inputs the Jacobin matrix data through DMA, and waits for the final result data to be returned.
[0058] According to the calculation method of the bundled adjustment calculation architecture proposed in the embodiment of the present application, multiple G T G calculation sequence and multiple F T F calculates the sequence, and each G T G calculation sequence is divided into multiple first subtasks, and each F TThe F calculation sequence is divided into multiple second subtasks, and each G is dynamically allocated based on the priority of all first subtasks and the priority of all second subtasks. T G calculates the first subtasks corresponding to the sequence and each F T The multiple second subtasks corresponding to the F calculation sequence are allocated to multiple matrix multiplication modules, and based on the allocation results, the FPGA accelerator is used to perform bundled adjustment optimization calculations. In this way, the problems of low resource utilization efficiency and high overhead in the current BA optimization accelerator solution are solved, and an efficient computing architecture is designed for the BA optimization process in the autonomous positioning task. It is deployed as a CPU-callable hardware accelerator based on FPGA to maximize the utilization of the processing unit PE, so as to complete the BA optimization calculation more efficiently while occupying less hardware resources. In addition, since the computing load is dynamically divided and allocated, the different scales of the computing load in different scene tasks will not lead to a decrease in hardware computing efficiency.
[0059] Next, a computing device according to the bundled adjustment computing architecture proposed in an embodiment of the present application is described with reference to the accompanying drawings.
[0060] Figure 4 It is a block diagram of a computing device for bundling and adjusting a computing architecture according to an embodiment of the present application.
[0061] The bundled adjustment computing architecture includes a field programmable gate array FPGA accelerator, and the computing device 10 of the bundled adjustment computing architecture includes: an acquisition module 100, a division module 200 and a computing module 300.
[0062] The acquisition module 100 is used to acquire multiple G T G calculation sequence and multiple F T F calculation sequence; division module 200, for each G T G calculation sequence is divided into multiple first subtasks, and each F T F calculation sequence is divided into a plurality of second subtasks; the calculation module 300 is used to dynamically allocate each G based on the priority of all first subtasks and the priority of all second subtasks. T G calculates the first subtasks corresponding to the sequence and each F T The F calculation sequence corresponds to multiple second subtasks to multiple matrix multiplication modules, and based on the allocation results, the FPGA accelerator is used to perform bundle adjustment optimization calculations.
[0063] Optionally, in some embodiments, the acquisition module 100 is further used to: acquire the visual sensor measurement data of the CPU end, and generate a Jacobin matrix based on the visual sensor measurement data; merge the matrix rows belonging to the same spatial point in the Jacobin matrix to obtain multiple groups of Chunk blocks; send the multiple groups of Chunk blocks to the preset communication module to obtain multiple FT F calculation sequence, and send the Chunk block from the preset communication module to the FPGA accelerator to obtain multiple G T G calculates the sequence.
[0064] Optionally, in some embodiments, when using the FPGA accelerator to perform bundle adjustment optimization calculation based on the allocation result, the computing module 300 is further used to: T G calculates the first subtasks corresponding to the sequence and each F T The multiple second subtasks corresponding to the F calculation sequence are subjected to bundle adjustment optimization calculation using the Scher elimination processing algorithm and the FPGA accelerator, wherein the Scher elimination processing algorithm is:
[0065] S=F T FG T G;
[0066] Where S is the result of Scher's elimination.
[0067] Optionally, in some embodiments, the priority of any first subtask is higher than the priority of all second subtasks.
[0068] Optionally, in some embodiments, each G T The number of the first subtasks corresponding to the G calculation sequence is greater than that of each F T F calculates the number of multiple second subtasks corresponding to the sequence.
[0069] It should be noted that the above explanation of the embodiment of the calculation method of the bundled adjustment calculation architecture is also applicable to the calculation device of the bundled adjustment calculation architecture of this embodiment, and will not be repeated here.
[0070] According to the computing device of the bundled adjustment computing architecture proposed in the embodiment of the present application, multiple G T G calculation sequence and multiple F T F calculates the sequence, and each G T G calculation sequence is divided into multiple first subtasks, and each F T The F calculation sequence is divided into multiple second subtasks, and each G is dynamically allocated based on the priority of all first subtasks and the priority of all second subtasks. T G calculates the first subtasks corresponding to the sequence and each F TThe multiple second subtasks corresponding to the F calculation sequence are allocated to multiple matrix multiplication modules, and based on the allocation results, the FPGA accelerator is used to perform bundled adjustment optimization calculations. This solves the problems of low resource utilization efficiency and high overhead in the current BA optimization accelerator solution, maximizes the utilization of the processing unit PE, and completes the BA optimization calculation more efficiently while occupying fewer hardware resources. In addition, since the calculation load is dynamically divided and allocated, the different scales of the calculation load in different scenario tasks will not lead to a decrease in hardware calculation efficiency.
[0071] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0072] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0073] When the processor 502 executes the program, the calculation method of the bundled adjustment calculation architecture provided in the above embodiment is implemented.
[0074] Furthermore, the electronic device further comprises:
[0075] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0076] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0077] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0078] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0079] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0080] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0081] An embodiment of the present application also provides a computer program product, on which a computer program is stored, and when the program is executed by a processor, the calculation method of bundling and adjusting the computing architecture as described above is implemented.
[0082] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0083] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0084] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0085] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer program product for use with an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer program product" can be any device that can contain, store, communicate, propagate or transmit a program for use with an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer program products (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). Furthermore, the computer program product may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example by optically scanning the paper or other medium and then editing, interpreting or, if necessary, processing in another suitable manner, and then storing it in a computer memory.
[0086] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0087] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer program product, which, when executed, includes one or a combination of the steps of the method embodiment.
[0088] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer program product.
[0089] The computer program product mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A computing method for bundling and adjusting a computing architecture, characterized in that: The bundled adjustment computing architecture includes a field programmable gate array (FPGA) accelerator, wherein the method includes the following steps: Get multiple G T G calculation sequence and multiple F T F calculation sequence; Each G T G calculation sequence is divided into multiple first subtasks, and each F T F calculation sequence is divided into multiple second subtasks; Based on the priorities of all the first subtasks and the priorities of all the second subtasks, each G is dynamically allocated T G calculation sequence corresponds to multiple first subtasks and each F T The F calculation sequence corresponds to multiple second subtasks to multiple matrix multiplication modules, and based on the allocation result, the FPGA accelerator is used to perform bundle adjustment optimization calculation.
2. The method according to claim 1, characterized in that The acquisition of multiple G T G calculation sequence and multiple F T F calculation sequence, including: Acquire the visual sensor measurement data from the CPU, and generate a Jacobin matrix based on the visual sensor measurement data; Merging the matrix rows belonging to the same spatial point in the Jacobin matrix to obtain multiple groups of Chunks; Send multiple groups of Chunk blocks to the preset communication module to obtain the multiple F T F calculation sequence, and send the Chunk block from the preset communication module to the FPGA accelerator to obtain the multiple G T G calculates the sequence.
3. The method according to claim 1, characterized in that When the FPGA accelerator is used to perform bundle adjustment optimization calculation based on the allocation result, it includes: Based on each G T G calculation sequence corresponds to multiple first subtasks and each F T The plurality of second subtasks corresponding to the F calculation sequence are subjected to bundle adjustment optimization calculation using the Scher elimination processing algorithm and the FPGA accelerator, wherein the Scher elimination processing algorithm is: S=F T F-G T G; Where S is the result of Scher's elimination.
4. The method according to claim 3, characterized in that The priority of any first subtask is higher than the priority of all second subtasks.
5. The method according to claim 1, characterized in that Each G T The number of the first subtasks corresponding to the G calculation sequence is greater than that of each F T F calculates the number of multiple second subtasks corresponding to the sequence.
6. A computing device with a bundled adjustment computing architecture, characterized in that: The bundled adjustment computing architecture includes a field programmable gate array FPGA accelerator, including: Acquisition module, used to obtain multiple G T G calculation sequence and multiple F T F calculation sequence; Partition module, used to divide each G T G calculation sequence is divided into multiple first subtasks, and each F T F calculation sequence is divided into multiple second subtasks; A calculation module is used to dynamically allocate each G based on the priorities of all the first subtasks and the priorities of all the second subtasks. T G calculation sequence corresponds to multiple first subtasks and each F T The F calculation sequence corresponds to multiple second subtasks to multiple matrix multiplication modules, and based on the allocation result, the FPGA accelerator is used to perform bundle adjustment optimization calculation.
7. The device according to claim 6, characterized in that The acquisition module is further used for: Acquire the visual sensor measurement data from the CPU, and generate a Jacobin matrix based on the visual sensor measurement data; Merging the matrix rows belonging to the same spatial point in the Jacobin matrix to obtain multiple groups of Chunks; Send multiple groups of Chunk blocks to the preset communication module to obtain the multiple F T F calculation sequence, and send the Chunk block from the preset communication module to the FPGA accelerator to obtain the multiple G T G calculates the sequence.
8. The device according to claim 6, characterized in that When the FPGA accelerator is used to perform bundle adjustment optimization calculation based on the allocation result, the calculation module is further used to: Based on each G T G calculation sequence corresponds to multiple first subtasks and each F T The plurality of second subtasks corresponding to the F calculation sequence are subjected to bundle adjustment optimization calculation using the Scher elimination processing algorithm and the FPGA accelerator, wherein the Scher elimination processing algorithm is: S=F T F-G T G; Where S is the result of Scher's elimination.
9. An electronic device, characterized in that: Including memory and processor; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the computing method of the bundled adjustment computing architecture as described in any one of claims 1-5.
10. A computer program product, wherein the computer-readable storage medium stores a computer program, characterized in that: When the program is executed by a processor, the computing method of the bundled adjustment computing architecture as described in any one of claims 1-5 is implemented.
