Hunyuan3D-2 icon indicating copy to clipboard operation
Hunyuan3D-2 copied to clipboard

api_server Error

Open north151 opened this issue 8 months ago • 0 comments

2025-04-14 21:17:56 | ERROR | stderr | Traceback (most recent call last):
2025-04-14 21:17:56 | ERROR | stderr |   File "Hunyuan3D-2/api_server.py", line 314, in <module>
2025-04-14 21:17:56 | ERROR | stderr |     worker = ModelWorker(model_path=args.model_path, device=args.device, enable_tex=args.enable_tex,
2025-04-14 21:17:56 | ERROR | stderr |   File "Hunyuan3D-2/api_server.py", line 171, in __init__
2025-04-14 21:17:56 | ERROR | stderr |     self.pipeline_tex = Hunyuan3DPaintPipeline.from_pretrained(tex_model_path)
2025-04-14 21:17:56 | ERROR | stderr |   File "Hunyuan3D-2/hy3dgen/texgen/pipelines.py", line 77, in from_pretrained
2025-04-14 21:17:56 | ERROR | stderr |     return cls(Hunyuan3DTexGenConfig(delight_model_path, multiview_model_path, subfolder))
2025-04-14 21:17:56 | ERROR | stderr |   File "Hunyuan3D-2/hy3dgen/texgen/pipelines.py", line 95, in __init__
2025-04-14 21:17:56 | ERROR | stderr |     self.load_models()
2025-04-14 21:17:56 | ERROR | stderr |   File "Hunyuan3D-2/hy3dgen/texgen/pipelines.py", line 102, in load_models
2025-04-14 21:17:56 | ERROR | stderr |     self.models['multiview_model'] = Multiview_Diffusion_Net(self.config)
2025-04-14 21:17:56 | ERROR | stderr |   File "Hunyuan3D-2/hy3dgen/texgen/utils/multiview_utils.py", line 34, in __init__
2025-04-14 21:17:56 | ERROR | stderr |     pipeline = DiffusionPipeline.from_pretrained(
2025-04-14 21:17:56 | ERROR | stderr |   File "anaconda3/envs/hunyuan3d/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
2025-04-14 21:17:56 | ERROR | stderr |     return fn(*args, **kwargs)
2025-04-14 21:17:56 | ERROR | stderr |   File "anaconda3/envs/hunyuan3d/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 924, in from_pretrained
2025-04-14 21:17:56 | ERROR | stderr |     loaded_sub_model = load_sub_model(
2025-04-14 21:17:56 | ERROR | stderr |   File "anaconda3/envs/hunyuan3d/lib/python3.10/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 725, in load_sub_model
2025-04-14 21:17:56 | ERROR | stderr |     loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
2025-04-14 21:17:56 | ERROR | stderr |   File ".cache/huggingface/modules/diffusers_modules/local/modules.py", line 442, in from_pretrained
2025-04-14 21:17:56 | ERROR | stderr |     unet.load_state_dict(unet_ckpt, strict=True)
2025-04-14 21:17:56 | ERROR | stderr |   File "anaconda3/envs/hunyuan3d/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2584, in load_state_dict
2025-04-14 21:17:56 | ERROR | stderr |     raise RuntimeError(
2025-04-14 21:17:56 | ERROR | stderr | RuntimeError: Error(s) in loading state_dict for UNet2p5DConditionModel:
2025-04-14 21:17:56 | ERROR | stderr |  size mismatch for unet_dual.conv_in.weight: copying a param with shape torch.Size([320, 4, 3, 3]) from checkpoint, the shape in current model is torch.Size([320, 8, 3, 3]).

north151 avatar Apr 14 '25 13:04 north151