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.
This commit is contained in:
2026-08-31 15:15:33 +08:00
parent 377eee43f5
commit e7aeeb21d4
99 changed files with 1953 additions and 1676 deletions

View File

@@ -4,19 +4,19 @@ from enum import StrEnum
import bpy
from ..common.image_data import (
from ...common.image_data import (
color_data_name,
image_rgba,
)
from ..common.depth_data import camera_depth_values, depth_uniform_scale
from ..common.mesh_result import (
from ...common.depth_data import camera_depth_values, depth_uniform_scale
from ...common.object import (
IMAGE_MATERIAL_NODE_GROUP_NAME,
create_image_material,
finalize_object_result,
load_asset_node_group,
modifier_input_identifier,
set_modifier_input,
)
from ...common.node import load_node_group
from .geometry import (
DEFAULT_DEPTH_BASELINE,
DEFAULT_DEPTH_DIRECTION,
@@ -123,7 +123,7 @@ def _cropped_color_image(source_object, region_mask, source_rgba):
def load_cutout_node_group():
return load_asset_node_group(CUTOUT_NODE_GROUP_NAME)
return load_node_group(CUTOUT_NODE_GROUP_NAME)
def _connect_balloon_normal_scale(material):