A single-card multi-model visual arrangement method for real-time deep learning inference and a related device
By generating a directed acyclic graph for single-card multi-model visualization orchestration, the problem of long development cycle and difficulty in ensuring accuracy consistency in traditional deep learning inference is solved, realizing efficient real-time inference of single-card multi-model and improving the processing performance of computing cards.
Patent Information
- Application Number
- CN202611348196.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-20
AI Technical Summary
Traditional deep learning inference development methods have long development cycles, high communication costs, and difficulty in ensuring accuracy and consistency, making it impossible to efficiently achieve real-time inference tasks with multiple models on a single card.
By generating a directed acyclic graph, and using the first and second program files under the same management architecture, an inference engine and service main program are generated, enabling visual orchestration of multiple models on a single card. Inference tasks are executed within the computing card using a single executable file, and process steps are shared.
It greatly shortens the development cycle, ensures the consistency of visual orchestration, improves the performance of computing cards in processing tasks, realizes the coexistence and sharing of multiple models within a single card and single process, and reduces network communication overhead.
Smart Images

Figure CN123137918A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer vision technology, and in particular to a single-card multi-model visualization orchestration method and related apparatus for real-time deep learning inference. Background Technology
[0002] With the widespread application of deep learning technology in edge computing scenarios, algorithm inference processes are becoming increasingly complex. Video analytics inference tasks often involve multiple inference tasks such as detection, cropping, alignment, classification, and regression. Traditional development methods require algorithm engineers to first write prototype code to verify the combined effect of the model, and then hand it over to software engineers to rewrite it into production code for deployment on computing cards for real-time inference. This approach has a long development cycle, high communication costs, and difficulty in guaranteeing accuracy and consistency. Summary of the Invention
[0003] To address the aforementioned issues, this application provides a single-card multi-model visualization orchestration method and related apparatus for real-time deep learning inference, which can solve at least one of the aforementioned technical problems.
[0004] According to one aspect of this application, a single-card multi-model visualization orchestration method for real-time deep learning inference is proposed, the method comprising: Obtain a directed acyclic graph consisting of multiple nodes, and generate a first program file in the target format based on the directed acyclic graph; The first program file is read by the first program backend to generate an inference engine corresponding to the directed acyclic graph; The first input data used for trial operation verification is input into the inference engine, and the inference engine performs inference on the first input data to obtain a serialized inference result; Based on the serialized reasoning results, determine whether the directed acyclic graph has passed verification; A second program file in the target format is generated based on the verified directed acyclic graph, and the second program file is read by the second program backend to generate the service main program corresponding to the verified directed acyclic graph; The main service program corresponding to the verified directed acyclic graph is compiled into a single executable file, and the single executable file is deployed in a single computing card; The computing card receives second input data carrying a target inference request, and executes the single executable file so that the service main program in the single executable file performs inference on the second input data to obtain a serialized target inference result. When the computing card executes the single executable file, it forms a single process. The single executable file includes multiple pre-trained models, which are multiple pre-trained model nodes among the multiple nodes. The multiple pre-trained models share the process steps corresponding to the directed acyclic graph after the verification is passed.
[0005] In the above scheme, the directed acyclic graph is generated through the following steps: The data type of each node is determined, including pre-trained model nodes, fine-grained inference action nodes, data nodes, rule nodes, and output nodes; The execution order of each fine-grained inference action node and the target node referenced by each fine-grained inference action node are determined, wherein the target node is one or more of the pre-trained model node, the data node, and the rule node; The directed acyclic graph is generated based on the execution order of each fine-grained inference action node, the target node referenced by each fine-grained inference action node, and the output node. The output node is the node in the last execution order of the directed acyclic graph. The input and output data types of the fine-grained reasoning action nodes both belong to a three-level hierarchical type system, which includes basic types, list types, and nested list types. The target format is JSON format. The rule nodes include nodes with instantaneous time sequence, nodes with continuous time sequence, and nodes with frequency time sequence.
[0006] In the above scheme, the step of reading the first program file through the first program backend and generating an inference engine corresponding to the directed acyclic graph includes: The first program backend calls the first code generator, which reads the first program file and generates an inference script belonging to the architecture of the first program backend. The inference script is determined as the inference engine for executing the directed acyclic graph; The data node is defined as an immutable data carrier node. The internal data of the data node is accessed through a read-only attribute. When the edges between fine-grained reasoning action nodes in the directed acyclic graph reference the data node, they do not copy the data content of the data node.
[0007] In the above scheme, the step of inputting the first input data for trial operation verification into the inference engine, and performing inference on the first input data through the inference engine to obtain a serialized inference result includes: Each pre-trained model node in the directed acyclic graph is determined, and each pre-trained model node corresponds to a pre-trained model. The types of pre-trained models include detection models and classification models. The actions corresponding to each fine-grained inference action node are executed sequentially according to the execution order of each fine-grained inference action node. When executing the action corresponding to each fine-grained inference action node, the pre-trained model node referenced by the fine-grained inference action node is determined, and inference is performed on the first input data through the pre-trained model corresponding to the pre-trained model node referenced by the fine-grained inference action node to obtain the inference result corresponding to the fine-grained inference action node. The serialized reasoning result is generated based on the reasoning result corresponding to each of the fine-grained reasoning action nodes and the execution order of each of the fine-grained reasoning action nodes; In this process, multiple threads can simultaneously call the directed acyclic graph after verification.
[0008] In the above scheme, determining whether the directed acyclic graph passes verification based on the serialized inference result includes: The serialized reasoning result is superimposed on the first input data to obtain the display data; The displayed data is compared with preset display reference data. If the displayed data matches the preset display reference data, the directed acyclic graph verification is deemed successful.
[0009] In the above scheme, the step of reading the second program file through the second program backend and generating the service main program corresponding to the verified directed acyclic graph includes: The second program backend calls the second code generator, which reads the second program file and generates a service main program for executing the inference process of the directed acyclic graph after the verification is passed. The first program file and the second program file are generated through the same management architecture, which includes the definition architecture of the directed acyclic graph, the three-layer hierarchical type system, the logical architecture used by the fine-grained inference action nodes, and the pre-configured pre-trained model architecture.
[0010] In the above scheme, when the fine-grained inference action node references the data node, it does not copy the data content of the data node, but directly points to the data node through a pointer to complete the reference to the data node.
[0011] According to one aspect of this application, a single-card multi-model visualization orchestration device for real-time deep learning inference is provided, the device comprising: The acquisition unit is used to acquire a directed acyclic graph consisting of multiple nodes and generate a first program file in a target format based on the directed acyclic graph. An engine generation unit is used to read the first program file through the first program backend and generate an inference engine corresponding to the directed acyclic graph. The inference unit is used to input the first input data for trial operation verification into the inference engine, and to perform inference on the first input data through the inference engine to obtain a serialized inference result; The judgment unit is used to determine whether the directed acyclic graph has passed verification based on the serialized reasoning result; The main program generation unit is used to generate a second program file in the target format based on the verified directed acyclic graph, and to read the second program file through the second program backend to generate a service main program corresponding to the verified directed acyclic graph. The compilation unit is used to compile the main service program corresponding to the verified directed acyclic graph into a single executable file, and deploy the single executable file in a single computing card; An execution unit is configured to receive second input data carrying a target inference request via the computing power card, and execute the single executable file so that the service main program in the single executable file performs inference on the second input data to obtain a serialized target inference result; When the computing card executes the single executable file, it forms a single process. The single executable file includes multiple pre-trained models, which are multiple pre-trained model nodes among the multiple nodes. The multiple pre-trained models share the process steps corresponding to the directed acyclic graph after the verification is passed.
[0012] According to one aspect of this application, an electronic device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the single-card multi-model visualization orchestration method for real-time deep learning inference as described above.
[0013] According to one aspect of this application, a computer program product is provided, the computer program product comprising a computer program that is read and executed by a processor of an electronic device, causing the electronic device to perform the single-card multi-model visualization orchestration method for real-time deep learning inference as described above.
[0014] The beneficial effects of this application are as follows: In this application, the first and second program files generated from the directed acyclic graph (DAG) are program files of the same target format. Therefore, the generated inference engine and the main service program belong to the same service architecture. Thus, this application verifies the inference engine through trial operation until the DAG is verified, and then generates the second program file of the target format based on the verified DAG. This generates the main service program, which performs inference on the second input data carrying the target inference request to obtain the target inference result. Since the inference engine and the main service program generated in this application belong to the same service architecture, the development cycle is greatly reduced. The inference engine generated in the backend of the first program and the obtained DAG can be directly used in the backend of the second program to generate program files of the same target format, ensuring the consistency of the visual orchestration. Furthermore, this application can realize single-process multi-pre-trained model shared instance management on a computing card, achieving multi-model coexistence and sharing within a single computing card and a single process. Unlike traditional multi-process / multi-node deployment schemes, this application can greatly improve the performance of the computing card when processing tasks. Attached Figure Description
[0015] Figure 1 This is a system architecture diagram of the single-card multi-model visualization orchestration method for real-time deep learning inference provided in the embodiments of this application; Figure 2 A flowchart illustrating the single-card multi-model visualization orchestration method for real-time deep learning inference provided in this application embodiment; Figure 3 This is a system architecture diagram for dual-track operation provided in an embodiment of this application; Figure 4 This is a schematic diagram of the three-layer hierarchical type system and port verification provided in the embodiments of this application; Figure 5 This is a comparison diagram between the traditional data transmission method provided in the embodiments of this application and the data transmission method of this application; Figure 6 This is a block diagram of a single-card multi-model visualization orchestration device for real-time deep learning inference provided in the embodiments of this application; Figure 7 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0016] To enable those skilled in the art to better understand the solutions of this application, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0017] It should be noted that while some processes described in the specification, claims, and accompanying drawings include multiple steps appearing in a specific order, it should be clearly understood that these steps may not be performed in the order they appear herein, or may be performed in parallel. The step numbers are merely used to distinguish different steps and do not themselves represent any execution order. Furthermore, descriptions such as "first," "second," or "objective" in this document are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. "Multiple" in this document refers to at least two.
[0018] It is worth noting that, in the specific embodiments of this application, related data such as directed acyclic graphs, program files, input data, and output data are involved. When the above embodiments of this application are applied to specific products or technologies, permission or consent from the target object is required, and the collection, use, and processing of related data must comply with relevant laws, regulations, and standards. For example, when an embodiment of this application needs to obtain related data such as directed acyclic graphs, program files, input data, and output data, separate permission or consent from the target object can be obtained through pop-up windows or redirection to a confirmation page. After obtaining the separate permission or consent from the target object, the related data such as directed acyclic graphs, program files, input data, and output data used to enable the embodiments of this application to operate normally can then be obtained.
[0019] Please see Figure 1 , Figure 1 This is a system architecture diagram of the single-card multi-model visualization orchestration method for real-time deep learning inference provided in this application embodiment. It includes a terminal 140, an Internet connection 130, a gateway 120, a server 110, etc.
[0020] Terminal 140 can take various forms, including desktop computers, laptops, PDAs (personal digital assistants), mobile phones, vehicle terminals, and dedicated terminals. Furthermore, it can be a single device or a collection of multiple devices. For example, multiple desktop computers can be interconnected via a local area network, sharing a single monitor to work collaboratively, forming a single terminal 140. Terminal 140 can communicate with the Internet 130 via wired or wireless means to exchange data.
[0021] Server 110 refers to a computer system capable of providing certain services to terminal 140. Compared to ordinary terminal 140, server 110 has higher requirements in terms of stability, security, and performance. Server 110 can be a single high-performance computer in a network platform, a cluster of multiple high-performance computers, a portion of a single high-performance computer (e.g., a virtual machine), or a combination of portions of multiple high-performance computers (e.g., virtual machines). Server 110 can also communicate with the Internet 130 via wired or wireless means to exchange data.
[0022] Gateway 120, also known as an internetwork connector or protocol converter, is a computer system or device that acts as a translator, enabling network interconnection at the transport layer. It bridges the gap between two systems using different communication protocols, data formats, languages, or even completely different architectures. Gateways can also provide filtering and security functions. Messages sent from terminal 140 to server 110 are forwarded to the corresponding server 110 via gateway 120. Messages sent from server 110 to terminal 140 are also forwarded to the corresponding terminal 140 via gateway 120.
[0023] Definitions: 1. DAG (Directed Acyclic Graph): A directed graph structure without loops, used to represent the execution order and data dependencies of nodes in an algorithm process; In this application, the nodes of the DAG include pre-trained model nodes, fine-grained inference action nodes, data nodes, rule nodes and output nodes, and the edges represent the data flow relationship between nodes.
[0024] 2. Fine-grained inference action nodes: Fine-grained computational units for deep learning inference tasks, including detection, cropping, alignment, classification, and regression actions; each action node explicitly declares the input and output data types, belonging to a three-layer hierarchical type system.
[0025] 3. Three-tier hierarchical type system: The data type system defined in this application includes basic types (such as IMAGE, BBOX, LANDMARKS), list types (such as IMAGE_LIST, BBOX_LIST), and nested list types (such as IMAGE_LIST_LIST, BBOX_LIST_LIST), which are used to strictly constrain the data connections between action nodes.
[0026] 4. ModelManager: A global singleton model manager that maintains a model instance mapping table and a reference count mapping table. Only one instance is loaded for the same pre-trained model within a single process. Multiple action nodes share this instance, and the memory is automatically released when the reference count reaches zero.
[0027] 5. Zero-copy edge transmission: Data transfer between fine-grained inference action nodes in DAG does not copy data content. Instead, it uses direct references (object references on the Python side (first program backend) and smart pointers on the C++ side (second program backend)) of immutable data nodes, avoiding serialization and memory copy overhead.
[0028] 6. Immutable data node (Node): The data carrier class whose internal data is accessed through read-only attributes (via @property in Python and via const reference in C++), and cannot be modified in place; when modification is required, clone() is explicitly called to generate a deep copy.
[0029] 7. Runtime state localization: When Graph.run() is executed, the DAG definition is copied to the function's local variables and then the mutex is released, and a local runtime node table is built; shared state is not accessed during execution, and multi-threaded concurrent calls are supported.
[0030] 8. Python / C++ Dual-Track Precision Equivalence: The Python backend and C++ inference server share the same DAG definition, three-layer type system, action logic, and pre-trained model configuration (sharing the same management architecture). Python trial scripts and C++ production service code are generated from the same Pipeline JSON (program file, i.e., JSON file) to ensure that C++ can be directly deployed after Python verification.
[0031] 9. Kahn Topological Sorting: A topological sorting algorithm for DAGs that determines the execution order of fine-grained reasoning action nodes by calculating the in-degree of nodes and sequentially removing nodes with an in-degree of zero. (The "action node" refers to the node whose in-degree is zero.) 10. json_to_pipeline.py: The first code generator, which reads the Pipeline JSON (the first program file) and automatically generates a Python script (inference engine) containing pre-trained model loading, action registration, DAG construction, and inference execution for trial run verification.
[0032] 11. json_to_pipeline_server.py: The second code generator reads the same Pipeline JSON (which is now the second program file) and automatically generates the C++ HTTP service main program, CMake build script, and model registration code. After compilation, it generates a single executable file.
[0033] 12. Rule Node: A node used to perform temporal evaluation of the DAG inference results (corresponding to the output of the output node). It has three built-in temporal state machines: threshold, duration, and count, and supports spatial polygon filtering.
[0034] 13. Runtime Region Injection: When exporting Pipeline JSON, the polygon vertices of the region data nodes are forcibly set to empty. At runtime, region is injected externally through the region_overrides parameter to achieve differentiated region configurations for the same orchestration process on different inference instances.
[0035] The following provides a detailed description of the specific implementation methods of the embodiments of this application: Please see Figure 2 , Figure 2 This is a flowchart illustrating a single-card multi-model visualization orchestration method for real-time deep learning inference provided in an embodiment of this application. The single-card multi-model visualization orchestration method for real-time deep learning inference can be implemented by server 110 and / or terminal 140. Figure 2 The single-card multi-model visualization orchestration method shown includes: Step 210: Obtain a directed acyclic graph consisting of multiple nodes, and generate a first program file in the target format based on the directed acyclic graph; Step 220: Read the first program file through the first program backend and generate an inference engine corresponding to the directed acyclic graph; Step 230: Input the first input data for trial operation verification into the inference engine, and perform inference on the first input data through the inference engine to obtain a serialized inference result; Step 240: Determine whether the directed acyclic graph has passed verification based on the serialized reasoning result; Step 250: Generate a second program file in the target format based on the verified directed acyclic graph, and read the second program file through the second program backend to generate the service main program corresponding to the verified directed acyclic graph; Step 260: Compile the main service program corresponding to the verified directed acyclic graph into a single executable file, and deploy the single executable file on a single computing card; Step 270: Receive second input data carrying the target inference request through the computing power card, execute the single executable file, so that the service main program in the single executable file performs inference on the second input data to obtain a serialized target inference result.
[0036] The complete embodiments of this application are explained in detail below: First, such as Figure 3 As shown, Figure 3 This diagram illustrates the dual-track operation of this application, where the trial operation track corresponds to the first program backend (Python side) and the production deployment track corresponds to the second program backend (C++ side). The visual orchestration of this application refers to constructing a directed acyclic graph (DAG) configuration by dragging and dropping nodes in the browser frontend. The underlying implementation uses a dual-track execution approach: Python ONNX trial verification and C++ model inference engine production deployment, achieving one-click generation from algorithm orchestration to native inference service.
[0037] In step 210, the generation of the directed acyclic graph (DAG) is as follows: a visual canvas is provided in the browser front-end, and the user's drag-and-drop command is received to generate the DAG configuration; the nodes of the DAG include pre-trained model nodes, fine-grained inference action nodes, data nodes, rule nodes, and output nodes; the fine-grained inference action nodes include detection actions, cropping actions, alignment actions, classification actions, and regression actions. Each action node explicitly declares its input data type and output data type during construction, and the input data type and output data type belong to a three-level hierarchical type system; when establishing a connection, the front-end performs strict consistency verification on the data types of the source port and the target port, and refuses the connection and prompts an error when the types do not match.
[0038] In step 220, the Python (first program backend) inference trial run verification is performed: the browser frontend exports the DAG configuration as a JSON file (first program file) and sends it to the Python backend; the Python backend reads the JSON file and generates a Python inference script through the first code generator (json_to_pipeline.py); In step 230, the Python inference script uses ONNXRuntime (inference engine) as the backend to perform real-time inference of the DAG on the CPU or computing card, and returns the inference results (including detection boxes, classification labels, and key point coordinates) to the frontend for visualization. In step 240, the action node parameters are adjusted based on the visualization results (serialized inference results) until the algorithm logic verification is passed. That is, the serialized inference results are superimposed on the first input data to obtain display data; the display data is compared with preset display benchmark data. If the display data matches the preset display benchmark data, the directed acyclic graph (DAG) verification is considered successful. For example, when the first input data is an image, the serialized inference results (e.g., detection boxes, classification labels, keypoint coordinates) are superimposed on the image to obtain display data, which is then compared with the user-set display benchmark data. Only after a match is it determined that the process logic and configuration parameters of each node of the current DAG have passed verification.
[0039] In step 250, the Python (first program backend) and C++ inference module (second program backend) synchronization mechanism is as follows: the Python backend and the C++ inference server share the same DAG definition, the same three-layer type system, the same fine-grained inference action logic, and the same pre-trained model configuration (same management architecture); the Python inference script and the C++ inference service are generated from the same Pipeline JSON configuration, ensuring that their DAG topology, node parameters, type verification rules, and pre-trained model preprocessing configurations are completely consistent; once the Python inference trial run verification is successful, the corresponding C++ inference service can be directly deployed without secondary debugging.
[0040] The native inference service is automatically generated from the orchestration configuration: The second program backend reads the JSON file of the DAG configuration (which is the second program file at this time) and automatically generates the C++ HTTP service main program, CMake build script and model registration code through the second code generator (json_to_pipeline_server.py); the main program includes automatically generated model loading function, action registration function, graph construction function and HTTP endpoint processing function.
[0041] In step 260, the main service program is compiled to generate a single executable file. All pre-trained models are loaded in a single process and HTTP requests are listened for. The HTTP request is the second input data that carries the target inference request. The second input data is, for example, data such as images or video streams.
[0042] In step 270, by deploying a single executable file on a computing card or graphics card, the computing card or graphics card can directly execute the single executable file, thereby executing the DAG graph according to the process logic to complete the target inference request and perform inference analysis on the second input data.
[0043] In some embodiments, this application also provides single-process multi-pretrained model shared instance management: a global singleton model manager is set in the C++ inference server; the model manager maintains a model instance mapping table and a reference count mapping table; when multiple fine-grained inference action nodes are associated with the same pretrained model node, the model manager loads only one model instance to the computing card and increments the reference count of the model instance; when the action node is released, the reference count is decremented, and when it reaches zero, the model instance is automatically destroyed and the video memory is released.
[0044] In some embodiments, this application provides a method for transmitting immutable data nodes and zero-copy edges: data nodes are defined as immutable data carriers in the DAG execution engine, and their internal data is accessed through read-only attributes; fine-grained inference action nodes are prohibited from modifying input data nodes in place during execution, and new nodes are explicitly cloned when modification is required; edges between action nodes in the DAG are achieved by directly referencing data nodes, without copying data content.
[0045] In the architecture of this application, a logic for runtime state localization and lock-free concurrent execution is also provided: When the DAG execution engine (service main program) receives a target inference request, it first copies the node definition, connection mapping and pre-computed topological order of the DAG to local variables through a mutex lock, and then immediately releases the lock; it constructs a function local runtime node table and executes the action nodes in sequence according to the pre-computed Kahn topological order; during execution, it does not access the shared state, so that the same graph instance (the same DAG graph) supports multi-threaded concurrent calls. It should be noted that this application uses Kahn topological sorting to determine the execution order of each fine-grained inference action node.
[0046] In some embodiments, such as Figure 4 As shown, the three-tiered hierarchical type system includes: basic types, list types, and nested list types; the basic types include image (IMAGE), bounding box (BBOX), keypoint (LANDMARKS), classification result (CLASSIFY), and output result (RESULT), and may also include basic types such as transformation matrix and feature vector; the list type is a one-dimensional list corresponding to the basic type, that is... Figure 4 The list shown includes IMAGE_LIST (a one-dimensional list corresponding to the image), BBOX_LIST (a one-dimensional list corresponding to the bounding boxes), LANDMARKS_LIST (a one-dimensional list corresponding to the keypoints), CLASSIFY_LIST (a one-dimensional list corresponding to the classification results), and RESULT_LIST (a one-dimensional list corresponding to the output results). The nested list type is a two-dimensional list of the corresponding list type, for example... Figure 4The diagram shows IMAGE_LIST_LIST (a two-dimensional list of images), BBOX_LIST_LIST (a two-dimensional list of bounding boxes), LANDMARKS_LIST_LIST (a two-dimensional list of keypoints), CLASSIFY_LIST_LIST (a two-dimensional list of classification results), and RESULT_LIST_LIST (a two-dimensional list of output results). Fine-grained inference action nodes explicitly declare the types of their inputs and outputs during construction, and the front end performs type matching verification based on this when establishing connections.
[0047] In some embodiments, the front end performs the following checks when establishing a connection: output nodes can only receive outputs from rule nodes; rule nodes can only output to output nodes; fine-grained inference action nodes and data nodes cannot be directly connected to output nodes; the input ports of non-rule nodes require that the source data type and the target data type be strictly consistent; the input of rule nodes does not check the type and can receive the outputs of any fine-grained inference action node or data node.
[0048] In some embodiments, the Python backend reads the Pipeline JSON through the first code generator json_to_pipeline.py and automatically generates a Python script that includes pre-trained model loading, fine-grained inference action registration, DAG construction, and inference execution; the script directly calls Graph.run() to execute inference during trial run and serializes the result and returns it to the frontend.
[0049] Furthermore, the C++ inference server reads the same Pipeline JSON (program file) through the second code generator json_to_pipeline_server.py and automatically generates the C++ HTTP service main program; the model registration, action registration and graph construction logic in the C++ main program correspond one-to-one with the Python script.
[0050] Furthermore, when loading a pre-trained model, if a model with the same name already exists in the model instance mapping table, the model manager directly returns the instance and increments the reference count; if it does not exist, the loader is called to load the model into the GPU (computing card) memory, store it in the mapping table, and set the reference count to one; when releasing the model, the corresponding reference count is decremented by one, and if it drops to zero, the instance is removed from the mapping table and its release method is called to reclaim the memory.
[0051] Furthermore, such as Figure 5As shown, the data nodes in Python provide a read-only data access interface through the @property decorator and expose the clone() method for deep copying; in C++, all data fields of each type are private members, providing only a const reference access interface; in-situ modification of the input node is prohibited in the execution callback of the fine-grained inference action node.
[0052] Furthermore, the DAG execution engine pre-calculates the topological sort using the Kahn algorithm before execution; during execution, it traverses the fine-grained reasoning action nodes in topological order, prepares an input node list for each action node from the entries of its upstream nodes in the local runtime node table, calls the action execution callback, and binds the output node back to the local runtime node table.
[0053] Furthermore, when the backend automatically generates the C++ HTTP service main program, it automatically generates the registration function call corresponding to the model type based on the pre-trained model array in the JSON configuration; it automatically instantiates each action node and registers it globally based on the fine-grained inference action array; it automatically constructs a DAG based on the node definition and connection relationship; and it generates an HTTP POST processor to parse the request, inject input, call the DAG to execute, and serialize the return result.
[0054] Furthermore, the rule node receives the inference result data output by the upstream fine-grained inference action node, and generates an alarm event through single-frame condition expression calculation, temporal state machine evaluation, and spatial polygon filtering; the temporal state machine supports instantaneous mode, continuous mode, and frequency mode; in the video stream processing session, the C++ inference server performs monotonicity verification on the timestamp of the input frame, and if the timestamp of the current frame is less than the maximum timestamp that has been processed, the frame is rejected from entering the DAG for execution.
[0055] Furthermore, when the region data node exports its JSON configuration, its polygon vertex parameters are forcibly set to empty; at runtime, polygon vertices are injected through external overlay parameters to achieve differentiated region configurations for the same orchestration process on different inference instances.
[0056] The present application will be further described in detail below with reference to specific embodiments: Orchestration and trial operation of a visual drag-and-drop face analysis pipeline: In this embodiment, the goal is to construct an inference pipeline of "face detection → cropping → alignment → attribute classification"; the hardware environment is a single NVIDIA RTX 4090 (24G) graphics card, and the software environment is Python 3.10+, ONNXRuntime 1.18+, and TensorRT 8.6+.
[0057] Step 1: Visualize DAG arrangement 1.1 Open the browser frontend and enter the PipelineEditor canvas; 1.2 Drag and drop the following nodes from the left-hand component library onto the canvas: Pre-trained model nodes: Detection model (face_detector.onnx), Classification model (gender_classifier.onnx); Data nodes: Input IMAGE (check is_input), Output RESULT (check is_output); Fine-grained inference action nodes: Detect action (detect), Batch cropping action (crop_batch), Batch alignment action (align_batch), Batch classification action (classify_batch), Result merging action (merge_detect_analysis_to_result); 1.3 Connecting nodes: IMAGE → detect (type validation: IMAGE → IMAGE, passed); detect → crop_batch (BBOX_LIST → BBOX_LIST, passed); IMAGE → crop_batch (IMAGE → IMAGE, passed); crop_batch → align_batch (IMAGE_LIST → IMAGE_LIST, passed); align_batch → classify_batch (IMAGE_LIST → IMAGE_LIST, passed); detect → merge_detect_analysis_to_result (BBOX_LIST → BBOX_LIST, passed); classify_batch → merge_detect_analysis_to_result (CLASSIFY_LIST → CLASSIFY_LIST, passed); merge_detect_analysis_to_result → RESULT (RESULT → RESULT, passed); 1.4 Configuration parameters: In the detection action attribute panel, set prob_thresh (probability threshold) = 0.3 and iou_thresh (intersection over union ratio threshold) = 0.5; in the pruning action, set expand_ratio (expansion ratio) = 0.2; the front end automatically synchronizes the input and output port definitions of each node through _syncNodeIO.
[0058] Step 2: Python inference trial run verification: 2.1 Click the "Trial Run" button in the top toolbar. The front end will export the current canvas as Pipeline JSON and send it to the Python backend / api / inference / trial via HTTP POST. 2.2 The Python backend calls json_to_pipeline.py to read JSON and automatically generates a Python inference script; 2.3 The Python backend uses ONNXRuntime (inference engine) to load face_detector.onnx and gender_classifier.onnx, executes graph.run(), and serializes the results (detection box coordinates, classification labels) and returns them to the frontend; 2.4 Front-end visualization: A green detection box is overlaid on the input image, labeled "gender: male, confidence: 0.92"; when the user finds that a side profile is missed, the prob_thresh of the detection action is adjusted from 0.3 to 0.25, and the trial run is clicked again. The missed detection problem is solved, and the algorithm logic is verified.
[0059] Step 3: Generate a C++ production service from the same JSON. 3.1 When the user clicks "Export JSON", the front end sends the Pipeline JSON containing the debugged parameters to the back end; 3.2 The backend calls json_to_pipeline_server.py to read the same JSON, automatically generating the C++ HTTP service main program main.cpp (approximately 120 lines). 3.3 Automatically generate CMakeLists.txt and use find_package(pipeline_core_sdk) to link the SDK static library; 3.4 Execute `bash build_sdk.sh` to compile and generate a single executable file, `pipeline_server`; 3.5 Start the service: . / pipeline_server --model-root . / models --config . / pipeline.json --port 18080; Load the detection model and classification model in a single process and listen on the HTTP port.
[0060] Step 4: Accuracy Equivalence Verification 4.1 Using the same test image, request both the Python trial run interface and the C++ production interface separately; 4.2 Compare the bounding box coordinates ([x1, y1, x2, y2, conf, cls_id]) and classification results (class_id, confidence, probs) output by both. 4.3 Verification Results: The difference in bounding box coordinates between the Python and C++ sides is less than 0.001 pixels, the class_id is completely consistent, and the confidence difference is less than 0.001, confirming that the precision is equivalent.
[0061] Multi-channel concurrent inference and rule-based alerting for video streams: In this embodiment, the goal is to run face detection and attribute analysis of 40 video streams simultaneously on a single RTX 4090, and to test the system's concurrency performance and rule engine.
[0062] Step 1: Build the video streaming pipeline 1.1 Construct the same DAG as in Example 1 on the canvas, but switch the algorithm type to VIDEO_STREAM; 1.2 Add a rule node: Set mode="duration", condition="count>0", duration_sec=5, cooldown_sec=10; 1.3 Add an output node (Sink): webhook_sink, and configure the URL to "http: / / localhost:8080 / alert"; 1.4 Connection: merge_detect_analysis_to_result → rule (RESULT→RESULT); rule→ webhook_sink (ALERT→ALERT).
[0063] Step 2: Single-process multi-model shared instance 2.1 Start the C++ service and load face_detector and gender_classifier through ModelManager; 2.2 The service creates 4 StreamSessions simultaneously. Each session independently maintains the runtime_nodes local variable, but shares the same set of model instances in the ModelManager. 2.3 Observation of memory usage using nvidia-smi: The detection model is loaded once (approximately 800MB), the classification model is loaded once (approximately 200MB), 40 streams share the same instance, plus a batch buffer, the total memory usage is approximately 8.2GB; Step 3: Zero-copy and lock-free concurrency 3.1 Each stream calls Graph::run() independently. During execution, the DAG is copied to a local variable via mutex and the lock is released immediately. 3.2 The BBOX_LIST node for detecting action output is accessed via std::shared_ptr. <node>Directly pass references to the cropping operation without copying the detection box list; 3.3 Test with perf: The end-to-end latency of a single stream is 12ms, and the latency of a single stream when 4 streams are concurrent is 14ms, with a latency increase of only 16%, which proves that the lock-free concurrent design is effective.
[0064] Step 4: Rule engine and timestamp protection 4.1 The 3rd stream receives out-of-order frames due to network jitter (the timestamp is 0.5 seconds smaller than that of the previous frame); 4.2 StreamSession::onFrameInternal() detects that timestamp < last_processed_timestamp_, rejects this frame, and protects the timing state machine in duration mode from being corrupted; 4.3 When a certain stream continuously detects a human face for 5 seconds, the rule is triggered, and an alert (including JPEG screenshot and JSON payload) is pushed to the Python backend via AlertHubSink.
[0065] In summary, the present application has the following beneficial effects: 1. Orchestration is execution, WYSIWYG, shortening the debugging cycle: Verified through Python inference trial run, after the user completes visual drag-and-drop orchestration, the user can immediately click the trial run button, use the ONNX pre-trained model to perform inference on the Python backend and view the visualization results, verify the algorithm logic without writing any code, and shorten the debugging cycle from several days to several minutes.
[0066] 2. Direct deployment after Python verification to ensure equivalent accuracy: The Python backend and the C++ inference server share the same set of DAG definitions, type systems, action logic and pre-trained model configurations, both of which are generated from the same JSON configuration. After the Python inference trial run is verified, the C++ service can be directly compiled and deployed, avoiding the accuracy drift problem caused by the inconsistency between the Python prototype and the C++ production code in the traditional mode.
[0067] 3. Coexistence of multiple models in a single process on a single card, eliminating network communication overhead: Through the global singleton model manager and reference counting mechanism, the same pre-trained model loads only one instance in a single process, and multiple fine-grained inference action nodes share this instance, avoiding multi-node RPC communication, and significantly improving the QPS of small models.
[0068] 4. Zero-copy data flow to reduce end-to-end inference latency: The data node is designed as an immutable carrier, and direct references are used for edge transmission, avoiding memory copy and serialization overhead when image tensors and detection box lists are transferred between nodes.
[0069] 5. Runtime state localization supports high-concurrency inference: When the DAG is executed, the definition is copied to local variables and then the lock is released. There is no shared state contention during execution, and the same graph instance can be called concurrently by multiple threads, improving inference throughput.
[0070] 6. Strict type system for early error detection: Three-level hierarchical type and port type verification can detect model input-output mismatch issues during the orchestration stage, shortening the debugging cycle.
[0071] 7. One-click generation of native services, reducing deployment threshold: Automatically generate C++ HTTPServer source code from JSON orchestration configuration, compile to generate a single executable file, achieving "what you write is what you get", shortening the development cycle of complex inference algorithms from several days to several hours.
[0072] According to one aspect of the embodiments of this application, such as Figure 6 As shown, a single-card multi-model visualization orchestration device 400 for real-time deep learning inference is provided, the device comprising: The acquisition unit 401 is used to acquire a directed acyclic graph composed of multiple nodes and generate a first program file in a target format based on the directed acyclic graph; Engine generation unit 402 is used to read the first program file through the first program backend and generate an inference engine corresponding to the directed acyclic graph. The inference unit 403 is used to input the first input data for trial operation verification into the inference engine, and to perform inference on the first input data through the inference engine to obtain a serialized inference result; Judgment unit 404 is used to determine whether the directed acyclic graph has passed verification based on the serialized reasoning result; The main program generation unit 405 is used to generate a second program file in the target format based on the verified directed acyclic graph, and read the second program file through the second program backend to generate a service main program corresponding to the verified directed acyclic graph. The compilation unit 406 is used to compile the main service program corresponding to the verified directed acyclic graph into a single executable file, and deploy the single executable file in a single computing card; Execution unit 407 is configured to receive second input data carrying a target inference request through the computing power card, execute the single executable file, so that the service main program in the single executable file performs inference on the second input data to obtain a serialized target inference result; When the computing power card executes the single executable file, a single process is formed. The single executable file includes multiple pre-trained models, which are multiple pre-trained model nodes among the multiple nodes. The multiple pre-trained models share the process steps corresponding to the directed acyclic graph after the verification is passed. Reference Figure 7 , Figure 7 To implement the structural block diagram of a portion of the terminal 140 in this application embodiment, the terminal 140 includes: a radio frequency (RF) circuit 710, a memory 715, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780, and a power supply 790, among other components. Those skilled in the art will understand that... Figure 7 The terminal 140 structure shown does not constitute a limitation on a mobile phone or computer, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0073] The RF circuit 710 can be used to receive and transmit signals during information transmission or calls. In particular, it receives downlink information from the base station and processes it with the processor 780; in addition, it transmits uplink data to the base station.
[0074] The memory 715 can be used to store software programs and modules. The processor 780 executes various functional applications of the terminal and single-card multi-model visualization orchestration processing for real-time deep learning inference by running the software programs and modules stored in the memory 715.
[0075] The input unit 730 can be used to receive input numeric or character information, and to generate key signal inputs related to the terminal's settings and function control. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732.
[0076] The display unit 740 can be used to display input or provided information, as well as various menus of the terminal. The display unit 740 may include a display panel 741.
[0077] Audio circuitry 760, speaker 761, and microphone 762 provide an audio interface.
[0078] In this embodiment, the processor 780 included in the terminal 140 can execute the single-card multi-model visualization orchestration method for real-time deep learning inference in the previous embodiment.
[0079] The terminal 140 in this application embodiment includes, but is not limited to, mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, and aircraft. This application embodiment can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, and assisted driving.
[0080] Figure 8 This is a partial structural block diagram of a server 110 implementing an embodiment of this application. The server 110 can vary significantly due to different configurations or performance characteristics, and may include one or more central processing units (CPUs) 822 (e.g., one or more processors) and memory 832, and one or more storage media 830 (e.g., one or more mass storage devices) for storing application programs 842 or data 844. The memory 832 and storage media 830 can be temporary or persistent storage. The program stored in the storage media 830 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server 110. Furthermore, the CPU 822 may be configured to communicate with the storage media 830 and execute the series of instruction operations in the storage media 830 on the server 110.
[0081] Server 110 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input / output interfaces 858, and / or one or more operating systems 841, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0082] The central processing unit 822 in server 110 can be used to execute the single-card multi-model visualization orchestration method for real-time deep learning inference according to the embodiments of this application.
[0083] This application also provides a computer-readable storage medium for storing program code, which is used to execute the single-card multi-model visualization orchestration method for real-time deep learning inference in the foregoing embodiments.
[0084] This application also provides a computer program product, which includes a computer program. A processor of a computer device reads and executes the computer program, causing the computer device to perform the aforementioned single-card multi-model visualization orchestration method for real-time deep learning inference.
[0085] Furthermore, the terms "comprising" and "including," and any variations thereof, are intended to cover non-exclusive inclusion, such that a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or apparatus.
[0086] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0087] It should be understood that in the description of the embodiments of this application, "multiple" means two or more, "greater than", "less than", "exceeding" etc. are understood to exclude the number itself, and "above", "below", "within" etc. are understood to include the number itself.
[0088] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.
[0089] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of this application, depending on actual needs.
[0090] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0091] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0092] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.
[0093] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0094] The above is a detailed description of the embodiments of this application. However, this application is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.< / node>
Claims
1. A single-card multi-model visualization orchestration method for real-time deep learning inference, characterized in that, The method includes: Obtain a directed acyclic graph consisting of multiple nodes, and generate a first program file in the target format based on the directed acyclic graph; The first program file is read by the first program backend to generate an inference engine corresponding to the directed acyclic graph; The first input data used for trial operation verification is input into the inference engine, and the inference engine performs inference on the first input data to obtain a serialized inference result; Based on the serialized reasoning results, determine whether the directed acyclic graph has passed verification; A second program file in the target format is generated based on the verified directed acyclic graph, and the second program file is read by the second program backend to generate the service main program corresponding to the verified directed acyclic graph; The main service program corresponding to the verified directed acyclic graph is compiled into a single executable file, and the single executable file is deployed on a single computing card. The computing card receives second input data carrying a target inference request, and executes the single executable file so that the service main program in the single executable file performs inference on the second input data to obtain a serialized target inference result. When the computing card executes the single executable file, it forms a single process. The single executable file includes multiple pre-trained models, which are multiple pre-trained model nodes among the multiple nodes. The multiple pre-trained models share the process steps corresponding to the directed acyclic graph after the verification is passed.
2. The single-card multi-model visualization orchestration method for real-time deep learning inference according to claim 1, characterized in that, The directed acyclic graph is generated through the following steps: The data type of each node is determined, including pre-trained model nodes, fine-grained inference action nodes, data nodes, rule nodes, and output nodes; The execution order of each fine-grained inference action node and the target node referenced by each fine-grained inference action node are determined, wherein the target node is one or more of the pre-trained model node, the data node, and the rule node; The directed acyclic graph is generated based on the execution order of each fine-grained inference action node, the target node referenced by each fine-grained inference action node, and the output node. The output node is the node in the last execution order of the directed acyclic graph. The input and output data types of the fine-grained reasoning action nodes both belong to a three-level hierarchical type system, which includes basic types, list types, and nested list types. The target format is JSON format. The rule nodes include nodes with instantaneous time sequence, nodes with continuous time sequence, and nodes with frequency time sequence.
3. The single-card multi-model visualization orchestration method for real-time deep learning inference according to claim 1, characterized in that, The step of reading the first program file through the first program backend and generating an inference engine corresponding to the directed acyclic graph includes: The first program backend calls the first code generator, which reads the first program file and generates an inference script belonging to the architecture of the first program backend. The inference script is determined as the inference engine for executing the directed acyclic graph; The data node is defined as an immutable data carrier node. The internal data of the data node is accessed through a read-only attribute. When the edges between fine-grained reasoning action nodes in the directed acyclic graph reference the data node, they do not copy the data content of the data node.
4. The single-card multi-model visualization orchestration method for real-time deep learning inference according to claim 2, characterized in that, The first input data used for trial operation verification is input into the inference engine, and the inference engine performs inference on the first input data to obtain a serialized inference result, including: Each pre-trained model node in the directed acyclic graph is determined, and each pre-trained model node corresponds to a pre-trained model. The types of pre-trained models include detection models and classification models. The actions corresponding to each fine-grained inference action node are executed sequentially according to the execution order of each fine-grained inference action node. When executing the action corresponding to each fine-grained inference action node, the pre-trained model node referenced by the fine-grained inference action node is determined, and inference is performed on the first input data through the pre-trained model corresponding to the pre-trained model node referenced by the fine-grained inference action node to obtain the inference result corresponding to the fine-grained inference action node. The serialized reasoning result is generated based on the reasoning result corresponding to each of the fine-grained reasoning action nodes and the execution order of each of the fine-grained reasoning action nodes; In this process, multiple threads can simultaneously call the directed acyclic graph after verification.
5. The single-card multi-model visualization orchestration method for real-time deep learning inference according to claim 1, characterized in that, The step of determining whether the directed acyclic graph passes verification based on the serialized inference result includes: The serialized reasoning result is superimposed on the first input data to obtain the display data; The displayed data is compared with preset display reference data. If the displayed data matches the preset display reference data, the directed acyclic graph verification is deemed successful.
6. The single-card multi-model visualization orchestration method for real-time deep learning inference according to claim 2, characterized in that, The step of reading the second program file through the second program backend and generating the service main program corresponding to the verified directed acyclic graph includes: The second program backend calls the second code generator, which reads the second program file and generates a service main program for executing the inference process of the directed acyclic graph after the verification is passed. The first program file and the second program file are generated through the same management architecture, which includes the definition architecture of the directed acyclic graph, the three-layer hierarchical type system, the logical architecture used by the fine-grained inference action nodes, and the pre-configured pre-trained model architecture.
7. The single-card multi-model visualization orchestration method for real-time deep learning inference according to claim 2, characterized in that, When referencing a data node, the fine-grained inference action node does not copy the data content of the data node, but directly points to the data node through a pointer to complete the reference to the data node.
8. A single-card multi-model visualization orchestration device for real-time deep learning inference, characterized in that, The device includes: The acquisition unit is used to acquire a directed acyclic graph consisting of multiple nodes and generate a first program file in a target format based on the directed acyclic graph. An engine generation unit is used to read the first program file through the first program backend and generate an inference engine corresponding to the directed acyclic graph. The inference unit is used to input the first input data for trial operation verification into the inference engine, and to perform inference on the first input data through the inference engine to obtain a serialized inference result; The judgment unit is used to determine whether the directed acyclic graph has passed verification based on the serialized reasoning result; The main program generation unit is used to generate a second program file in the target format based on the verified directed acyclic graph, and to read the second program file through the second program backend to generate a service main program corresponding to the verified directed acyclic graph. The compilation unit is used to compile the main service program corresponding to the verified directed acyclic graph into a single executable file, and deploy the single executable file in a single computing card; An execution unit is configured to receive second input data carrying a target inference request via the computing power card, and execute the single executable file so that the service main program in the single executable file performs inference on the second input data to obtain a serialized target inference result; When the computing card executes the single executable file, it forms a single process. The single executable file includes multiple pre-trained models, which are multiple pre-trained model nodes among the multiple nodes. The multiple pre-trained models share the process steps corresponding to the directed acyclic graph after the verification is passed.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the single-card multi-model visualization orchestration method for real-time deep learning inference as described in any one of claims 1-7.
10. A computer program product, the computer program product comprising a computer program, characterized in that, The computer program is read and executed by the processor of the electronic device, causing the electronic device to perform the single-card multi-model visualization orchestration method for real-time deep learning inference as described in any one of claims 1 to 7.
