Files
AnyImage/docs/internals/index.md
nan e7aeeb21d4 Add tools and tests for AnyImage model management and documentation
- Implement sync_models.py for preparing and uploading ONNX artifacts.
- Create build_node.py for building and validating Blender scripts.
- Add docs.py for building and previewing documentation with Mike or MkDocs.
- Introduce model_exports.py for exporting PyTorch models to ONNX format.
- Develop pack.py for packaging the project with dependencies for different platforms.
- Add test_sync_models.py to validate sync_models functionality.
- Add test_tool_commands.py to ensure repository tools have correct command scripts.
- Initialize tools package with __init__.py.
2026-08-31 15:15:33 +08:00

2.0 KiB
Raw Blame History

内部实现总览

Blender 进程负责交互与数据创建,独立 Job Server 负责模型推理和文件处理。两侧通过 BlendJob 传递可序列化参数与 Job 目录中的产物。

flowchart TD
    Input["Image Empty / 手势"] --> Operator["Blender Operator"]
    Operator --> Choice{"需要独立计算?"}
    Choice -- "否" --> Build["Blender 主线程构建"]
    Choice -- "是" --> Runtime["BlendJob Runtime"]
    Runtime --> Server["Job Server"]
    Server --> Files["Job 产物"]
    Files --> Build
    Build --> Result["Image / Mesh / Material / Modifier"]

项目主干

.
├── src/anyimage/
│   ├── __init__.py          # Blender 注册入口
│   ├── menu.py              # Image Empty 右键菜单
│   ├── preferences.py       # 扩展级配置
│   ├── properties.py        # Scene 状态与模型枚举
│   ├── runtime.py           # BlendJob Runtime 配置
│   ├── common/              # Blender 侧共享原子能力
│   ├── operators/           # 交互、任务提交与结果导入
│   ├── server/              # 无 Blender 依赖的计算端
│   ├── assets/              # 随扩展分发的节点资产
│   └── wheels/              # 随扩展分发的 BlendJob wheel
├── tools/                   # 打包、模型同步与 Blender 节点资产
└── tests/                   # Python 自动化测试

文档分层