Skip to content

Commit 32b7aa1

Browse files
committed
Fix for painting
1 parent 3c11c67 commit 32b7aa1

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

hunyuan_3d_node.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,17 @@ def install_mesh_processor(this_path):
118118

119119
@staticmethod
120120
def install_check():
121-
print("install check")
122121
this_path = os.path.dirname(os.path.realpath(__file__))
123122

124-
if not os.path.exists(
125-
os.path.join(this_path, 'Hunyuan3D-2/README.md')
123+
if (
124+
(not os.path.exists(
125+
os.path.join(this_path, 'Hunyuan3D-2.0/README.md')
126+
))
127+
or (not os.path.exists(
128+
os.path.join(this_path, 'Hunyuan3D-2.1/README.md')
129+
))
126130
):
131+
print("clone submouldes")
127132
try:
128133
import pygit2
129134
repo_path = os.path.join(os.path.dirname(__file__))
@@ -226,8 +231,13 @@ def process(
226231

227232
if is21:
228233
this_path = os.path.dirname(os.path.realpath(__file__))
229-
sys.path.insert(0, os.path.join(this_path, './Hunyuan3D-2.1/hy3dshape'))
230-
sys.path.insert(0, os.path.join(this_path, './Hunyuan3D-2.1/hy3dpaint'))
234+
sys.path.insert(
235+
0, os.path.join(this_path, './Hunyuan3D-2.1/hy3dshape')
236+
)
237+
sys.path.insert(
238+
0,
239+
os.path.join(this_path, './Hunyuan3D-2.1/hy3dpaint')
240+
)
231241
output_3d_file = None
232242
with tempfile.TemporaryDirectory() as temp_dir:
233243
nth = 0
@@ -326,7 +336,7 @@ def process(
326336
from hy3dgen.texgen import Hunyuan3DPaintPipeline
327337
pipeline = Hunyuan3DPaintPipeline.from_pretrained(
328338
paint_model,
329-
use_safetensors=use_safetensors,
339+
# use_safetensors=use_safetensors,
330340
)
331341
mesh = pipeline(mesh, image=input_image_file)
332342

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-hunyuan-3d-2"
33
description = "Image to 3D using Hunyuan-3D-2"
4-
version = "0.9.6"
4+
version = "0.9.7"
55
license = {text = "MIT License"}
66

77
[project.urls]

0 commit comments

Comments
 (0)