wolfkingttf commited on
Commit
a759b7a
·
verified ·
1 Parent(s): 10be1ff

Use the Python API in the download instructions

Browse files
Files changed (1) hide show
  1. README.md +7 -3
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
- huggingface-cli download wolfkingttf/IDSet3D --repo-type dataset --local-dir . --exclude README.md .gitattributes
19
- huggingface-cli download wolfkingttf/IDSet3D --repo-type dataset --local-dir . --include "predictions/*" # one folder only
 
 
 
 
20
  sha256sum -c checksums/IDSet3D.sha256 --ignore-missing
21
  ```
22
 
23
- Excluding `README.md` and `.gitattributes` keeps the files of the GitHub repository from being replaced.
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