- Implement JobClient for handling HTTP requests to the JobServer. - Create ModalJobOperatorBase for managing Blender job lifecycle. - Introduce JobContext and JobServer for job management and state handling. - Add ServiceConnection and ServiceController for managing service processes. - Implement job submission, cancellation, and resource management endpoints in the server. - Ensure proper error handling and job state updates throughout the service.
50 lines
1.3 KiB
Markdown
50 lines
1.3 KiB
Markdown
# 开发与许可证
|
||
|
||
## 开发
|
||
|
||
```bash
|
||
uv run pytest tests -v
|
||
uv run python pack.py
|
||
```
|
||
|
||
项目结构:
|
||
|
||
```text
|
||
.
|
||
├── pack.py
|
||
├── src/
|
||
│ └── snapform/
|
||
│ ├── blender_manifest.toml
|
||
│ ├── install_env.py
|
||
│ ├── models.py
|
||
│ ├── operators.py
|
||
│ ├── panel.py
|
||
│ ├── preferences.py
|
||
│ ├── properties.py
|
||
│ ├── client.py
|
||
│ ├── blendjob/
|
||
│ │ ├── client.py
|
||
│ │ ├── operator.py
|
||
│ │ ├── service.py
|
||
│ │ └── server.py
|
||
│ ├── blender/
|
||
│ │ ├── depth_plane.py
|
||
│ │ └── surface.py
|
||
│ └── ai_service/
|
||
│ ├── server.py
|
||
│ ├── model_manager.py
|
||
│ ├── jobs.py
|
||
│ ├── ben2_onnx.py
|
||
│ ├── da3_onnx.py
|
||
│ ├── moge_onnx.py
|
||
│ └── onnx_runtime.py
|
||
└── tests/
|
||
```
|
||
|
||
## 上游与许可证
|
||
|
||
- Depth Anything 3 代码采用 Apache 2.0。
|
||
- BEN2 ONNX 模型采用其仓库声明的 Apache 2.0 License。
|
||
- 本 Extension 代码采用 GPL-3.0-or-later。
|
||
- 模型权重许可证由所选 Hugging Face 模型仓库决定,Extension 下载前会在界面显示。
|