Task processing method and device, electronic device and storage medium

By building a panorama to connect operating units and resource units, a full-chain algorithm solution is formed, which solves the problem that single module technology is difficult to handle in complex scenes and achieves rapid and efficient processing of complex tasks.

CN113342488BActive Publication Date: 2024-09-13SHANGHAI SENSETIME INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110570235.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-25
Publication Date
2024-09-13
Estimated Expiration
2041-05-25

AI Technical Summary

Technical Problem

In complex scenarios, existing single-module algorithms are difficult to effectively solve problems, because the complexity, diversity, and multi-modularity of the scene cannot be converted into a single basic task, and single-module technology cannot effectively handle it.

Method used

By building a panorama and connecting multiple operating units and resource units to form a full-chain algorithm solution, the panorama can be trained and reasoned to achieve rapid processing of complex tasks.

Benefits of technology

It realizes fast and convenient processing of tasks in complex scenes, improves the speed and efficiency of the processing process, and can efficiently handle tasks such as classification and recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113342488B
    Figure CN113342488B
Patent Text Reader

Abstract

The present application provides a task processing method and device, electronic device and storage medium; the method includes: obtaining a task to be processed; determining an operation unit and a resource unit for implementing the task to be processed; wherein the operation unit at least includes a processing operation on the task to be processed, and the resource unit includes data input and / or output by the operation unit during the execution of the processing operation; based on the operation unit and the resource unit of the task to be processed, a panoramic view of the processing flow of the task to be processed is constructed; based on the panoramic view, the task to be processed is processed to obtain a processing result. Through the present application, tasks in complex scenarios can be quickly solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing technology, and relate to but are not limited to a task processing method and device, an electronic device, and a storage medium. Background Art

[0002] In the field of computer vision, related technologies use a single algorithm module to solve problems in real-world scenarios. However, in complex scenarios, due to the complexity, diversity, multi-module, and multi-modality of the entire pipeline, the problems in the scenario cannot be converted into a single basic task, so the single-module algorithm in the related technology cannot effectively solve the problems in complex scenarios. Summary of the invention

[0003] The embodiment of the present application provides a technical solution for task processing.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a task processing method, the method comprising:

[0006] Get pending tasks;

[0007] Determine an operation unit and a resource unit for implementing the task to be processed; wherein the operation unit at least includes a processing operation for the task to be processed, and the resource unit includes data input and / or output by the operation unit during the execution of the processing operation;

[0008] Based on the operation unit of the task to be processed and the resource unit, construct a panoramic view including the processing flow of the task to be processed;

[0009] Based on the panoramic image, the task to be processed is processed to obtain a processing result.

[0010] In some embodiments, there are at least two operation units and at least two resource units, and the panoramic map includes a training panoramic map. The operation unit and the resource unit based on the task to be processed are used to construct a panoramic map including the processing flow of the task to be processed, including: determining a first resource unit as the input of each operation unit and a second resource unit as the output of each operation unit in at least two resource units; connecting each operation unit with the corresponding first resource unit and second resource unit to obtain the training panoramic map. In this way, multiple operation units and resource units can be quickly and conveniently connected to construct an inference panoramic map including a full-chain algorithm solution.

[0011] In some embodiments, the panorama includes a first inference panorama, and the panorama including the processing flow of the task to be processed is constructed based on the operation unit and the resource unit of the task to be processed, including: determining the target operation unit and the target resource unit that match the processing flow of the task to be processed in the front-end panorama file; wherein the front-end panorama file includes at least two operation units and at least two resource units; based on the target operation unit and the target resource unit, constructing the first inference panorama that does not include workflow data. In this way, multiple virtualization nodes are connected in series to form an inference panorama that can quickly complete the processing of the task to be processed.

[0012] In some embodiments, the panorama includes a first inference panorama, and the panorama including the processing flow of the task to be processed is constructed based on the operation unit and the resource unit of the task to be processed, including: determining the target operation unit and the target resource unit that match the processing flow of the task to be processed in the training panorama of the panorama; and constructing the first inference panorama that does not include workflow data based on the target operation unit and the target resource unit. In this way, by selecting the target operation unit and the target resource unit in the training panorama, the first inference panorama can be constructed more quickly and conveniently.

[0013] In some embodiments, after connecting each operation unit and the corresponding first resource unit and second resource unit to obtain the training panorama, the method further includes: training the operation unit including the model to be trained in the training panorama; based on the operation unit including the trained model in the training panorama and the first reasoning panorama, determining the second reasoning panorama for reasoning the task to be processed; wherein the trained model is obtained by training the model to be trained. In this way, after the training is completed and the corresponding different module models are obtained, they are directly imported into the reasoning map for reasoning, which can quickly realize the processing of the tasks to be processed in complex scenes.

[0014] In some embodiments, the training of the operation units including the model to be trained in the training panorama includes: converting the training panorama of the front end into the training intermediate result graph of the back end; constructing a first operation graph with a starting point based on the preset graph template corresponding to each operation unit in the training intermediate result graph; wherein the preset graph template corresponding to each operation unit is set by the front end based on the task; the starting point of the first operation graph is any operation unit in the training intermediate result graph; converting the first operation graph into a training workflow capable of training the function of the first operation graph; and training the operation units of the model to be trained based on the training workflow. In this way, based on the operation units in the directed destructured graph, combined with the preset graph templates corresponding to each operation unit, a workflow that can ultimately be run by the back end is generated, which can achieve orderly training of multiple models in complex scenarios.

[0015] In some embodiments, the training of the operation unit of the model to be trained based on the training workflow includes: determining the logical relationship between different operation units in the first operation diagram based on the training workflow; and training the operation unit of the model to be trained according to the logical relationship. In this way, by analyzing the logical relationship between multiple operation units, the training of the model to be trained in the operation unit can be more accurately and reasonably achieved.

[0016] In some embodiments, the determining of the second inference panorama for inference of the task to be processed based on the operation unit including the trained model in the training panorama and the first inference panorama includes: determining the target operation unit matching the operation unit including the trained model in the training panorama in the first inference panorama; importing the trained model into the matching target operation unit to obtain the second inference panorama. In this way, after the training is completed and the corresponding different models are obtained, they are directly imported into the inference map for inference use, which improves the speed of building the entire processing flow.

[0017] In some embodiments, the processing of the task to be processed based on the panoramic map to obtain the processing result includes: inputting the task to be processed into a second reasoning panoramic map in the panoramic map; and processing the task to be processed based on the second reasoning panoramic map to obtain the processing result. In this way, by assembling the trained model output by the trained operation unit into a second reasoning panoramic map that can realize the entire processing flow, it can be conveniently called directly by the back-end task scheduling tool.

