- 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>
Traceback (most recent call last):
File "/home/ubuntu/Hunyuan3D_2.1/demo.py", line 37, in <module>
paint_pipeline = Hunyuan3DPaintPipeline(conf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Hunyuan3D_2.1/hy3dpaint/textureGenPipeline.py", line 86, in __init__
self.load_models()
File "/home/ubuntu/Hunyuan3D_2.1/hy3dpaint/textureGenPipeline.py", line 91, in load_models
self.models["multiview_model"] = multiviewDiffusionNet(self.config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Hunyuan3D_2.1/hy3dpaint/utils/multiview_utils.py", line 32, in __init__
cfg = OmegaConf.load(cfg_path)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/anaconda3/envs/comfy/lib/python3.12/site-packages/omegaconf/omegaconf.py", line 189, in load
with io.open(os.path.abspath(file_), "r", encoding="utf-8") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/Hunyuan3D_2.1/cfgs/hunyuan-paint-pbr.yaml'
(comfy) ubuntu@ip-172-31-41-22:~/Hunyuan3D_2.1$