d3c83053f2
- CMakeLists.txt - app.md - appicon.ico - backend/ - main.cpp Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
598 B
Python
24 lines
598 B
Python
"""Backend Trellis (Microsoft, MIT code).
|
|
|
|
STUB. Para implementar: clonar github.com/microsoft/TRELLIS a sources/,
|
|
instalar deps (kaolin + custom CUDA), cargar pipeline structured latents.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from typing import Any, Dict
|
|
from PIL import Image
|
|
|
|
|
|
class Handle:
|
|
def infer(self, image: Image.Image, cfg: Dict[str, Any]) -> bytes:
|
|
raise NotImplementedError(
|
|
"trellis backend pendiente. Ver notebook 04_smoke_trellis.ipynb"
|
|
)
|
|
|
|
def close(self) -> None: # pragma: no cover
|
|
return
|
|
|
|
|
|
def load() -> Handle:
|
|
return Handle()
|