[0018] In some embodiments, the processing of the task to be processed based on the second reasoning panorama to obtain the processing result includes: converting the second reasoning panorama of the front end into the reasoning intermediate result graph of the back end; constructing a second operation graph with a starting point based on the preset graph template corresponding to each operation unit in the reasoning intermediate result graph; wherein the starting point of the second operation graph is any operation unit in the reasoning intermediate result graph; converting the second operation graph into a reasoning workflow; and using the reasoning workflow to process the task to be processed to obtain the processing result. In this way, by translating the reasoning graph of the front end into a reasoning workflow and seamlessly connecting nodes with different functions, the reasoning function of the entire processing process can be completed.

[0019] In some embodiments, when the task to be processed is a classification and recognition task, the operation unit at least includes: a detection data set annotation unit, a cutout unit, a detection unit, a classification data set annotation unit and a classification unit; the resource unit at least includes: data input and / or output by the detection data set annotation unit during the annotation operation, data input and / or output by the cutout unit during the cutout operation, data input and / or output by the detection unit during the detection operation, data input and / or output by the classification data set annotation unit during the annotation operation, and data input and / or output by the classification unit during the classification operation. In this way, the classification and recognition task is processed, and the entire solution processing flow is quickly and conveniently built while the task processing can be efficiently realized.

[0020] The present application provides a task processing device, the device comprising:

[0021] A first acquisition module, used to acquire tasks to be processed;

[0022] A first determination module is used to determine an operation unit and a resource unit for implementing the task to be processed; wherein the operation unit at least includes a processing operation for the task to be processed, and the resource unit includes data input and / or output by the operation unit during the execution of the processing operation;

[0023] A first construction module, configured to construct a panoramic view including a processing flow of the task to be processed based on the operation unit of the task to be processed and the resource unit;

[0024] The first processing module is used to process the task to be processed based on the panoramic image to obtain a processing result.

[0025] An embodiment of the present application provides a computer storage medium, on which computer executable instructions are stored. After the computer executable instructions are executed, the above-mentioned task processing method can be implemented.

[0026] An embodiment of the present application provides a computer device, which includes a memory and a processor. The memory stores computer executable instructions, and the processor can implement the above-mentioned task processing method when running the computer executable instructions on the memory.

[0027] The embodiment of the present application provides a task processing method and device, an electronic device and a storage medium. For the acquired tasks to be processed, first, the operation units and resource units that implement the tasks to be processed are analyzed; then, the execution order between the operation units and the input / output relationship between the operation units and the resource units are analyzed; based on this, the operation units of the tasks to be processed and the resource units are connected to construct a panoramic view of the processing flow of the tasks to be processed; then, based on the panoramic view, the tasks to be processed can be quickly processed. In this way, based on the concept of the panoramic view, different operation units can be quickly connected in series, so as to achieve the effect of overall construction of the entire processing flow, so as to effectively solve the tasks to be processed in complex scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of the implementation flow of the task processing method provided in the embodiment of the present application;

[0029] Figure 2 A schematic diagram of another implementation flow of the task processing method provided in an embodiment of the present application;

[0030] Figure 3 A schematic diagram of the composition structure of a panoramic image translator provided in an embodiment of the present application;

[0031] Figure 4 A schematic diagram of the implementation process of the panoramic image training diagram provided in the embodiment of the present application;

[0032] Figure 5 This is a schematic diagram of the structure of the task processing device according to an embodiment of the present application;

[0033] Figure 6 A schematic diagram of the composition structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the invention will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0035] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0036] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0038] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0039] 1) Concatenation, in the embodiments of the present application, refers to connecting the processing flows of different tasks together.

[0040] 2) Application Container Engine (Docker) is an open source application container engine that allows developers to package their applications and dependent packages into a portable image, and then publish it to any popular operating system machine, and can also achieve virtualization. The container is completely sandboxed and there is no interface between them.

[0041] The following describes an exemplary application of the task processing device provided by the embodiment of the present application. The device provided by the embodiment of the present application can be implemented as various types of user terminals such as a laptop computer with data processing functions, a tablet computer, a desktop computer, a mobile device (for example, a personal digital assistant, a dedicated messaging device, a portable gaming device), etc., and can also be implemented as a server. The following describes an exemplary application when the device is implemented as a terminal or a server.

[0042] The method can be applied to a computer device, and the functions implemented by the method can be implemented by calling a program code through a processor in the computer device. Of course, the program code can be stored in a computer storage medium. It can be seen that the computer device at least includes a processor and a storage medium.

[0043] The present application embodiment provides a task processing method, such as Figure 1 As shown, combined with Figure 1 The following steps are explained:

[0044] Step S101, obtaining tasks to be processed.

[0045] In some embodiments, the task to be processed may be a data processing task for any complex scene, which requires the combination of multiple different algorithm modules to be implemented. For example, scenes related to the fields of industrial production, aviation and navigation, and agricultural product packaging. The task to be processed may be a task of image recognition for images in complex scenes. For example, in an industrial production scene, for the identification of defects in certain parts, the image information has a very complex background. Alternatively, in an aviation and navigation scene, the task to be processed may be the classification and identification of ships at sea. The task to be processed may be actively acquired. For example, the task to be processed is to identify defects in parts of images in an industrial production scene. The task to be processed may be an image acquired by an image collector, or an image sent by other devices.

[0046] Step S102: determining an operation unit and a resource unit for implementing the task to be processed.

[0047] In some embodiments, the operation unit at least includes processing operations on the task to be processed, and the resource unit includes data input and / or output by the operation unit in the process of executing the processing operation. The algorithm module and data processing module required for the task to be processed are realized by analysis; each operation unit is a virtualized node after encapsulating an algorithm module; each resource unit is a virtualized node after encapsulating a data processing module, and the data processing module provides input data for a certain algorithm module, or processes the output data of another algorithm module. In some possible implementations, the resource unit is the input of an operation unit; in some implementations, a resource unit can be the input or output of an operation unit, or a resource unit is simultaneously the output of the previous operation unit and the input of the next operation unit.

[0048] For example, if the task to be processed is a component defect recognition task, then the algorithm module required to implement the task to be processed, that is, the operation unit, includes an image detection operation unit and a classification operation unit; the corresponding resource unit is the specific data involved in the detection and classification process. The sequence of the detection operation unit and the data involved in the detection operation unit, and the classification operation unit and the data involved in the classification operation unit in the process of processing the task to be processed is used as the association relationship between the operation unit and the resource unit; according to the association relationship, multiple operation units and multiple resource units are connected together to form a panoramic view of implementing the component defect recognition task.

[0049] In some possible implementations, the pending task may be set by the user or obtained from the background, and the functional module may be an operation unit and a resource unit selected by the user through a drag operation on the front-end interface based on the pending task.

[0050] Step S103: constructing a panoramic view of the processing flow of the task to be processed based on the operation unit of the task to be processed and the resource unit.

