small change
Browse files
README.md
CHANGED
|
@@ -107,7 +107,6 @@ dataset["train"] = dataset["train"].select(range(500))
|
|
| 107 |
dataset = dataset.cast_column("audio", Audio(sampling_rate=32_000))
|
| 108 |
|
| 109 |
# extract the first five seconds of each sample in training (not utilizing event detection)
|
| 110 |
-
# this is not very efficient since each complete audio file must be decoded this way.
|
| 111 |
# a custom decoding with soundfile, stating start and end would be more efficient (see BirdSet Code)
|
| 112 |
def map_first_five(sample):
|
| 113 |
max_length = 160_000 # 32_000hz*5sec
|
|
|
|
| 107 |
dataset = dataset.cast_column("audio", Audio(sampling_rate=32_000))
|
| 108 |
|
| 109 |
# extract the first five seconds of each sample in training (not utilizing event detection)
|
|
|
|
| 110 |
# a custom decoding with soundfile, stating start and end would be more efficient (see BirdSet Code)
|
| 111 |
def map_first_five(sample):
|
| 112 |
max_length = 160_000 # 32_000hz*5sec
|