Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- .gitignore +2 -2
- README.md +5 -5
- app_hg.py +9 -0
.gitignore
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
outputs
|
36 |
.vscode/
|
37 |
inference.py
|
38 |
-
|
39 |
-
|
40 |
# third_party/dust3r
|
41 |
# app_hg.py
|
|
|
35 |
outputs
|
36 |
.vscode/
|
37 |
inference.py
|
38 |
+
weights
|
39 |
+
third_party/weights
|
40 |
# third_party/dust3r
|
41 |
# app_hg.py
|
README.md
CHANGED
@@ -223,14 +223,14 @@ bash scripts/image_to_3d_lite_separately.sh ./demos/example_000.png ./outputs/te
|
|
223 |
#### Baking related
|
224 |
|
225 |
```bash
|
|
|
|
|
|
|
|
|
226 |
cd ./third_party
|
227 |
git clone --recursive https://github.com/naver/dust3r.git
|
228 |
|
229 |
-
|
230 |
-
cd weights/DUSt3R_ViTLarge_BaseDecoder_512_dpt
|
231 |
-
|
232 |
-
wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth
|
233 |
-
cd ../../..
|
234 |
```
|
235 |
|
236 |
If you download related code and weights, we list some additional arg:
|
|
|
223 |
#### Baking related
|
224 |
|
225 |
```bash
|
226 |
+
mkdir -p ./third_party/weights/DUSt3R_ViTLarge_BaseDecoder_512_dpt
|
227 |
+
huggingface-cli download naver/DUSt3R_ViTLarge_BaseDecoder_512_dpt \
|
228 |
+
--local-dir ./third_party/weights/DUSt3R_ViTLarge_BaseDecoder_512_dpt
|
229 |
+
|
230 |
cd ./third_party
|
231 |
git clone --recursive https://github.com/naver/dust3r.git
|
232 |
|
233 |
+
cd ..
|
|
|
|
|
|
|
|
|
234 |
```
|
235 |
|
236 |
If you download related code and weights, we list some additional arg:
|
app_hg.py
CHANGED
@@ -83,6 +83,15 @@ def download_models():
|
|
83 |
print("Successfully downloaded HunyuanDiT model")
|
84 |
except Exception as e:
|
85 |
print(f"Error downloading HunyuanDiT: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
download_models()
|
88 |
|
|
|
83 |
print("Successfully downloaded HunyuanDiT model")
|
84 |
except Exception as e:
|
85 |
print(f"Error downloading HunyuanDiT: {e}")
|
86 |
+
try:
|
87 |
+
snapshot_download(
|
88 |
+
repo_id="naver/DUSt3R_ViTLarge_BaseDecoder_512_dpt",
|
89 |
+
local_dir="./third_party/weights/DUSt3R_ViTLarge_BaseDecoder_512_dpt",
|
90 |
+
resume_download=True
|
91 |
+
)
|
92 |
+
print("Successfully downloaded DUSt3R model")
|
93 |
+
except Exception as e:
|
94 |
+
print(f"Error downloading DUSt3R: {e}")
|
95 |
|
96 |
download_models()
|
97 |
|