AttributeError: 'ModelWorker' object has no attribute 'pipeline_tex'
Diffusion Sampling:: 0%| | 0/20 [00:00<?, ?it/s] Diffusion Sampling:: 5%|███ | 1/20 [00:00<00:02, 9.31it/s] Diffusion Sampling:: 20%|████████████▍ | 4/20 [00:00<00:00, 17.55it/s] Diffusion Sampling:: 30%|██████████████████▌ | 6/20 [00:00<00:00, 15.85it/s] Diffusion Sampling:: 40%|████████████████████████▊ | 8/20 [00:00<00:00, 15.12it/s] Diffusion Sampling:: 50%|██████████████████████████████▌ | 10/20 [00:00<00:00, 14.72it/s] Diffusion Sampling:: 60%|████████████████████████████████████▌ | 12/20 [00:00<00:00, 15.07it/s] Diffusion Sampling:: 70%|██████████████████████████████████████████▋ | 14/20 [00:00<00:00, 14.41it/s] Diffusion Sampling:: 80%|████████████████████████████████████████████████▊ | 16/20 [00:01<00:00, 14.58it/s] Diffusion Sampling:: 90%|██████████████████████████████████████████████████████▉ | 18/20 [00:01<00:00, 14.42it/s] Diffusion Sampling:: 100%|█████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 14.43it/s] Diffusion Sampling:: 100%|█████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 14.69it/s] 2025-03-28 16:53:57 | ERROR | stderr | 2025-03-28 16:53:57,317 - hy3dgen.shapgen - INFO - FlashVDMVolumeDecoding Resolution: [63, 126, 252] 2025-03-28 16:53:57 | INFO | hy3dgen.shapgen | FlashVDMVolumeDecoding Resolution: [63, 126, 252] FlashVDM Volume Decoding: 0%| | 0/64 [00:00<?, ?it/s] FlashVDM Volume Decoding: 100%|██████████████████████████████████████████████████████| 64/64 [00:00<00:00, 1345.00it/s] 2025-03-28 16:53:57 | ERROR | stderr | 2025-03-28 16:53:57 | INFO | controller | --- 2.501056432723999 seconds --- 2025-03-28 16:53:59 | INFO | stdout | Caught Unknown Error 'ModelWorker' object has no attribute 'pipeline_tex' 2025-03-28 16:53:59 | ERROR | stderr | Traceback (most recent call last): 2025-03-28 16:53:59 | ERROR | stderr | File "C:\Hunyuan3D-2\api_server.py", line 250, in generate 2025-03-28 16:53:59 | ERROR | stderr | file_path, uid = worker.generate(uid, params) 2025-03-28 16:53:59 | ERROR | stderr | File "C:\Hunyuan3D-2\env1\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context 2025-03-28 16:53:59 | ERROR | stderr | return func(*args, **kwargs) 2025-03-28 16:53:59 | ERROR | stderr | File "C:\Hunyuan3D-2\api_server.py", line 219, in generate 2025-03-28 16:53:59 | ERROR | stderr | mesh = self.pipeline_tex(mesh, image) 2025-03-28 16:53:59 | ERROR | stderr | AttributeError: 'ModelWorker' object has no attribute 'pipeline_tex' 2025-03-28 16:53:59 | INFO | stdout | INFO: 127.0.0.1:60366 - "POST /generate HTTP/1.1" 404 Not Found
이미지로 3D를 만드는데 'Generate texture'를 활성화하면 AttributeError: 'ModelWorker' object has no attribute 'pipeline_tex'와 같은 메세지가 나타납니다. 어떻게 해결하면 될까요?
When I create 3D from an image and enable 'Generate texture', I get a message like "AttributeError: 'ModelWorker' object has no attribute 'pipeline_tex'". How can I fix this?
Diffusion Sampling:: 0%| | 0/20 [00:00<?, ?it/s]扩散采样:: 0%| |0/20 [00:00<?, ?它/秒] Diffusion Sampling:: 5%|███ | 1/20 [00:00<00:02, 9.31it/s]扩散采样:: 5%|███ |1/20 [00:00<00:02, 9.31it/s] Diffusion Sampling:: 20%|████████████▍ | 4/20 [00:00<00:00, 17.55it/s]扩散采样::20%|████████████▍ |4/20 [00:00<00:00, 17.55 英寸/秒] Diffusion Sampling:: 30%|██████████████████▌ | 6/20 [00:00<00:00, 15.85it/s]扩散采样::30%|██████████████████▌ |6/20 [00:00<00:00, 15.85 英寸/秒] Diffusion Sampling:: 40%|████████████████████████▊ | 8/20 [00:00<00:00, 15.12it/s]扩散采样::40%|████████████████████████▊ |8/20 [00:00<00:00, 15.12it/s] Diffusion Sampling:: 50%|██████████████████████████████▌ | 10/20 [00:00<00:00, 14.72it/s]扩散采样::50%|██████████████████████████████▌ |10/20 [00:00<00:00, 14.72it/s] Diffusion Sampling:: 60%|████████████████████████████████████▌ | 12/20 [00:00<00:00, 15.07it/s]扩散采样::60%|████████████████████████████████████▌ |12/20 [00:00<00:00, 15.07it/s] Diffusion Sampling:: 70%|██████████████████████████████████████████▋ | 14/20 [00:00<00:00, 14.41it/s]扩散采样::70%|██████████████████████████████████████████▋ |14/20 [00:00<00:00, 14.41it/s] Diffusion Sampling:: 80%|████████████████████████████████████████████████▊ | 16/20 [00:01<00:00, 14.58it/s]扩散采样::80%|████████████████████████████████████████████████▊ |16/20 [00:01<00:00,14.58 英寸/秒] Diffusion Sampling:: 90%|██████████████████████████████████████████████████████▉ | 18/20 [00:01<00:00, 14.42it/s]扩散采样::90%|██████████████████████████████████████████████████████▉ |18/20 [00:01<00:00, 14.42it/s] Diffusion Sampling:: 100%|█████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 14.43it/s]扩散采样::100%|█████████████████████████████████████████████████████████████|20/20 [00:01<00:00, 14.43it/s] Diffusion Sampling:: 100%|█████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 14.69it/s]扩散采样::100%|█████████████████████████████████████████████████████████████|20/20 [00:01<00:00,14.69 英寸/秒] 2025-03-28 16:53:57 | ERROR | stderr |2025-03-28 16:53:57 |错误 |stderr | 2025-03-28 16:53:57,317 - hy3dgen.shapgen - INFO - FlashVDMVolumeDecoding Resolution: [63, 126, 252]2025-03-28 16:53:57,317 - hy3dgen.shapgen - 信息 - FlashVDMVolume 解码分辨率:[63、126、252] 2025-03-28 16:53:57 | INFO | hy3dgen.shapgen | FlashVDMVolumeDecoding Resolution: [63, 126, 252]2025-03-28 16:53:57 |信息 |hy3dgen.shapgen |FlashVDM 虚拟解码分辨率:[63, 126, 252] FlashVDM Volume Decoding: 0%| | 0/64 [00:00<?, ?it/s]FlashVDM 卷解码:0%| |0/64 [00:00<?, ?它/秒] FlashVDM Volume Decoding: 100%|██████████████████████████████████████████████████████| 64/64 [00:00<00:00, 1345.00it/s]FlashVDM 卷解码:100%|██████████████████████████████████████████████████████|64/64 [00:00<00:00,1345.00 英寸/秒] 2025-03-28 16:53:57 | ERROR | stderr |2025-03-28 16:53:57 |错误 |stderr | 2025-03-28 16:53:57 | INFO | controller | --- 2.501056432723999 seconds ---2025-03-28 16:53:57 |信息 |控制器 |--- 2.501056432723999 秒--- 2025-03-28 16:53:59 | INFO | stdout | Caught Unknown Error 'ModelWorker' object has no attribute 'pipeline_tex'2025-03-28 16:53:59 |信息 |标准输出 |捕获到未知错误 'ModelWorker' 对象没有属性 'pipeline_tex' 2025-03-28 16:53:59 | ERROR | stderr | Traceback (most recent call last):2025-03-28 16:53:59 |错误 |stderr |回溯 (最近调用最后): 2025-03-28 16:53:59 | ERROR | stderr | File "C:\Hunyuan3D-2\api_server.py", line 250, in generate2025-03-28 16:53:59 |错误 |stderr | 文件 “C:\Hunyuan3D-2\api_server.py”,第 250 行,在 generate 中 2025-03-28 16:53:59 | ERROR | stderr | file_path, uid = worker.generate(uid, params)2025-03-28 16:53:59 |错误 |stderr | file_path, uid = worker.generate(uid, params) 2025-03-28 16:53:59 | ERROR | stderr | File "C:\Hunyuan3D-2\env1\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context2025-03-28 16:53:59 |错误 |stderr | 文件“C:\Hunyuan3D-2\env1\lib\site-packages\torch\utils_contextlib.py”,第 116 行,decorate_context 2025-03-28 16:53:59 | ERROR | stderr | return func(*args, **kwargs)2025-03-28 16:53:59 |错误 |stderr | 返回 func(*args, **kwargs) 2025-03-28 16:53:59 | ERROR | stderr | File "C:\Hunyuan3D-2\api_server.py", line 219, in generate2025-03-28 16:53:59 |错误 |stderr | 文件 “C:\Hunyuan3D-2\api_server.py”,第 219 行,在 generate 中 2025-03-28 16:53:59 | ERROR | stderr | mesh = self.pipeline_tex(mesh, image)2025-03-28 16:53:59 |错误 |stderr | 网格 = self.pipeline_tex(网格,图像) 2025-03-28 16:53:59 | ERROR | stderr | AttributeError: 'ModelWorker' object has no attribute 'pipeline_tex'2025-03-28 16:53:59 |错误 |stderr |AttributeError:“ModelWorker”对象没有属性“pipeline_tex” 2025-03-28 16:53:59 | INFO | stdout | INFO: 127.0.0.1:60366 - "POST /generate HTTP/1.1" 404 Not Found2025-03-28 16:53:59 |信息 |标准输出 |信息:127.0.0.1:60366 - “POST /generate HTTP/1.1” 404 未找到
이미지로 3D를 만드는데 'Generate texture'를 활성화하면 AttributeError: 'ModelWorker' object has no attribute 'pipeline_tex'와 같은 메세지가 나타납니다. 어떻게 해결하면 될까요?如果从图像创建 3D 并启用“生成纹理”,则会看到类似 AttributeError: 'ModelWorker' object has no attribute 'pipeline_tex' 的消息。我该如何解决?
When I create 3D from an image and enable 'Generate texture', I get a message like "AttributeError: 'ModelWorker' object has no attribute 'pipeline_tex'". How can I fix this?当我从图像创建 3D 并启用“生成纹理”时,我收到类似“AttributeError: 'ModelWorker' 对象没有属性 'pipeline_tex'”的消息。我该如何解决这个问题?
Did you solve it?
扩散采样:: 0%| |0/20 [00:00<?, ?it/s] 扩散采样::5%|███ |1/20 [00:00<00:02, 9.31it/s] 扩散采样::20%|████████████▍ |4/20 [00:00<00:00, 17.55it/s] 扩散采样::30%|██████████████████▌ |6/20 [00:00<00:00, 15.85it/s] 扩散采样::40%|████████████████████████▊ |8/20 [00:00<00:00, 15.12it/s] 扩散采样::50%|██████████████████████████████▌ |10/20 [00:00<00:00, 14.72it/s] 扩散采样::60%|████████████████████████████████████▌ |12/20 [00:00<00:00, 15.07it/s] 扩散采样::70%|██████████████████████████████████████████▋ |14/20 [00:00<00:00, 14.41it/s] 扩散采样::80%|████████████████████████████████████████████████▊ |16/20 [00:01<00:00, 14.58it/s] 扩散采样::90%|██████████████████████████████████████████████████████▉ |18/20 [00:01<00:00, 14.42it/s] 扩散采样::100%|█████████████████████████████████████████████████████████████|20/20 [00:01<00:00, 14.43it/s] 扩散采样::100%|█████████████████████████████████████████████████████████████|20/20 [00:01<00:00, 14.69it/s] 2025-03-28 16:53:57 |错误 |stderr | 2025-03-28 16:53:57,317 - hy3dgen.shapgen - 信息 - FlashVDMVolume解码分辨率:[63, 126, 252] 2025-03-28 16:53:57 |信息 |hy3dgen.shapgen |FlashVDM音量解码分辨率:[63, 126, 252] FlashVDM音量解码:0%| |0/64 [00:00<?, ?it/s] FlashVDM 卷解码:100%|██████████████████████████████████████████████████████|64/64 [00:00<00:00, 1345.00it/s] 2025-03-28 16:53:57 |错误 |stderr | 2025-03-28 16:53:57 |信息 |控制器 |--- 2.501056432723999 秒 --- 2025-03-28 16:53:59 |信息 |标准输出 |捕获到未知错误 'ModelWorker' 对象没有属性 'pipeline_tex' 2025-03-28 16:53:59 |错误 |stderr |回溯(最近一次调用):2025-03-28 16:53:59 |错误 |stderr |文件 “C:\Hunyuan3D-2\api_server.py”,第 250 行,生成 2025-03-28 16:53:59 |错误 |stderr |file_path, uid = worker.generate(uid, params) 2025-03-28 16:53:59 |错误 |stderr |文件 “C:\Hunyuan3D-2\env1\lib\site-packages\torch\utils_contextlib.py”,第 116 行,decorate_context 2025-03-28 16:53:59 |错误 |stderr |返回 func(*args, **kwargs) 2025-03-28 16:53:59 |错误 |stderr |文件 “C:\Hunyuan3D-2\api_server.py”,第 219 行,生成 2025-03-28 16:53:59 |错误 |stderr |网格 = self.pipeline_tex(网格, 图像) 2025-03-28 16:53:59 |错误 |stderr |AttributeError:“ModelWorker”对象没有属性“pipeline_tex” 2025-03-28 16:53:59 |信息 |标准输出 |信息:127.0.0.1:60366 - “POST /generate HTTP/1.1” 404 未找到
이미지로 3D를 만드는데 'Generate texture'를 활성화하면 AttributeError: 'ModelWorker' object has no attribute 'pipeline_tex'와 같은 메세지가 나타납니다.어떻게 해결하면 될까요?
当我从图像创建 3D 并启用“生成纹理”时,我收到类似“AttributeError: 'ModelWorker' 对象没有属性 'pipeline_tex'”的消息。我该如何解决这个问题?
I'm encountering the same issue. May I ask if you've resolved it?
Run the api with the --enable_tex parameter
Run the api with the parameter
--enable_tex
It worked! Thank you!
Run the api with the
--enable_texparameter
(env1) C:\Hunyuan3D-2>python api_server.py --enable_tex --host 0.0.0.0 --port 8080
2025-04-14 17:42:36 | INFO | controller | args: Namespace(host='0.0.0.0', port=8080, model_path='tencent/Hunyuan3D-2mini', tex_model_path='tencent/Hunyuan3D-2', device='cuda', limit_model_concurrency=5, enable_tex=True)
2025-04-14 17:42:36 | INFO | controller | Loading the model tencent/Hunyuan3D-2mini on worker 980b9d ...
2025-04-14 17:42:36,972 - hy3dgen.shapgen - INFO - Try to load model from local path: C:\Users\com/.cache/hy3dgen\tencent/Hunyuan3D-2mini\hunyuan3d-dit-v2-mini-turbo
2025-04-14 17:42:36 | INFO | hy3dgen.shapgen | Try to load model from local path: C:\Users\com/.cache/hy3dgen\tencent/Hunyuan3D-2mini\hunyuan3d-dit-v2-mini-turbo
2025-04-14 17:42:36,972 - hy3dgen.shapgen - INFO - Model path not exists, try to download from huggingface
2025-04-14 17:42:36 | INFO | hy3dgen.shapgen | Model path not exists, try to download from huggingface
Fetching 3 files: 0%| | 0/3 [00:00<?, ?it/s]
Fetching 3 files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<?, ?it/s]
2025-04-14 17:42:37 | ERROR | stderr |
2025-04-14 17:42:37,220 - hy3dgen.shapgen - INFO - Loading model from C:\Users\com.cache\huggingface\hub\models--tencent--Hunyuan3D-2mini\snapshots\d3318f050d91fe232038820bbbabeab95c0de14e\hunyuan3d-dit-v2-mini-turbo\model.fp16.safetensors
2025-04-14 17:42:37 | INFO | hy3dgen.shapgen | Loading model from C:\Users\com.cache\huggingface\hub\models--tencent--Hunyuan3D-2mini\snapshots\d3318f050d91fe232038820bbbabeab95c0de14e\hunyuan3d-dit-v2-mini-turbo\model.fp16.safetensors
2025-04-14 17:42:38,751 - hy3dgen.shapgen - INFO - Try to load model from local path: C:\Users\com/.cache/hy3dgen\tencent/Hunyuan3D-2mini\hunyuan3d-vae-v2-mini-turbo
2025-04-14 17:42:38 | INFO | hy3dgen.shapgen | Try to load model from local path: C:\Users\com/.cache/hy3dgen\tencent/Hunyuan3D-2mini\hunyuan3d-vae-v2-mini-turbo
2025-04-14 17:42:38,752 - hy3dgen.shapgen - INFO - Model path not exists, try to download from huggingface
2025-04-14 17:42:38 | INFO | hy3dgen.shapgen | Model path not exists, try to download from huggingface
Fetching 3 files: 0%| | 0/3 [00:00<?, ?it/s]
Fetching 3 files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<?, ?it/s]
2025-04-14 17:42:38 | ERROR | stderr |
2025-04-14 17:42:38,968 - hy3dgen.shapgen - INFO - Loading model from C:\Users\com.cache\huggingface\hub\models--tencent--Hunyuan3D-2mini\snapshots\d3318f050d91fe232038820bbbabeab95c0de14e\hunyuan3d-vae-v2-mini-turbo\model.fp16.safetensors
2025-04-14 17:42:38 | INFO | hy3dgen.shapgen | Loading model from C:\Users\com.cache\huggingface\hub\models--tencent--Hunyuan3D-2mini\snapshots\d3318f050d91fe232038820bbbabeab95c0de14e\hunyuan3d-vae-v2-mini-turbo\model.fp16.safetensors
Fetching 13 files: 0%| | 0/13 [00:00<?, ?it/s]
Fetching 13 files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████| 13/13 [00:00<?, ?it/s]
2025-04-14 17:42:39 | ERROR | stderr |
Fetching 17 files: 0%| | 0/17 [00:00<?, ?it/s]
Fetching 17 files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████| 17/17 [00:00<?, ?it/s]
2025-04-14 17:42:40 | ERROR | stderr |
Loading pipeline components...: 0%| | 0/6 [00:00<?, ?it/s]
Loading pipeline components...: 33%|██████████████████████████▎ | 2/6 [00:00<00:00, 27.35it/s]
2025-04-14 17:42:40 | ERROR | stderr |
2025-04-14 17:42:40 | ERROR | stderr | Traceback (most recent call last):
2025-04-14 17:42:40 | ERROR | stderr | File "C:\Hunyuan3D-2\api_server.py", line 314, in
This doesn't work either. Please provide more details. Thank you,
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]).