[0051] In some embodiments, the panorama includes a training panorama and / or an inference panorama, and the panorama can be formed by dragging on the front-end canvas. Among the operation units and resource units included in the panorama file of the front-end, the operation units and resource units that implement the tasks to be processed are determined; and according to the execution order between the operation units and resource units, the connection relationship between the multiple operation units and resource units is determined. According to the connection relationship, on the front-end canvas, multiple operation units and resource units are connected by dragging operations to form a panorama.

[0052] The panorama is a complete solution for AI model generation built by users on the canvas, including functions such as model training, evaluation, and reasoning logic concatenation. Among them, the canvas is a section on the AI ​​training platform where users drag different components to build the entire process of model production.

[0053] Step S104: based on the panoramic image, the task to be processed is processed to obtain a processing result.

[0054] In some embodiments, by translating the front-end panoramic image into the back-end workflows of the training and reasoning stages at the same time, after the task processing network module is trained based on the workflow of the training stage, the model obtained after the training can be imported into the reasoning stage of the panoramic image, so that the workflow of the reasoning stage is used to process the task to be processed and obtain the processing result. For example, the task to be processed is the defect recognition task of the parts in the image. The panoramic image includes a training stage and a reasoning stage. In the training stage, the detection model and the classification model in the panoramic image are trained; the trained detection model and the trained classification model are applied to the reasoning stage of the panoramic image; in the reasoning stage, the trained detection model is used to detect the image, and based on the detection result, the trained classification model is used for recognition, so as to complete the defect recognition of the parts in the image.

[0055] In an embodiment of the present application, for the acquired tasks to be processed, first, the operation units and resource units that implement the tasks to be processed are analyzed; then, the execution order between the operation units and the input / output relationship between the operation units and the resource units are analyzed; based on this, the operation units of the tasks to be processed and the resource units are connected to construct a panoramic view of the processing flow of the tasks to be processed; then, based on the panoramic view, the tasks to be processed can be quickly processed. In this way, based on the concept of the panoramic view, different operation units can be quickly connected in series, so as to achieve the effect of building the entire processing flow as a whole, so as to effectively solve the tasks to be processed in complex scenarios.

[0056] In some embodiments, the operation unit and the resource unit are both at least two. When the panorama includes a training panorama, on the front-end canvas, different operation units and the resource units are connected according to the execution order of the operation units to form a training panorama, that is, the above step S103 can be performed as follows: Figure 2 The steps shown achieve:

[0057] Step S201: Determine, among at least two resource units, a first resource unit as an input of each operation unit and a second resource unit as an output of each operation unit.

[0058] These multiple operation units can be more important modules in the process of realizing the task to be processed, or they can be all algorithm modules. For example, since the functions of multiple operation units overlap, only one operation unit that realizes the function can be retained, thereby reducing the number of modules and improving the efficiency of creating a panoramic map. In the process of constructing a training panoramic map, each operation unit is connected to at least one resource unit. If an operation unit has both input and output, then its input and output are both resource units; if an operation unit only has input, then its input is a resource unit; if an operation unit only has output, then its input is a resource unit. For each operation unit, analyze the data output by the operation unit and the data input to the operation unit, that is, the first resource unit and the second resource unit.

[0059] Step S202, connecting each operation unit with the corresponding first resource unit and second resource unit to obtain the training panorama.

[0060] In some embodiments, in the process of processing the task to be processed, the causal relationship of the execution order of multiple operation units is analyzed; through the causal relationship of the execution order, the execution order between the multiple operation units can be determined, so that the first resource unit and the second resource unit as the input and output of the operation unit can be determined. The position of the training panorama. By analyzing the connection relationship between different operation units, these multiple operation units and the corresponding resource units are built to form a training panorama of the entire process of executing and processing the task to be processed. The foreground image can be formed by the user dragging multiple functional modules on the front-end interface, or it can be automatically built based on the connection relationship. In the case where the task to be processed is a model training task, the panorama may include only the training panorama. After executing the above step S202, step S104a is entered to process the task to be processed based on the training panorama to obtain the processing result. In this way, by following the execution order of multiple operation units, the connection order between the multiple operation units and the corresponding resource units can be accurately determined. Different operation units and resource units can be connected in series according to the execution order of different operation units. Multiple operation units and resource units can be connected quickly and conveniently to build a reasoning panorama including a full-chain algorithm solution.

[0061] In some embodiments, when the panorama includes the first inference panorama, the first inference panorama may be a panorama that does not include workflow data and is built on the front end, that is, the above step S103 may also be implemented in the following two ways:

[0062] Method 1: Implemented through steps S131 and S132 (not shown):

[0063] Step S131, determining the target operation unit and the target resource unit that match the processing flow of the task to be processed in the front-end panoramic map file.

[0064] In some embodiments, the front-end panoramic file includes at least two operation units and at least two resource units. The front-end panoramic file also includes the connection relationship between the operation unit and the resource unit, such as a link. The operation unit may include operation units such as training, reasoning, and evaluation of the corresponding algorithm module, and may also include the name of the resource unit connected to the operation unit. The resource unit may include data entities in the model training or reasoning process, and may also include data set interface functions, input and output data formats, image sizes, etc. First, for each task to be processed, the user analyzes the target operation unit and target resource unit required to implement the task to be processed on the front end, and then drags the target operation unit and target resource unit from the front-end panoramic file on the canvas.

[0065] For example, if the task to be processed is a defect recognition task, the operation units included are: an operation unit for implementing the data input function, an operation unit for implementing the detection data set annotation function, an operation unit for implementing the target cutout function, an operation unit for implementing the detection model training function, an operation unit for implementing the result conversion data function, an operation unit for implementing the classification model training function, etc. The algorithm module is divided into single-point operation units using Docker virtual service technology, and each is encapsulated into a Docker virtual image as a virtualized node in the panorama; that is, these operation units are encapsulated into Docker virtualized nodes, thereby obtaining data set nodes, detection annotation nodes, detection model training nodes, result conversion data nodes, classification model training nodes, etc. Since there are repeated data set nodes between the detection operation unit and the classification operation unit, only one data set node is retained among the multiple virtual nodes finally obtained.

[0066] Step S132: construct the first reasoning panorama that does not include workflow data based on the target operation unit and the target resource unit.

[0067] In some embodiments, according to the connection relationship between different operating units, the connection relationship between sub-units within different functional operating units can be determined, thereby determining the connection relationship between the virtualization nodes corresponding to each sub-functional module. Based on this, multiple virtualization nodes are connected in series to form an inference panorama that can complete the processing of the tasks to be processed.

[0068] In a specific example, taking the task to be processed as device defect identification as an example, at least two operation units include: a detection operation unit and a classification operation unit. In the process of defect identification, the execution order of the detection operation unit and the classification operation unit is to detect the image first, and then classify it based on the detection result, that is, the detection operation unit is in front and the classification operation unit is in the back; based on this, the detection operation unit, the classification operation unit and the corresponding resource unit are connected in series to obtain the inference panorama.

