Skip to content

audio folder builder cannot detect custom split name #7529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
phineas-pta opened this issue Apr 20, 2025 · 0 comments
Open

audio folder builder cannot detect custom split name #7529

phineas-pta opened this issue Apr 20, 2025 · 0 comments

Comments

@phineas-pta
Copy link

Describe the bug

when using audio folder builder (load_dataset("audiofolder", data_dir="/path/to/folder")), it cannot detect custom split name other than train/validation/test

Steps to reproduce the bug

i have the following folder structure

my_dataset/
├── train/
│   ├── lorem.wav
│   ├── …
│   └── metadata.csv
├── test/
│   ├── ipsum.wav
│   ├── …
│   └── metadata.csv
├── validation/
│   ├── dolor.wav
│   ├── …
│   └── metadata.csv
└── custom/
    ├── sit.wav
    ├── …
    └── metadata.csv

using ds = load_dataset("audiofolder", data_dir="/path/to/my_dataset")

Expected behavior

i got ds with only 3 splits train/validation/test, whenever i rename train/validation/test folder it also disappear if i re-create ds

Environment info

  • datasets version: 3.5.0
  • Platform: Windows-11-10.0.26100-SP0
  • Python version: 3.12.8
  • huggingface_hub version: 0.30.2
  • PyArrow version: 18.1.0
  • Pandas version: 2.2.3
  • fsspec version: 2024.9.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant