@@ -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
0 commit comments