mirror of
https://git.datalinker.icu/kijai/ComfyUI-Hunyuan3DWrapper.git
synced 2025-12-09 04:44:26 +08:00
Update nodes.py
This commit is contained in:
parent
f0d38b5b5d
commit
c899ce1a4d
6
nodes.py
6
nodes.py
@ -576,6 +576,9 @@ class Hy3DRenderMultiViewDepth:
|
||||
|
||||
def process(self, mesh, render_size, texture_size, camera_config=None):
|
||||
|
||||
mm.unload_all_models()
|
||||
mm.soft_empty_cache()
|
||||
|
||||
from .hy3dgen.texgen.differentiable_renderer.mesh_render import MeshRender
|
||||
|
||||
if camera_config is None:
|
||||
@ -970,6 +973,9 @@ class Hy3DGenerateMesh:
|
||||
|
||||
def process(self, pipeline, image, steps, guidance_scale, seed, mask=None):
|
||||
|
||||
mm.unload_all_models()
|
||||
mm.soft_empty_cache()
|
||||
|
||||
device = mm.get_torch_device()
|
||||
offload_device = mm.unet_offload_device()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user