File size: 929 Bytes
155316b e961703 155316b 81014db | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | ---
task_categories:
- image-classification
license: cc-by-nc-4.0
---
https://github.com/NNNNAI/VGGFace2-HQ
## Bounded streaming
`datasets==5.0.0` does not execute loading scripts from the Hub. Clone code and
metadata without downloading Git LFS objects, then import the loader directly:
```shell
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/datasets/ProgramComputer/VGGFace2-HQ
```
Pin both data revisions when constructing the stream:
```python
from VGGFace2_HQ import load_streaming
dataset = load_streaming(
"train",
revision="ee41c3e64981063524744286b468e739190cfbed",
raw_revision="ad5f6b5a5f560621fd7efb9b79c956d27d427a08",
cache_dir="/bounded/cache",
scratch_dir="/bounded/scratch",
)
first_record = next(iter(dataset))
```
ZIP shards use bounded HTTP-range reads. A full-shard scratch fallback is
disabled unless `allow_full_shard_fallback=True` is passed with explicit byte
limits.
|