[0069] In the above-mentioned step S131 and step S132, by selecting the target operation unit and the target resource unit from the panorama file, the product-level task implementation process can be connected in series, thereby more efficiently constructing the first reasoning panorama including the entire processing flow.

[0070] Method 2: Implemented through steps S133 and S134 (not shown):

[0071] Step S133, in the training panorama of the panorama, determining a target operation unit and a target resource unit that match the processing flow of the task to be processed.

[0072] The panorama includes a training panorama built at the front end, and the training panorama includes the model to be trained and sample data for implementing the task to be processed. In order to obtain an inference panorama that can process the task to be processed, the operation unit and resource unit that can be applied to the inference stage can be selected in the training panorama; for example, the task to be processed is the defect recognition of the device; the training panorama includes: training sample sets, detection models to be trained and classification models to be trained, etc.; in the training panorama, the detection model to be trained and the classification model to be trained that will be applied to the inference stage are selected.

[0073] Step S134: construct the first reasoning panorama that does not include workflow data based on the target operation unit and the target resource unit.

[0074] According to the target operation unit and target resource unit selected in the reasoning panorama, and the connection relationship between the target operation unit and the target resource unit in the training panorama, the target operation unit and the target resource unit are connected in series on the front-end canvas to obtain a first reasoning panorama that does not contain workflow data. In this way, by selecting the target operation unit and the target resource unit in the training panorama, the first reasoning panorama can be built more quickly and conveniently.

[0075] In some embodiments, after the front end builds a complete training panorama, the trained model that can be applied to the reasoning stage is obtained by training the model to be trained in the training panorama, that is, after step S202, the following steps are also included:

[0076] The first step is to train the operation unit including the model to be trained in the training panorama.

[0077] In some possible implementations, a panorama translator is used to translate the training panorama at the front end into a training workflow at the back end, thereby implementing a training process for an operation unit including a model to be trained. This process may be implemented by:

[0078] First, the training panorama at the front end is converted into an intermediate training result map at the back end.

[0079] The training intermediate result graph is stored in the form of an intermediate file, and each operation unit in the intermediate file has a resource unit having an input relationship and / or an output relationship with each of the operation units.

[0080] One possible implementation method is to merge the input resource unit or output resource unit of each operation unit into the corresponding operation unit for all operation units in the training panorama file; at the same time, based on the connection relationship between the operation units in the front-end display diagram, determine the connection relationship between two operation units that have an input-output relationship with the same resource unit, save all operation units in the training panorama file and the connection relationship between every two operation units, and obtain the converted intermediate file. In this way, the converted intermediate file can conveniently store the content of the training panorama and provide support for the subsequent conversion of other functional diagrams.

[0081] One possible implementation method is to merge the input resource unit or output resource unit of each operation unit into the corresponding operation unit for all operation units in the training panorama; at the same time, based on the connection relationship between the operation units in the training panorama, determine the connection relationship between two operation units that have an input-output relationship with the same resource unit, and merge the connection relationship into the properties of the corresponding operation unit, directly store the properties of all operation units, and obtain the converted intermediate file. In this way, the converted intermediate file can conveniently store the content of the training panorama, can connect the training panorama, and can meet the needs of conversion into other diagrams, solving the problem of difficulty in converting and translating the training panorama into a workflow diagram that can be run on the back end.

[0082] Secondly, based on the preset graph template corresponding to each operation unit in the training intermediate result graph, a first operation graph with a starting point is constructed.

[0083] Here, the preset graph template corresponding to each of the operation units is set by the front end based on the task; the starting point of the first operation graph is any operation unit in the training intermediate result graph. The intermediate result graph is a directed acyclic graph (DAG), which indicates that all the operation units in the intermediate result graph each complete a part of the entire task, and each operation unit satisfies the constraints of a specific execution order, and the start of some operation units must be after the execution of other operation units. In this way, it can be determined that the task composed of all operation units can be carried out smoothly within the effective time. The starting point of the first operation graph can be set according to the training task that needs to be performed; for example, the training task that needs to be performed is to train the detection model, and the starting point is the sample data set input node.

[0084] Again, the first operation diagram is converted into a training workflow capable of training the function of the first operation diagram.

[0085] Taking the defect recognition task in industrial scenarios as an example, users need to detect the parts first, and then classify whether there are defects in the parts. In this way, the training panorama includes the detection model to be trained and the classification model to be trained, and the data for training the classification model depends on the inference results of the detection model. Therefore, when the task to be processed is a defect recognition task, the front end of the model training platform reserves the detection training workflow template and detection evaluation workflow template related to the object detection model, as well as the detection training workflow template and detection evaluation workflow template related to the image classification model.

[0086] Finally, based on the training workflow, the operation units of the model to be trained are trained.

[0087] Here, after translating the front-end training panorama into the back-end training workflow, multiple operation units are trained according to the logical relationship between each operation unit, so that each operation unit outputs the corresponding trained model. In this way, based on the operation units in the directed unstructured graph, combined with the preset graph templates corresponding to each operation unit, a workflow that can be run by the back-end is generated, which can realize the orderly training of multiple models in complex scenarios.

[0088] In some possible implementations, first, based on the training workflow, determine the logical relationship between different operation units in the first operation diagram. For example, the operation units in the first operation diagram include: a detection data set annotation unit and a detection model training unit, etc. According to the execution sequence relationship between the detection data set annotation unit and the detection model training unit in the training process, the sample data set is annotated based on the detection data set annotation unit; then, the annotated sample data set is used to train the detection model to be trained in the detection model training unit, thereby realizing the training of the operation unit of the model to be trained. In this way, by analyzing the logical relationship between multiple operation units, the training of the model to be trained in the operation unit can be realized more accurately and reasonably.

[0089] In the second step, based on the operation units including the trained model in the training panorama and the first reasoning panorama, a second reasoning panorama for reasoning the task to be processed is determined.

[0090] In some possible implementations, the trained model is obtained by training the model to be trained. After the training of the model to be trained in the training panorama is completed, the trained model can be directly applied to the first reasoning panorama, so that the first reasoning panorama includes the workflow data for reasoning, thereby realizing reasoning for the task to be processed. In this way, after the training is completed and the corresponding different module models are obtained, they are directly imported into the reasoning graph for reasoning, which can quickly realize the processing of the tasks to be processed in complex scenes.

[0091] In other embodiments, if only a training panorama is built on the front end, then after the training of the model to be trained in the training panorama is completed, the operation units and resource units that can process the tasks to be processed can be selected in the trained training panorama, and based on such operation units and resource units, a second reasoning panorama is formed.

[0092] In some embodiments, after translating the training panorama of the front end into the running map of the back end, the training process of the model to be trained in the training panorama is realized by translating it into a training workflow; the trained model is imported into the first reasoning panorama that has been built on the front end but has no data, and a second reasoning panorama that can be used to reason about the task to be processed is obtained; this can be achieved by the following steps:

