From 4ab443c55229a817fd8ac5c7d530eddd519f99f3 Mon Sep 17 00:00:00 2001 From: sko00o Date: Tue, 17 Jun 2025 11:29:08 +0800 Subject: [PATCH] fix: TypeError: Hunyuan3DPaintPipeline.from_pretrained() got an unexpected keyword argument 'torch_dtype' --- Gen_3D_Modules/Hunyuan3D_V2/hy3dgen/texgen/pipelines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gen_3D_Modules/Hunyuan3D_V2/hy3dgen/texgen/pipelines.py b/Gen_3D_Modules/Hunyuan3D_V2/hy3dgen/texgen/pipelines.py index 33cbebc..4f23459 100644 --- a/Gen_3D_Modules/Hunyuan3D_V2/hy3dgen/texgen/pipelines.py +++ b/Gen_3D_Modules/Hunyuan3D_V2/hy3dgen/texgen/pipelines.py @@ -52,7 +52,7 @@ class Hunyuan3DTexGenConfig: class Hunyuan3DPaintPipeline: @classmethod - def from_pretrained(cls, model_path, subfolder='hunyuan3d-paint-v2-0-turbo'): + def from_pretrained(cls, model_path, subfolder='hunyuan3d-paint-v2-0-turbo', **kwargs): delight_model_path = os.path.join(model_path, 'hunyuan3d-delight-v2-0') multiview_model_path = os.path.join(model_path, subfolder)