更新 README.md
This commit is contained in:
parent
b115b1a898
commit
e6527ff591
14
README.md
14
README.md
@ -1,4 +1,4 @@
|
||||
结构图(如有误请纠正)
|
||||
结构图(如有误请纠正)
|
||||
```mermaid
|
||||
graph TD
|
||||
%% 用户和网关
|
||||
@ -7,7 +7,6 @@ graph TD
|
||||
%% Gateway 调度逻辑
|
||||
Gateway -->|"1. 存储原始数据"| Folder1
|
||||
Gateway -->|"2. 创建任务记录"| SQLite[(SQLite<br/>任务状态数据库)]
|
||||
Gateway -->|"3. 数据切片分发"| TaskQueue{任务队列}
|
||||
|
||||
%% 共享存储子图
|
||||
subgraph Storage["Docker Shared Volume (/app/data)"]
|
||||
@ -18,8 +17,7 @@ graph TD
|
||||
end
|
||||
|
||||
%% 任务分发到 Matting
|
||||
TaskQueue -->|"4. POST /matting {task_id}"| MattingAPI[统一 Matting API]
|
||||
|
||||
Gateway -->|"4. POST /matting {task_id}"| MattingAPI[统一 Matting API]
|
||||
%% Matting 服务集群
|
||||
MattingAPI -->|"5. 分发任务"| MattingCluster
|
||||
subgraph MattingCluster["Matting Service 集群<br/>(共享 GPU)"]
|
||||
@ -35,9 +33,10 @@ graph TD
|
||||
MattingCluster -->|"9. 更新状态<br/>(matting_done)"| SQLite
|
||||
|
||||
%% Gateway 轮询调度
|
||||
SQLite -.->|"10. 轮询检测<br/>matting_done"| Gateway
|
||||
Gateway -->|"11. POST /compare {task_id}"| ComparisonAPI[统一 Comparison API]
|
||||
|
||||
%% SQLite -.->|"10. 轮询检测<br/>matting_done"| Gateway
|
||||
M1 -->|"11. POST /compare {task_id}"| ComparisonAPI[统一 Comparison API]
|
||||
M2 -->|"11. POST /compare {task_id}"| ComparisonAPI[统一 Comparison API]
|
||||
M3 -->|"11. POST /compare {task_id}"| ComparisonAPI[统一 Comparison API]
|
||||
%% Comparison 服务集群
|
||||
ComparisonAPI -->|"12. 分发任务"| ComparisonCluster
|
||||
subgraph ComparisonCluster["Comparison Service 集群<br/>(共享 GPU)"]
|
||||
@ -58,7 +57,6 @@ graph TD
|
||||
|
||||
%% 样式美化 - 黑色背景优化
|
||||
style Gateway fill:#1e88e5,stroke:#64b5f6,stroke-width:3px,color:#fff
|
||||
style TaskQueue fill:#ffa726,stroke:#ffb74d,stroke-width:2px,color:#000
|
||||
style SQLite fill:#ab47bc,stroke:#ce93d8,stroke-width:2px,color:#fff
|
||||
style MattingAPI fill:#26c6da,stroke:#4dd0e1,stroke-width:2px,color:#000
|
||||
style ComparisonAPI fill:#ff7043,stroke:#ff8a65,stroke-width:2px,color:#fff
|
||||
|
||||
Loading…
Reference in New Issue
Block a user