VGGFace2-HQ / README.md
ProgramComputer's picture
Repair VGGFace2-HQ streaming loader
81014db verified
|
Raw
History Blame Contribute Delete
929 Bytes
---
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.