Spaces:
Running
on
Zero
Running
on
Zero
Update hy3dgen/shapegen/pipelines.py
Browse files
hy3dgen/shapegen/pipelines.py
CHANGED
|
@@ -215,7 +215,7 @@ class Hunyuan3DDiTPipeline:
|
|
| 215 |
if not os.path.exists(model_path):
|
| 216 |
|
| 217 |
try:
|
| 218 |
-
import
|
| 219 |
path = snapshot_download(
|
| 220 |
repo_id=original_model_path,
|
| 221 |
allow_patterns=[f"hunyuan3d-dit-v2-0/*"], # 关键修改:模式匹配子文件夹
|
|
|
|
| 215 |
if not os.path.exists(model_path):
|
| 216 |
|
| 217 |
try:
|
| 218 |
+
from huggingface_hub import snapshot_download
|
| 219 |
path = snapshot_download(
|
| 220 |
repo_id=original_model_path,
|
| 221 |
allow_patterns=[f"hunyuan3d-dit-v2-0/*"], # 关键修改:模式匹配子文件夹
|