mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-11 02:52:36 +08:00
Adds torch-free serializers for sealed workers: ndarray (base64), PLY (point clouds), NPZ (depth frames), TRIMESH (meshes), SKELETON (geometry). comfy_api_sealed_worker package for V1-style sealed node type definitions. SaveNPZ/SavePLY nodes. comfy_api _ui.py child-process detection.
19 lines
629 B
Python
19 lines
629 B
Python
"""comfy_api_sealed_worker — torch-free type definitions for sealed worker children.
|
|
|
|
Drop-in replacement for comfy_api.latest._util type imports in sealed workers
|
|
that do not have torch installed. Contains only data type definitions (TrimeshData,
|
|
PLY, NPZ, etc.) with numpy-only dependencies.
|
|
|
|
Usage in serializers:
|
|
if _IMPORT_TORCH:
|
|
from comfy_api.latest._util.trimesh_types import TrimeshData
|
|
else:
|
|
from comfy_api_sealed_worker.trimesh_types import TrimeshData
|
|
"""
|
|
|
|
from .trimesh_types import TrimeshData
|
|
from .ply_types import PLY
|
|
from .npz_types import NPZ
|
|
|
|
__all__ = ["TrimeshData", "PLY", "NPZ"]
|