Use the Python API in the download instructions
Browse files
README.md
CHANGED
|
@@ -15,12 +15,16 @@ Benchmark labels, ID-Head features, model predictions, and the outputs of the re
|
|
| 15 |
The folders mirror the layout of the repository root, which the scripts use as their data root. Download into a clone of the GitHub repository, all at once or by folder:
|
| 16 |
|
| 17 |
```bash
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
sha256sum -c checksums/IDSet3D.sha256 --ignore-missing
|
| 21 |
```
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
## Contents
|
| 26 |
|
|
|
|
| 15 |
The folders mirror the layout of the repository root, which the scripts use as their data root. Download into a clone of the GitHub repository, all at once or by folder:
|
| 16 |
|
| 17 |
```bash
|
| 18 |
+
pip install -U huggingface_hub
|
| 19 |
+
python - <<'EOF'
|
| 20 |
+
from huggingface_hub import snapshot_download
|
| 21 |
+
skip = ["README.md", ".gitattributes"] # keep the GitHub repository's README.md and .gitattributes
|
| 22 |
+
snapshot_download("wolfkingttf/IDSet3D", repo_type="dataset", local_dir=".", ignore_patterns=skip)
|
| 23 |
+
EOF
|
| 24 |
sha256sum -c checksums/IDSet3D.sha256 --ignore-missing
|
| 25 |
```
|
| 26 |
|
| 27 |
+
Skipping `README.md` and `.gitattributes` keeps the files of the GitHub repository from being replaced. To fetch only some folders, add `allow_patterns=["predictions/*", "checksums/*"]` to the call.
|
| 28 |
|
| 29 |
## Contents
|
| 30 |
|