- Added `ben2_onnx.py` for BEN2 ONNX inference with preprocessing. - Introduced `da3_onnx.py` for Depth Anything 3 inference, including camera projection calculations. - Created `moge_onnx.py` for MoGe-2 ONNX inference and post-processing. - Implemented shared ONNX Runtime session helpers in `onnx_runtime.py`. - Added model synchronization script `sync_models.py` for downloading and verifying ONNX models. - Developed unit tests for BEN2, Depth Anything 3, and MoGe ONNX models to ensure functionality. - Updated `vendor.lock.toml` to remove unused artifacts.
41 lines
1.1 KiB
Markdown
41 lines
1.1 KiB
Markdown
# 开发与许可证
|
||
|
||
## 开发
|
||
|
||
```bash
|
||
uv run python prepare_vendor.py
|
||
uv run pytest tests -v
|
||
uv run python pack.py
|
||
```
|
||
|
||
项目结构:
|
||
|
||
```text
|
||
.
|
||
├── vendor.lock.toml 各平台 uv 的版本、URL 与 SHA-256
|
||
├── prepare_vendor.py 下载并校验各平台 uv
|
||
├── pack.py
|
||
├── vendor/ 不进入 Git 的 uv 下载缓存
|
||
├── src/
|
||
│ └── snapform/
|
||
│ ├── blender_manifest.toml
|
||
│ ├── service.py
|
||
│ ├── install_env.py
|
||
│ ├── models.py
|
||
│ ├── image_depth.py
|
||
│ ├── operators.py
|
||
│ ├── panel.py
|
||
│ ├── preferences.py
|
||
│ ├── properties.py
|
||
│ ├── client.py
|
||
│ └── worker.py
|
||
└── tests/
|
||
```
|
||
|
||
## 上游与许可证
|
||
|
||
- Depth Anything 3 代码采用 Apache 2.0。
|
||
- BEN2 ONNX 模型采用其仓库声明的 Apache 2.0 License。
|
||
- 本 Extension 代码采用 GPL-3.0-or-later。
|
||
- 模型权重许可证由所选 Hugging Face 模型仓库决定,Extension 下载前会在界面显示。
|