Commit Graph

10 Commits

Author SHA1 Message Date
m3ultra
ba4e2ad42b generate_asset: meshgod-grade metal PBR lane — RAM-sized face cap, forced-opaque alpha, 4096 textures
- SAFETY_FACE_TARGET: flat 200k laptop mtlbvh guard -> RAM-sized (>=96GB
  Studios get 500k ~ fal-parity detail; TRELLIS2_MAX_BAKE_FACES override,
  0 = uncapped)
- _force_opaque: rewrite GLB materials to alphaMode OPAQUE after metal/
  kdtree bakes — o_voxel's noisy baked alpha + min<250 BLEND auto-detect
  rendered solid hair as a transparent speckle veil
  (TRELLIS2_ALPHA_MODE=auto keeps baked alpha for glassy subjects)
- --texture-size: allow 4096

m3ultra verified (seed 0, 1024_cascade, metal@500k): 156s total, 26.2GB
peak, candidate_pbr 391,782 tris + 2048 PBR textures, raw master 2.19M
tris — vs 94,535-face BLEND output before.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-22 19:36:04 +10:00
m3ultra
0db816b55d vertex baker: export contract + vertex normals; validator accepts COLOR_0 asset class
Some checks failed
CodeQL Advanced / Analyze (${{ matrix.language }}) (none, c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
- _export_pbr vertex branch returns (trimesh, pre_simplified) per contract
- materialize vertex_normals pre-export (glTF NORMAL, same trick as _raw_trimesh)
- gltf_validation: COLOR_0-without-UVs primitives are a legitimate color-bearing
  static asset (glTF default material x COLOR_0); texture checks skip for them

Full gate now EXIT=0: 71.96s e2e, 26.5GB peak (from A0 216.6s / 75.4GB).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 03:53:35 +10:00
m3ultra
7860148eb2 spconv Metal kernel (opt-in) + fix vertex baker scheduler fallthrough
Some checks are pending
CodeQL Advanced / Analyze (${{ matrix.language }}) (none, c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
- sparse_conv_metal: fused gather-GEMM kernel, parity 8e-4 vs stock;
  honest verdict: stock chunking already bounds memory at decoder scale
  (1.97GB synthetic peak) and beats the scalar kernel on speed — kept as
  TRELLIS2_METAL_SPCONV=1 opt-in + upstream reference, NOT default.
- _attempt_schedule: preferred=vertex now runs the vertex baker (was
  silently falling through to the 5h+ pure-python kdtree grind).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 03:37:20 +10:00
m3ultra
746e727da2 generate_asset: --baker vertex — IDW voxel-grid vertex-color baker (dark-patch fix)
Some checks are pending
CodeQL Advanced / Analyze (${{ matrix.language }}) (none, c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Same sampler as trellis-mac TRELLIS2_BAKER=vertex; Metal texel path retained
as-is. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 19:16:08 +10:00
Jourloy
1488ba1505 fix: distinguish requested and safety decimation 2026-07-17 09:27:47 +03:00
Jourloy
b50b5c4fc5 fix: retry Metal build with ABI fallback 2026-07-17 09:26:00 +03:00
Jourloy
2b7f47fc87 fix: cache only pinned runtime weights 2026-07-17 09:24:41 +03:00
Jourloy
f59e6e5981 feat: add native Apple Silicon asset pipeline 2026-07-17 09:21:34 +03:00
Pedro Augusto
d15e6de829 inline env defaults in api_server, remove start script, drop intermediate mx.eval syncs 2026-07-17 07:51:05 +03:00
Pedro Augusto
9cd27537d9 add mlx backend for apple silicon with metal gpu acceleration 2026-07-17 07:51:05 +03:00