Commit Graph

2 Commits

Author SHA1 Message Date
Akasei
e150058012 feat(batch): use steps=50, resolution=512, max_views=9 for RTX 3080
768 resolution causes OOM (14.6GB model activation) on RTX 3080 20GB.
512 is the practical maximum: texture model uses 6.59GB, leaving
sufficient headroom. Increased max_views 6→9 for better texture coverage.

Result: 9/9 images → textured GLB in 12.3 min total.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-16 20:53:12 +08:00
Akasei
b6685c9560 feat: add batch 3D generation script with VRAM optimization
- Add batch_generate.py: two-phase pipeline (shape→texture) that loads
  models sequentially to avoid OOM on RTX 3080
- Fix mesh_utils.py: make bpy import lazy so load_mesh/save_mesh work
  without Blender installed
- Phase 1: shape generation for all images, then unload
- Phase 2: texture generation for all meshes, then unload
- Skip already-generated outputs for resumability
- Tested: 9/9 images successfully generated textured GLB models

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-16 20:20:46 +08:00