mirror of
https://git.datalinker.icu/kijai/ComfyUI-Hunyuan3DWrapper.git
synced 2026-05-25 06:31:19 +08:00
Update nodes.py
Clear memory before starting BPT operation
This commit is contained in:
parent
c7e0ab75e6
commit
cc742005d7
3
nodes.py
3
nodes.py
@ -1293,7 +1293,8 @@ class Hy3DBPT:
|
|||||||
DESCRIPTION = "BPT the mesh using bpt: https://github.com/whaohan/bpt"
|
DESCRIPTION = "BPT the mesh using bpt: https://github.com/whaohan/bpt"
|
||||||
|
|
||||||
def bpt(self, trimesh, enable_bpt, temperature, pc_num, seed, samples):
|
def bpt(self, trimesh, enable_bpt, temperature, pc_num, seed, samples):
|
||||||
|
mm.unload_all_models()
|
||||||
|
mm.soft_empty_cache()
|
||||||
new_mesh = trimesh.copy()
|
new_mesh = trimesh.copy()
|
||||||
if enable_bpt:
|
if enable_bpt:
|
||||||
from .hy3dgen.shapegen.postprocessors import BptMesh
|
from .hy3dgen.shapegen.postprocessors import BptMesh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user