[0093] The first step is to determine, in the first reasoning panorama, a target operation unit that matches an operation unit including a trained model in the training panorama.

[0094] Here, first, in the training panorama, the operation unit corresponding to the trained model is determined; then, from the first reasoning panorama, the operation unit that does not include the workflow data is determined. For example, in the first reasoning panorama, the target operation unit including the detection model to be trained is determined.

[0095] The second step is to import the trained model into the matching target operation unit to obtain the second reasoning panorama.

[0096] Here, the workflow data of the trained model is imported into the first reasoning panorama to obtain the second reasoning panorama that can process the task to be processed. For example, the detection model trained in the training panorama is imported into the operation unit of the first reasoning map for reasoning. In this way, after the training is completed and the corresponding different models are obtained, they are directly imported into the reasoning map for reasoning, which improves the speed of building the entire processing flow.

[0097] In some embodiments, after obtaining the second reasoning panorama, the second reasoning panorama is used to process the task to be processed, that is, the above step S104 can be implemented by the following steps S141 and S142 (not shown in the figure):

[0098] Step S141, inputting the task to be processed into the second inference panorama in the panorama.

[0099] Here, since the second reasoning panorama includes the trained model, the task to be processed is input into the second reasoning panorama including the trained model in the operation unit, so as to realize the processing process of the task to be processed by converting the second reasoning panorama into workflow data.

[0100] Step S142: Based on the second reasoning panorama, the task to be processed is processed to obtain the processing result.

[0101] Here, by converting the second inference panorama of the front end into an intermediate result graph that can be run by the back end, and further converting the intermediate result graph into an inference workflow that can process the task, the inference workflow can be used to process the task to be processed. In this way, by assembling the trained model output by the trained operation unit into the second inference panorama that can realize the entire processing flow, it can be convenient to be directly called by the task scheduling tool of the back end.

[0102] In some possible implementations, the processing of the pending tasks can be achieved through the following steps:

[0103] The first step is to convert the second reasoning panorama at the front end into the reasoning intermediate result graph at the back end.

[0104] Here, the implementation process of converting the second reasoning panorama of the front end into the reasoning intermediate result graph of the back end is the same as the implementation process of converting the training panorama of the front end into the training intermediate result graph of the back end. That is, the second reasoning panorama is converted into the reasoning intermediate result graph of the back end using a panorama translator.

[0105] The second step is to construct a second operation graph with a starting point based on a preset graph template corresponding to each operation unit in the inference intermediate result graph.

[0106] Here, the starting point of the second operation diagram is any operation unit in the inference intermediate result diagram. The selection of the starting point of the second operation diagram depends on the task to be processed. For example, if the task to be processed is a detection task, then the starting point of the second operation diagram is the detection model. According to the preset diagram template corresponding to each operation unit of the inference intermediate result diagram, a detection workflow template related to the detection model can be obtained, and according to the detection workflow template, a second operation diagram that can be run at the back end is constructed.

[0107] The third step is to convert the second operation diagram into an inference workflow.

[0108] The second operation diagram is converted into an inference workflow by using an inference converter, thereby obtaining workflow data for processing the task to be processed.

[0109] The fourth step is to use the inference workflow to process the task to be processed and obtain the processing result.

[0110] At the backend, the converted reasoning workflow is used to process the tasks to be processed and obtain the processing results. For example, the scheduling tool at the backend processes the tasks to be processed by calling the converted reasoning workflow. In this way, by translating the reasoning graph at the frontend into the reasoning workflow and seamlessly connecting the nodes with different functions, the reasoning function of the entire processing process can be completed.

[0111] In some embodiments, when the task to be processed is a classification and recognition task, the operation unit includes: a detection data set annotation unit, a cutout unit, a detection unit, a classification data set annotation unit, and a classification unit; the resource unit includes: data input and / or output by the detection data set annotation unit during the annotation operation, data input and / or output by the cutout unit during the cutout operation, data input and / or output by the detection unit during the detection operation, data input and / or output by the classification data set annotation unit during the annotation operation, and data input and / or output by the classification unit during the classification operation. Based on this, when the task to be processed is a classification and recognition task, the process of processing the classification and recognition task is as follows:

[0112] The first step is to build the training panorama and the first inference panorama on the front end based on the correspondence between the operation unit and the resource unit.

[0113] In some possible implementations, Docker virtual service technology is used to encapsulate these operation units into virtualized nodes, including: detection data set annotation node, cutout node, detection node, classification data set annotation node and classification node. In this way, the operation units and resource units are encapsulated into virtualized nodes to facilitate the construction of a panoramic view of the entire solution process.

[0114] The second step is to train the model to be trained in the training panorama.

[0115] In some possible implementations, the detection node set and classification node set obtained by encapsulation in the first and second steps are selected from among these nodes for training the detection model and the classification model; the detection model to be trained is trained using the data set node, the detection annotation node, and the detection model training node, and the classification model to be trained is trained using the cutout node, the classification annotation node, and the classification model training node. In this way, by connecting the virtualized nodes in series, the training of the detection model to be trained and the classification model to be trained can be realized, thereby completing the training nodes in the panoramic view.

[0116] In the third step, the target operation units that match the operation units of the trained model in the training panorama are imported into the first reasoning panorama to obtain the second reasoning panorama.

[0117] In some possible implementations, the connection relationship between the training node combinations is determined according to the connection relationship between the operation units, that is, the connection relationship between the data set node, the detection annotation node, the detection model training node, the cutout node, the classification annotation node, and the classification model training node is determined. In an embodiment of the present application, the connection relationship between the data set node, the detection annotation node, the detection model training node, the cutout node, the classification annotation node, and the classification model training node is, from top to bottom, the following: data set node, detection annotation node, detection model training node, cutout node, classification annotation node, and classification model training node.

[0118] In some possible implementations, the data set node, the detection and annotation node, the detection model training node, the cutout node, the classification and annotation node, and the classification model training node are sequentially connected in series according to the connection order between the nodes in the training node set, such as Figure 4 As shown, from the D1 data set to the classification model training node 407.

[0119] In some embodiments, by using the acquired sample data set, based on the training workflow corresponding to the model to be trained, the training of the model to be trained is implemented to obtain a completed training graph, and the completed training graph is applied to the inference graph, thereby realizing the construction of the entire processing flow.

[0120] In the fourth step, the second inference panorama is used to process the classification and recognition task.

[0121] In an embodiment of the present application, for classification and recognition tasks, the reasoning panorama diagram including the trained detection model and the trained classification model is translated into an reasoning workflow to process the classification and recognition tasks, which can efficiently realize the processing of tasks while quickly and conveniently building the entire solution processing flow.

