mirror of
https://git.datalinker.icu/kijai/ComfyUI-Hunyuan3DWrapper.git
synced 2026-05-17 04:51:18 +08:00
Remove BPT batch size as it's per node
This commit is contained in:
parent
8c4c0f81d1
commit
ceb93eea69
5
nodes.py
5
nodes.py
@ -1280,7 +1280,6 @@ class Hy3DBPT:
|
|||||||
"trimesh": ("TRIMESH",),
|
"trimesh": ("TRIMESH",),
|
||||||
"enable_bpt": ("BOOLEAN", {"default": True}),
|
"enable_bpt": ("BOOLEAN", {"default": True}),
|
||||||
"temperature": ("FLOAT", {"default": 0.5}),
|
"temperature": ("FLOAT", {"default": 0.5}),
|
||||||
"batch_size": ("INT", {"default": 1}),
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1290,12 +1289,12 @@ class Hy3DBPT:
|
|||||||
CATEGORY = "Hunyuan3DWrapper"
|
CATEGORY = "Hunyuan3DWrapper"
|
||||||
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, batch_size):
|
def bpt(self, trimesh, enable_bpt, temperature):
|
||||||
|
|
||||||
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
|
||||||
new_mesh = BptMesh()(new_mesh, with_normal=True, temperature=temperature, batch_size=batch_size)
|
new_mesh = BptMesh()(new_mesh, with_normal=True, temperature=temperature, batch_size=1)
|
||||||
mm.unload_all_models()
|
mm.unload_all_models()
|
||||||
mm.soft_empty_cache()
|
mm.soft_empty_cache()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user