Skip to content

Commit 3c0a6c2

Browse files
authored
Update pipelines.py
1 parent 2ee4770 commit 3c0a6c2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

hy3dgen/texgen/pipelines.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,10 @@ def from_pretrained(cls, model_path, subfolder='hunyuan3d-paint-v2-0-turbo'):
7575
delight_model_path = os.path.join(model_path, 'hunyuan3d-delight-v2-0')
7676
multiview_model_path = os.path.join(model_path, subfolder)
7777
return cls(Hunyuan3DTexGenConfig(delight_model_path, multiview_model_path, subfolder))
78-
except ImportError:
79-
logger.warning(
80-
"You need to install HuggingFace Hub to load models from the hub."
81-
)
82-
raise RuntimeError(f"Model path {model_path} not found")
78+
except Exception:
79+
import traceback
80+
traceback.print_exc()
81+
raise RuntimeError(f"Something wrong while loading {model_path}")
8382
else:
8483
return cls(Hunyuan3DTexGenConfig(delight_model_path, multiview_model_path, subfolder))
8584

0 commit comments

Comments
 (0)