|
1 | 1 |
|
2 | 2 | # API Integration |
3 | 3 |
|
4 | | -## 🔧 Custom Input/Output Mode |
| 4 | +- Development Phase: Design and debug workflows using the visual interface. **Develop custom nodes when necessary** |
| 5 | +- Deployment Phase: Export JSON configuration and load via API |
5 | 6 |
|
6 | | -**Use Cases**: Dynamic input data setting in code, or custom output result processing |
| 7 | +Whether through visual interface or API calls, all workflows execute in the unified high-performance C++ compute engine, ensuring consistency between development and deployment environments. |
7 | 8 |
|
8 | | -**Core Steps**: |
| 9 | +## Custom Input/Output Mode |
9 | 10 |
|
10 | | -1. Remove input/output nodes from the workflow |
11 | | -2. Set input data through code |
12 | | -3. Retrieve and process output results |
| 11 | +**Use Cases**: Dynamic input data setting in code and custom output result processing |
13 | 12 |
|
14 | | -**Python Example**: |
| 13 | +**Python LLM Example**: |
15 | 14 |
|
16 | 15 | ```python |
17 | 16 | import nndeploy |
@@ -39,7 +38,7 @@ result = output_edge.get_graph_output() |
39 | 38 | graph.deinit() |
40 | 39 | ``` |
41 | 40 |
|
42 | | -**C++ Example**: |
| 41 | +**C++ LLM Example**: |
43 | 42 |
|
44 | 43 | ```cpp |
45 | 44 | #include "nndeploy/dag/graph.h" |
@@ -69,7 +68,7 @@ tokenizer::TokenizerText* result = output->getGraphOutput<tokenizer::TokenizerTe |
69 | 68 | status = graph->deinit(); |
70 | 69 | ``` |
71 | 70 |
|
72 | | -## 🎯 Complete Workflow Mode |
| 71 | +## Complete Workflow Mode |
73 | 72 |
|
74 | 73 | **Use Cases**: Workflow contains complete input/output processing logic, no additional data setup required |
75 | 74 |
|
@@ -99,16 +98,11 @@ status = graph->deinit(); |
99 | 98 |
|
100 | 99 | --- |
101 | 100 |
|
102 | | -## 📚 Example Code |
| 101 | +## Example Code |
103 | 102 |
|
104 | 103 | | Algorithm Type | Python Example | C++ Example | |
105 | 104 | | -------------- | -------------- | ----------- | |
106 | 105 | | **Large Language Model** | [Python LLM](https://github.com/nndeploy/nndeploy/blob/main/demo/llm/demo.py) | [C++ LLM](https://github.com/nndeploy/nndeploy/blob/main/demo/llm/demo.cc) | |
107 | 106 | | **Object Detection** | [Python Detection](https://github.com/nndeploy/nndeploy/blob/main/demo/detect/demo.py) | [C++ Detection](https://github.com/nndeploy/nndeploy/blob/main/demo/detect/demo.cc) | |
108 | 107 |
|
109 | | -## 🚀 Recommended Development Workflow |
110 | 108 |
|
111 | | -- Development Phase: Design and debug workflows using the visual interface. **Develop custom nodes when necessary** |
112 | | -- Deployment Phase: Export JSON configuration and load via API |
113 | | -
|
114 | | -Whether through visual interface or API calls, all workflows execute in the unified high-performance C++ compute engine, ensuring consistency between development and deployment environments. |
0 commit comments