You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thank you for open sourcing these models!
I've been trying to run the api_server.py as well as ComfyUI nodes from this repo. In both cases I keep having the same error with the texture generation module.
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | Traceback (most recent call last):
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | File "/usr/app/Hunyuan3D-2/api_server.py", line 272, in <module>
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | worker = ModelWorker(model_path=args.model_path, device=args.device)
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | File "/usr/app/Hunyuan3D-2/api_server.py", line 142, in __init__
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | self.pipeline_tex = Hunyuan3DPaintPipeline.from_pretrained(model_path)
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | File "/usr/app/Hunyuan3D-2/hy3dgen/texgen/pipelines.py", line 86, in from_pretrained
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | raise FileNotFoundError(f"Model path {original_model_path} not found and we could not find it at huggingface")
hunyuan3d | 2025-02-01 11:44:32 | ERROR | stderr | FileNotFoundError: Model path tencent/Hunyuan3D-2 not found and we could not find it at huggingface
My model files seem to be properly downloaded, I have this:
classHunyuan3DPaintPipeline:
@classmethoddeffrom_pretrained(cls, model_path):
original_model_path=model_pathifnotos.path.exists(model_path):
# try local pathbase_dir=os.environ.get('HY3DGEN_MODELS', '~/.cache/hy3dgen')
model_path=os.path.expanduser(os.path.join(base_dir, model_path))
delight_model_path=os.path.join(model_path, 'hunyuan3d-delight-v2-0')
multiview_model_path=os.path.join(model_path, 'hunyuan3d-paint-v2-0')
ifnotos.path.exists(delight_model_path) ornotos.path.exists(multiview_model_path):
try:
importhuggingface_hub# download from huggingfacemodel_path=huggingface_hub.snapshot_download(repo_id=original_model_path)
delight_model_path=os.path.join(model_path, 'hunyuan3d-delight-v2-0')
multiview_model_path=os.path.join(model_path, 'hunyuan3d-paint-v2-0')
returncls(Hunyuan3DTexGenConfig(delight_model_path, multiview_model_path))
exceptImportError:
logger.warning(
"You need to install HuggingFace Hub to load models from the hub."
)
raiseRuntimeError(f"Model path {model_path} not found")
else:
returncls(Hunyuan3DTexGenConfig(delight_model_path, multiview_model_path))
raiseFileNotFoundError(f"Model path {original_model_path} not found and we could not find it at huggingface")
How can I solve this issue please?
The text was updated successfully, but these errors were encountered:
Hello and thank you for open sourcing these models!
I've been trying to run the
api_server.py
as well as ComfyUI nodes from this repo. In both cases I keep having the same error with the texture generation module.My model files seem to be properly downloaded, I have this:
I looked into your code and I noticed the function
Hunyuan3DPaintPipeline.from_pretrained
always raises aFileNotFoundError
line 86. Is it normal? https://github.com/Tencent/Hunyuan3D-2/blob/main/hy3dgen/texgen/pipelines.py#L86How can I solve this issue please?
The text was updated successfully, but these errors were encountered: