gagannarula commited on
Commit
792859f
·
verified ·
1 Parent(s): 30018ad

testing audio dtype change

Browse files
Files changed (1) hide show
  1. README.md +22 -4
README.md CHANGED
@@ -21,10 +21,8 @@ configs:
21
  - name: metadata
22
  dtype: string
23
  - name: audio
24
- dtype:
25
- audio:
26
- sample_rate: 16000
27
- decode: false
28
  - name: source_dataset
29
  dtype: string
30
  - name: id
@@ -57,6 +55,26 @@ configs:
57
 
58
  BEANS-Zero is a **benchmark bioacoustic dataset** designed for zero-shot bioacoustic evaluation tasks. Introduced in the paper [NATURELM-AUDIO: AN AUDIO-LANGUAGE FOUNDATION MODEL FOR BIOACOUSTICS](https://arxiv.org/pdf/2411.07186), this dataset aggregates multiple subsets from both established component datasets and newly curated ones. It is a benchmark dataset only to be used to evaluate audio-text multimodal models that accept a bioacoustic audio input (query audio) and a text prompt (e.g. 'What species is in this audio?') and generate text as output (e.g. "Taeniopygia guttata").
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  ## Dataset Composition
61
 
62
  BEANS-Zero combines data from several well-known sources. There are total of 113,679 samples (examples). It consists of two main groups:
 
21
  - name: metadata
22
  dtype: string
23
  - name: audio
24
+ sequence:
25
+ dtype: double
 
 
26
  - name: source_dataset
27
  dtype: string
28
  - name: id
 
55
 
56
  BEANS-Zero is a **benchmark bioacoustic dataset** designed for zero-shot bioacoustic evaluation tasks. Introduced in the paper [NATURELM-AUDIO: AN AUDIO-LANGUAGE FOUNDATION MODEL FOR BIOACOUSTICS](https://arxiv.org/pdf/2411.07186), this dataset aggregates multiple subsets from both established component datasets and newly curated ones. It is a benchmark dataset only to be used to evaluate audio-text multimodal models that accept a bioacoustic audio input (query audio) and a text prompt (e.g. 'What species is in this audio?') and generate text as output (e.g. "Taeniopygia guttata").
57
 
58
+ ## Usage
59
+ ```python
60
+ import numpy as np
61
+ from datasets import load_dataset
62
+
63
+ ds = load_dataset("EarthSpeciesProject/BEANS-Zero", split="test") # set streaming=True if you want to stream
64
+
65
+ # see the contents at a glance
66
+ print(ds)
67
+ ```
68
+ ```python
69
+ # get audio for a sample
70
+ audio = np.array(ds[0]["audio"])
71
+ print(audio.shape)
72
+
73
+ # get the instruction (prompt / query) for that sample
74
+ print(ds[0]["instruction_text"])
75
+ # the desired output (*only* used for evaluate)
76
+ print(ds[0]["output"])
77
+ ```
78
  ## Dataset Composition
79
 
80
  BEANS-Zero combines data from several well-known sources. There are total of 113,679 samples (examples). It consists of two main groups: