lrauch commited on
Commit
da9c2fc
·
verified ·
1 Parent(s): 90d63f8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -5
README.md CHANGED
@@ -12,6 +12,38 @@ tags:
12
  - **Paper:** [GADME](https://arxiv.org/abs/2403.10380)
13
  - **Point of Contact:** [Lukas Rauch](mailto:lukas.rauch@uni-kassel.de)
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ### Datasets
16
  We present the BirdSet benchmark that covers a comprehensive range of (multi-label and multi-class) classification datasets in avian bioacoustics.
17
  We offer a static set of evaluation datasets and a varied collection of training datasets, enabling the application of diverse methodologies.
@@ -20,7 +52,6 @@ We have a complementary code base: https://github.com/DBD-research-group/BirdSet
20
  and a complementary paper (work in progress): https://arxiv.org/abs/2403.10380
21
 
22
 
23
-
24
  | | train | test | test_5s | size (GB) | #classes | license |
25
  |--------------------------------|--------:|-----------:|--------:|-----------:|-------------:|--------------:|
26
  | [PER][1] (Amazon Basin) | 16,802 | 14,798 | 15,120 | 10.5 | 132 | CC-BY-4.0 |
@@ -72,10 +103,6 @@ and a complementary paper (work in progress): https://arxiv.org/abs/2403.10380
72
  - We provide the full recording with the complete label set and specified bounding boxes.
73
  - This dataset excludes recordings that do not contain bird calls ("no_call").
74
 
75
- ### Quick Use
76
- - For multi-label evaluation with a segment-based evaluation use the test_5s column for testing.
77
- - You could only load the first 5 seconds or a given event per recording to quickly create a training dataset.
78
- - We recommend to start with HSN. It is a medium size dataset with a low number of overlaps within a segment
79
 
80
  ### Metadata
81
 
 
12
  - **Paper:** [GADME](https://arxiv.org/abs/2403.10380)
13
  - **Point of Contact:** [Lukas Rauch](mailto:lukas.rauch@uni-kassel.de)
14
 
15
+ ### Quick Use
16
+ - We recommend to use our [intro notebook](https://github.com/DBD-research-group/BirdSet/blob/main/notebooks/tutorials/birdset-pipeline_tutorial.ipynb) in our code repository
17
+ - The BirdSet Code package simplfies the data processing steps
18
+ - For multi-label evaluation with a segment-based evaluation use the test_5s column for testing.
19
+
20
+ We provide a very short example where no additional code is required. We load the first 5 seconds to quickly create an examplary training dataset.
21
+ We recommend to start with HSN. It is a medium size dataset with a low number of overlaps within a segment.
22
+
23
+ ```python
24
+ from datasets import Audio
25
+
26
+ dataset = load_dataset("DBD-research-group/BirdSet", "HSN")
27
+
28
+ # slice example
29
+ dataset["train"] = dataset["train"].select(range(500))
30
+
31
+ # the dataset comes without an automatic Audio casting, this has to be enabled via huggingface
32
+ # this means that each time a sample is called, it is decoded (which may take a while if done for the complete dataset)
33
+ # in BirdSet, this is all done on-the-fly during training and testing (since the dataset size would be too big if mapping and saving it only once)
34
+ dataset = dataset.cast_column("audio", Audio(sampling_rate=32_000))
35
+
36
+ # extract the first five seconds of each sample in training (not utilizing event detection)
37
+ # this is not very efficient since each complete audio file must be decoded this way.
38
+ # a custom decoding with soundfile, stating start and end would be more efficient (see BirdSet Code)
39
+ def map_first_five(sample):
40
+ max_length = 160_000 # 32_000hz*5sec
41
+ sample["audio"]["array"] = sample["audio"]["array"][:max_length]
42
+ return example
43
+
44
+ # train is now available as an array that can be transformed into a spectrogram for example
45
+ train = train.map(map_first_five, batch_size=1000, num_proc=2)
46
+ ```
47
  ### Datasets
48
  We present the BirdSet benchmark that covers a comprehensive range of (multi-label and multi-class) classification datasets in avian bioacoustics.
49
  We offer a static set of evaluation datasets and a varied collection of training datasets, enabling the application of diverse methodologies.
 
52
  and a complementary paper (work in progress): https://arxiv.org/abs/2403.10380
53
 
54
 
 
55
  | | train | test | test_5s | size (GB) | #classes | license |
56
  |--------------------------------|--------:|-----------:|--------:|-----------:|-------------:|--------------:|
57
  | [PER][1] (Amazon Basin) | 16,802 | 14,798 | 15,120 | 10.5 | 132 | CC-BY-4.0 |
 
103
  - We provide the full recording with the complete label set and specified bounding boxes.
104
  - This dataset excludes recordings that do not contain bird calls ("no_call").
105
 
 
 
 
 
106
 
107
  ### Metadata
108