[0122] Below, an exemplary application of an embodiment of the present application in an actual application scenario will be described to quickly build an algorithm solution process for a complex scenario, taking defect recognition of a target object in an image of the complex scenario as an example.

[0123] In recent years, deep learning algorithms have made great progress in various fields and have been implemented in many industrial fields. However, for complex problems in industrial scenarios, due to the complexity, diversity, multi-module and multi-modality of the entire process (pipeline), algorithm solutions usually need to adapt to the connection and fusion of multiple different module algorithms. Taking face recognition as an example, it usually requires a face detection module, a face key point module, a face quality module, a liveness module and a face feature module. Algorithm solutions in other fields also require the combined use of multiple algorithm modules.

[0124] Based on this, the implementation of this application proposes a method for quickly building algorithm solutions for different complex scenarios. In the embodiment of this application, this method is called a panorama. This method is based on the concept of a panorama. Different algorithm modules are called algorithm nodes in the panorama, and different data processing modules are encapsulated as virtualized nodes. The connection between different functional modules is called an edge in the panorama. Based on the panorama, different algorithm modules can be quickly connected in series to achieve the effect of building the entire algorithm solution as a whole, and a special panorama task processing flow can be constructed for different complex scenarios.

[0125] For complex industrial scenarios, based on the panorama, you can directly drag and drop the entire algorithm solution diagram on the front end. The single-point algorithm module and data processing module and other functional modules are encapsulated into Docker images, which are virtualized nodes in the panorama. Based on the panorama translator, the front-end foreground image is translated into the corresponding training workflow and reasoning workflow. The workflow schedules each image based on k8s to complete the training and reasoning functions of the whole solution. Figure 3 As shown, Figure 3 A schematic diagram of the composition structure of the panoramic image translator provided in the embodiment of the present application, combined with Figure 3 The following instructions are given:

[0126] The front end 300 includes: a front end panoramic view 301, which represents a diagram of the entire task processing flow constructed by dragging on the front end.

[0127] The backend 302 includes: an intermediate result converter 321, a graph template 322, a running graph 323 constructed according to a starting point, a training converter 324, an inference converter 325, a training workflow 326 and an inference workflow 327; wherein:

[0128] The intermediate result converter 321 is an intermediate result graph, which is a storage form of the user front-end display graph, including nodes, operation units, and links. The intermediate result graph mainly contains operation units and includes multiple modules for processing tasks. The front-end panoramic graph is translated into an intermediate result, for example, the front-end panoramic graph is translated into a structure of connection data, which is used to describe the functions of each module.

[0129] The diagram template 322 indicates that each functional module corresponds to a different configuration. The parameters required by each functional module are configured in the intermediate result diagram so that each functional module corresponds to a different configuration to obtain the diagram template 322, that is, different functional modules correspond to different diagram templates.

[0130] The operation diagram 323 is constructed according to the starting point, a starting point of a task to be processed is selected in the diagram template 322, and based on the starting point, an operation diagram for running the task is formed.

[0131] The training converter 324 is used to train the template for completing the task based on the constructed operation diagram and generate a training workflow 326.

[0132] The reasoning converter 325 is used to operate the task based on the trained model and form a reasoning workflow 327.

[0133] In most industrial scenarios, for example, in the scenario of defect identification of target parts in an image, it is usually necessary to detect the specific parts first, and then classify and identify the defects of the specific parts; therefore, detection + classification can be used as a combination solution to achieve defect identification. In an embodiment of the present application, taking the connection of the detection module + classification module as an example, the task processing flow can be divided into two stages: training and reasoning. In the panoramic map-based solution, by constructing a graph, it is translated into two sets of workflows, training and reasoning, in the back end. After the training is completed and the corresponding models of different modules are obtained, they are imported into the reasoning graph for reasoning; such as Figure 4 As shown, Figure 4 A schematic diagram of the implementation process of the panoramic image training diagram provided in the embodiment of the present application, combined with Figure 4 The following instructions are given:

[0134] The panoramic image training graph 401 includes a data set node, a data set annotation node, a picture cutout node, a model training node, etc., wherein:

[0135] The detection data set annotation node 402 is used for data input. The description of the data set and the corresponding location path are filled in the data set node, where the D1 data set is the initial data set. The detection data set annotation node 402 inputs a data set (for example, data set D1) and is used to annotate the data set for detection tasks and classification tasks. The output is a data set and a corresponding annotation file. The output D2 data set adds annotation information for the detection task based on the D1 data set, including a bounding box (Bbox) and a label on each image.

[0136] The image cutout node 403 takes as input a data set and an annotation file (e.g., data set D2), and is used to cut out the image according to the annotated bbox, and outputs a new data set D3; that is, data set D3 is a data set after cutting out specific parts in the image, and is used to perform downstream classification tasks.

[0137] The classification data set labeling node 404 has a classification data set D3 as input, is used to perform the classification task labeling function, and outputs a data set D4; the data set D4 is based on the D3 data set and adds classification labeling information for use in classification model training.

[0138] The detection model training node 405 has a detection data set D2 and annotation as input, which is used to train the corresponding detection model, and outputs the M1 detection model 406 .

[0139] The classification model training node 407 has a classification data set D4 and annotations for training the corresponding classification model as input, and an output as the M2 classification model 408 .

[0140] The panoramic image training process is completed from the D1 data set to the M2 classification model 408. After the panoramic image training is completed, the panoramic image reasoning is performed to obtain the panoramic image reasoning graph 411. The panoramic image reasoning graph 411 includes: a data set node, a reasoning node, a result to data set node and a picture cutout node, etc., wherein:

[0141] The detection reasoning node 412 is used to represent the input of data. The description of the data set and the corresponding location path are filled in this node. Here, the data set D5 is the data set to be tested. The input is the data set D5 and the M1 detection model 406. The specific M1 detection model is used to perform the reasoning function, and the output is the specific detection result of the input data set; that is, the specific detection result of the data set D5.

[0142] The result-to-dataset node 413 has the inference result as input and is used to convert the inference result to meet the downstream task data input, and outputs a dataset D6 that conforms to the downstream task format. Here, the dataset D6 is a dataset that meets the downstream classification task.

[0143] The image cutout node 414 has a result data set obtained by detection reasoning as input, which is used to cut out the image according to the predicted Bbox, and outputs the cutout data set D7 to be classified.

[0144] The classification reasoning node 415, with the input of the dataset D7 to be classified and the M2 classification model 408, is used to perform the classification reasoning function, and the output is the final classification result. In this way, for complex industrial scenarios in reality, such as defect identification problems, users need to first detect the corresponding components, and then classify the corresponding different components separately. Based on the task processing method provided in the embodiment of the present application, the user can build a complete panoramic picture, including a component detection algorithm module, an image clipping processing module, different component classification algorithm modules, and a reasoning module, and obtain the corresponding training and reasoning workflow through translator conversion.

[0145] In the embodiments of the present application, firstly, the panoramic map is based on the concept of graph, and can quickly and conveniently build a complete task processing flow for complex industrial scenarios; then, the different algorithm modules and data processing modules in the entire algorithm chain process are encapsulated into Docker images as nodes in the graph; finally, the panoramic map is based on the translator, which translates the front-end panoramic map into corresponding training workflows and reasoning workflows, and uses k8s to schedule different images in the workflow to complete the entire process; thereby, seamless connection of nodes with different functions is achieved, and the training and reasoning functions of the entire solution are completed.

[0146] The present application embodiment provides a task processing device, Figure 5 Schematic diagram of the structure of the task processing device of the embodiment of the present application. Figure 5 As shown, the task processing device 500 includes:

[0147] A first acquisition module 501 is used to acquire tasks to be processed;

[0148] A first determination module 502 is used to determine an operation unit and a resource unit for implementing the task to be processed; wherein the operation unit at least includes a processing operation for the task to be processed, and the resource unit includes data input and / or output by the operation unit during the execution of the processing operation;

[0149] A first construction module 503 is used to construct a panoramic view including the processing flow of the task to be processed based on the operation unit of the task to be processed and the resource unit;

[0150] The first processing module 504 is used to process the task to be processed based on the panoramic image to obtain a processing result.

[0151] In some embodiments, the operation unit and the resource unit are both at least two, the panoramic map includes a training panoramic map, and the first construction module 503 includes:

[0152] A first determining submodule, configured to determine, among at least two resource units, a first resource unit as an input of each operation unit and a second resource unit as an output of each operation unit;

[0153] The first connection submodule is used to connect each operation unit with the corresponding first resource unit and second resource unit to obtain the training panorama.

[0154] In some embodiments, the panorama includes a first reasoning panorama, and the first construction module 503 includes:

[0155] A second determination submodule is used to determine a target operation unit and a target resource unit that match the processing flow of the task to be processed in the front-end panoramic map file; wherein the front-end panoramic map file includes at least two operation units and at least two resource units;

[0156] The first construction submodule is used to construct the first reasoning panorama that does not include workflow data based on the target operation unit and the target resource unit.

[0157] In some embodiments, the panorama includes a first reasoning panorama, and the first construction module 503 includes:

[0158] A third determination submodule is used to determine, in the training panorama of the panorama, a target operation unit and a target resource unit that match the processing flow of the task to be processed;

[0159] The second construction submodule is used to construct the first reasoning panorama that does not include workflow data based on the target operation unit and the target resource unit.

[0160] In some embodiments, the apparatus further comprises:

[0161] A first training module, used for training the operation unit including the model to be trained in the training panorama;

[0162] The second determination module is used to determine a second reasoning panorama for reasoning the task to be processed based on the operation unit including the trained model in the training panorama and the first reasoning panorama; wherein the trained model is obtained by training the model to be trained.

[0163] In some embodiments, the first training module includes:

[0164] A first conversion submodule, used for converting the training panorama image at the front end into a training intermediate result image at the back end;

[0165] The third construction submodule is used to construct a first operation diagram with a starting point based on the preset diagram template corresponding to each operation unit in the training intermediate result diagram; wherein the preset diagram template corresponding to each operation unit is set by the front end based on the task; and the starting point of the first operation diagram is any operation unit in the training intermediate result diagram;

[0166] A second conversion submodule, used for converting the first operation diagram into a training workflow capable of training the function of the first operation diagram;

[0167] The first training submodule is used to train the operation unit of the model to be trained based on the training workflow.

[0168] In some embodiments, the first training submodule includes:

[0169] A first determining unit, configured to determine a logical relationship between different operation units in the first operation diagram based on the training workflow;

[0170] The first training unit is used to train the operation unit of the model to be trained according to the logical relationship.

[0171] In some embodiments, the second determining module includes:

[0172] A fourth determination submodule is used to determine, in the first reasoning panorama, a target operation unit that matches an operation unit including a trained model in the training panorama;

[0173] The first import submodule is used to import the trained model into the matching target operation unit to obtain the second reasoning panorama.

[0174] In some embodiments, the first processing module 504 includes:

[0175] A first input submodule, used for inputting the task to be processed into a second reasoning panorama in the panorama;

[0176] The first processing submodule is used to process the task to be processed based on the second reasoning panorama to obtain the processing result.

[0177] In some embodiments, the first processing submodule includes:

[0178] A first conversion unit, used to convert the second reasoning panorama at the front end into a reasoning intermediate result graph at the back end;

[0179] A first construction unit is configured to construct a second operation diagram having a starting point based on a preset diagram template corresponding to each operation unit in the reasoning intermediate result diagram; wherein the starting point of the second operation diagram is any operation unit in the reasoning intermediate result diagram;

[0180] A second conversion unit, configured to convert the second operation diagram into an inference workflow;

[0181] The first processing unit is used to process the task to be processed by adopting the inference workflow to obtain the processing result.

[0182] In some embodiments, when the task to be processed is a classification and recognition task, the operation unit at least includes: a detection data set annotation unit, a cutout unit, a detection unit, a classification data set annotation unit, and a classification unit;

[0183] The resource unit includes at least: data input and / or output by the detection data set annotation unit during the annotation operation, data input and / or output by the cutout unit during the cutout operation, data input and / or output by the detection unit during the detection operation, data input and / or output by the classification data set annotation unit during the annotation operation, and data input and / or output by the classification unit during the classification operation.

[0184] It should be noted that the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0185] It should be noted that in the embodiment of the present application, if the above-mentioned task processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a computer device (which can be a terminal, a server, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a sports hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0186] Correspondingly, an embodiment of the present application further provides a computer program product, which includes computer executable instructions. After the computer executable instructions are executed, the steps in the task processing method provided in the embodiment of the present application can be implemented.

[0187] An embodiment of the present application further provides a computer storage medium, on which computer executable instructions are stored. When the computer executable instructions are executed by a processor, the steps of the task processing method provided in the above embodiment are implemented.

[0188] The present application embodiment provides a computer device, Figure 6 Schematic diagram of the composition structure of the computer device of the embodiment of the present application, such as Figure 6As shown, the computer device 600 includes: a processor 601, at least one communication bus, a communication interface 602, at least one external communication interface and a memory 603. The communication interface 602 is configured to realize the connection and communication between these components. The communication interface 602 may include a display screen, and the external communication interface may include a standard wired interface and a wireless interface. The processor 601 is configured to execute the image processing program in the memory to implement the steps of the task processing method provided in the above embodiment.

[0189] The description of the above task processing device, computer device and storage medium embodiments is similar to the description of the above method embodiments, and has similar technical descriptions and beneficial effects as the corresponding method embodiments. Due to space limitations, the above method embodiments can be used as examples, so they will not be repeated here. For technical details not disclosed in the task processing device, computer device and storage medium embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0190] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0191] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0192] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0193] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0194] In addition, all functional units in the embodiments of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art can understand that all or part of the steps of the above method embodiments can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above method embodiments are executed; and the above storage medium includes: mobile storage devices, read-only memory (ROM), disks or optical disks, etc. Various media that can store program codes.

[0195] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art can be stored in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks. The above is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, and they should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A task processing method, characterized in that: The method comprises: Get pending tasks; Determine an operation unit and a resource unit for implementing the task to be processed; wherein the operation unit at least includes a processing operation for the task to be processed, and the resource unit includes data input and / or output by the operation unit during the execution of the processing operation; Based on the operation unit of the task to be processed and the resource unit, construct a panoramic view including the processing flow of the task to be processed; Based on the panoramic image, the task to be processed is processed to obtain a processing result; The processing of the to-be-processed task based on the panoramic image to obtain a processing result includes: Inputting the task to be processed into a second reasoning panorama in the panorama; Based on the second reasoning panorama, processing the task to be processed to obtain the processing result; The processing of the task to be processed based on the second reasoning panorama to obtain the processing result includes: Convert the second reasoning panorama at the front end into a reasoning intermediate result graph at the back end; Based on the preset graph template corresponding to each operation unit in the inference intermediate result graph, a second operation graph with a starting point is constructed; wherein the starting point of the second operation graph is any operation unit in the inference intermediate result graph; converting the second operation graph into an inference workflow; The inference workflow is adopted to process the task to be processed to obtain the processing result.

2. The method according to claim 1, characterized in that There are at least two of the operation units and the resource units, the panoramic map includes a training panoramic map, and the operation units and the resource units of the tasks to be processed are used to construct a panoramic map including the processing flow of the tasks to be processed, including: Among the at least two resource units, determining a first resource unit as an input of each operation unit and a second resource unit as an output of each operation unit; Each operation unit is connected to the corresponding first resource unit and second resource unit to obtain the training panorama.

3. The method according to claim 2, characterized in that The panoramic map includes a first reasoning panoramic map, and the operation unit and the resource unit of the task to be processed are used to construct a panoramic map including a processing flow of the task to be processed, including: Determining a target operation unit and a target resource unit that match the processing flow of the task to be processed in the front-end panoramic map file; wherein the front-end panoramic map file includes at least two operation units and at least two resource units; Based on the target operation unit and the target resource unit, the first reasoning panorama excluding workflow data is constructed.

4. The method according to claim 2, characterized in that: The panoramic map includes a first reasoning panoramic map, and the operation unit and the resource unit of the task to be processed are used to construct a panoramic map including a processing flow of the task to be processed, including: In the training panorama of the panorama, determining a target operation unit and a target resource unit that match the processing flow of the task to be processed; Based on the target operation unit and the target resource unit, the first reasoning panorama excluding workflow data is constructed.

5. The method according to claim 3 or 4, characterized in that: After connecting each of the operation units with the corresponding first resource unit and second resource unit to obtain the training panorama, the method further includes: Training the operation unit including the model to be trained in the training panorama; Based on the operation unit including the trained model in the training panorama and the first reasoning panorama, a second reasoning panorama for reasoning the task to be processed is determined; wherein the trained model is obtained by training the model to be trained.

6. The method according to claim 5, characterized in that The training of the operation unit including the model to be trained in the training panorama includes: Convert the training panorama at the front end into a training intermediate result graph at the back end; Based on the preset graph template corresponding to each operation unit in the training intermediate result graph, a first operation graph with a starting point is constructed; wherein the preset graph template corresponding to each operation unit is set by the front end based on the task; and the starting point of the first operation graph is any operation unit in the training intermediate result graph; Converting the first operation diagram into a training workflow capable of training the function of the first operation diagram; Based on the training workflow, the operation units of the model to be trained are trained.

7. The method according to claim 6, characterized in that The step of training the operation unit of the model to be trained based on the training workflow includes: Based on the training workflow, determining a logical relationship between different operation units in the first operation diagram; According to the logical relationship, the operation unit of the model to be trained is trained.

8. The method according to claim 5, characterized in that The determining, based on the operation unit including the trained model in the training panorama and the first reasoning panorama for reasoning the task to be processed, a second reasoning panorama for reasoning the task to be processed comprises: In the first reasoning panorama, determining a target operation unit that matches an operation unit including a trained model in the training panorama; The trained model is imported into the matching target operation unit to obtain the second reasoning panorama.

9. The method according to any one of claims 1 to 4, characterized in that: In the case where the task to be processed is a classification and recognition task, the operation unit at least includes: a detection data set labeling unit, a cutout unit, a detection unit, a classification data set labeling unit and a classification unit; The resource unit includes at least: data input and / or output by the detection data set annotation unit during the annotation operation, data input and / or output by the cutout unit during the cutout operation, data input and / or output by the detection unit during the detection operation, data input and / or output by the classification data set annotation unit during the annotation operation, and data input and / or output by the classification unit during the classification operation.

10. A task processing device, characterized in that: The device comprises: A first acquisition module, used to acquire tasks to be processed; A first determination module is used to determine an operation unit and a resource unit for implementing the task to be processed; wherein the operation unit at least includes a processing operation for the task to be processed, and the resource unit includes data input and / or output by the operation unit during the execution of the processing operation; A first construction module is used to construct a panoramic view including a processing flow of the task to be processed based on the operation unit of the task to be processed and the resource unit; A first processing module, used for processing the task to be processed based on the panoramic image to obtain a processing result; The first processing module comprises: A first input submodule, used for inputting the task to be processed into a second reasoning panorama in the panorama; A first processing submodule, configured to process the task to be processed based on the second reasoning panorama to obtain the processing result; The first processing submodule includes: A first conversion unit, used to convert the second reasoning panorama at the front end into a reasoning intermediate result graph at the back end; A first construction unit is configured to construct a second operation diagram having a starting point based on a preset diagram template corresponding to each operation unit in the reasoning intermediate result diagram; wherein the starting point of the second operation diagram is any operation unit in the reasoning intermediate result diagram; A second conversion unit, configured to convert the second operation diagram into an inference workflow; The first processing unit is used to process the task to be processed by adopting the inference workflow to obtain the processing result.

11. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, which, after being executed, can implement the task processing method described in any one of claims 1 to 9.

12. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores computer executable instructions, and the processor can implement the task processing method according to any one of claims 1 to 9 when running the computer executable instructions on the memory.

Citation Information

Patent Citations

  • Vehicle damage image modification trace recognition method and system, electronic equipment and storage medium

    CN110378254A

  • Machine learning training construction method, platform and device, equipment and storage medium

    CN111310936A

  • Distributed real-time computing method, device and system and storage medium thereof

    CN111435352A

  • Task processing method, system and device

    CN111831424A

  • Information processing system and data transfer method

    US20100306423A1