T-ferret commited on
Commit
61e3f7d
·
verified ·
1 Parent(s): f68500c

Upload folder using huggingface_hub

Browse files
__pycache__/dataset.cpython-311.pyc ADDED
Binary file (6.83 kB). View file
 
__pycache__/functions.cpython-311.pyc ADDED
Binary file (3.23 kB). View file
 
dataset.py ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import random
3
+
4
+ import numpy as np
5
+ import pandas as pd
6
+ import torch
7
+ from audiomentations import (
8
+ Compose,
9
+ AddGaussianNoise,
10
+ TimeStretch,
11
+ PitchShift,
12
+ Shift,
13
+ Gain
14
+ )
15
+ from datasets import load_dataset, Audio
16
+ from transformers import AutoFeatureExtractor
17
+
18
+ # 랜덤 시드 고정
19
+ random.seed(442)
20
+ np.random.seed(442)
21
+
22
+ # 데이터셋에서 삭제할 (필요 없는)columns
23
+ remove_columns = ['filename', 'esc10', 'audio']
24
+ # Google AudioSet를 pretrained한 모델과 특징 추출기를 불러옴
25
+ model_name = "MIT/ast-finetuned-audioset-10-10-0.4593"
26
+
27
+ # HuggingFace에 저장된 ashraq/esc50 데이터셋을 불러옴
28
+ esc50_dataset = load_dataset('ashraq/esc50')
29
+
30
+ # 특징 추출기
31
+ feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
32
+
33
+
34
+ def split_by_fold(dataset_split, test_fold=1):
35
+ train_dataset = dataset_split.filter(lambda df: df['fold'] != test_fold)
36
+ val_dataset = dataset_split.filter(lambda df: df['fold'] == test_fold)
37
+ print(f"학습 데이터셋: {train_dataset.shape}, 검증 데이터셋: {val_dataset.shape}")
38
+ return train_dataset, val_dataset
39
+
40
+
41
+ # 체크포인트가 있다면 "./output" 내의 checkpoint 디렉토리를 자동으로 불러오기
42
+ def get_latest_checkpoint(output_dir):
43
+ if os.path.exists(output_dir):
44
+ checkpoints = [os.path.join(output_dir, d) for d in os.listdir(output_dir) if d.startswith('checkpoint') and os.path.isdir(os.path.join(output_dir, d))]
45
+ if checkpoints:
46
+ # 정렬 후 마지막 체크포인트 선택
47
+ return sorted(checkpoints)[-1]
48
+
49
+
50
+ def preprocess_function(data, apply_augmentation=False):
51
+ raw = data['audio']['array']
52
+ sr = data['audio']['sampling_rate']
53
+
54
+ waveform = torch.tensor(raw, dtype=torch.float32)
55
+
56
+ # 학습 시 증강 적용 여부
57
+ if apply_augmentation:
58
+ waveform, sr = advanced_augment_audio_moderate(waveform, sr)
59
+ # 증강 후 waveform을 numpy 배열로 변환 (특징 추출기가 numpy 입력을 필요로 할 경우)
60
+ raw = waveform.squeeze(0).numpy()
61
+ else:
62
+ raw = waveform.squeeze(0).numpy()
63
+
64
+ inputs = feature_extractor(raw, sampling_rate=sr, return_tensors='pt')
65
+ # inputs['input_values'] = inputs['input_values'].squeeze(0).numpy()
66
+
67
+ return inputs
68
+
69
+
70
+ def get_moderate_augmentation_pipeline(sample_rate):
71
+ # # RoomSimulator 효과는 IR(Impulse Response) 파일이 필요합니다.
72
+ # # 실제 환경의 방음 특성을 반영한 IR 파일을 사용하세요.
73
+ # ir_path = "your_ir_file.wav" # IR 파일 경로를 지정합니다.
74
+ #
75
+ # # Windows 환경에서 RoomSimulator가 동작하지 않을 경우 None으로 처리합니다.
76
+ # room_simulator = RoomSimulator(ir_path=ir_path, p=0.3) if platform.system() != "Windows" else None
77
+
78
+ # 여러 효과들을 Compose로 묶어줍니다.
79
+ # 각 트랜스폼은 실제 환경에서 너무 극단적이지 않은 수준으로 적용합니다.
80
+ transforms = [
81
+ # 배경 잡음을 약하게 추가 (실제 녹음된 환경의 미세한 잡음 모방)
82
+ AddGaussianNoise(min_amplitude=0.001, max_amplitude=0.005, p=0.5),
83
+ # 약간의 시간 변형 (너무 심하게 적용하면 오디오 특징이 깨질 수 있으므로 미세하게)
84
+ TimeStretch(min_rate=0.95, max_rate=1.05, p=0.5),
85
+ # 피치를 약간 변화시켜, 자연스러운 음높이 차이 모방 (±1 반음 정도)
86
+ PitchShift(min_semitones=-1, max_semitones=1, p=0.5),
87
+ # 오디오 신호의 시작이나 끝을 약간 이동 (전체 길이의 5~10% 정도)
88
+ Shift(min_shift=-0.1, max_shift=0.1, p=0.5),
89
+ # 실제 방의 잔향 효과를 반영 (IR 파일이 있다면 자연스러운 리버브 효과 적용)
90
+ # room_simulator,
91
+ # 볼륨을 약간 조절하여 녹음 조건의 차이를 반영
92
+ Gain(min_gain_db=-2.0, max_gain_db=2.0, p=0.5),
93
+ ]
94
+ # None인 효과는 필터링합니다.
95
+ transforms = [t for t in transforms if t is not None]
96
+ return Compose(transforms, p=1.0)
97
+
98
+
99
+ def advanced_augment_audio_moderate(waveform, sample_rate):
100
+ """
101
+ 입력된 waveform (torch.Tensor, shape: [1, samples])에 대해
102
+ 실제 환경을 적당히 모방하는 증강을 적용합니다.
103
+ """
104
+ # waveform을 numpy array (모노 채널)로 변환합니다.
105
+ np_waveform = waveform.squeeze(0).numpy()
106
+
107
+ # 증강 파이프라인을 얻습니다.
108
+ augmentation_pipeline = get_moderate_augmentation_pipeline(sample_rate)
109
+
110
+ # 증강 효과 적용: np_waveform는 1차원 numpy array라고 가정합니다.
111
+ augmented_np_waveform = augmentation_pipeline(np_waveform, sample_rate=sample_rate)
112
+
113
+ # numpy array를 다시 torch.Tensor로 변환 후 (채널 차원 추가) 반환합니다.
114
+ augmented_waveform = torch.tensor(augmented_np_waveform, dtype=torch.float32).unsqueeze(0)
115
+ return augmented_waveform, sample_rate
116
+
117
+
118
+ def load_dataset_esc50(apply_augmentation=False):
119
+ esc50_dataloader = esc50_dataset['train']
120
+ esc50_dataloader = esc50_dataloader.cast_column('audio', Audio(sampling_rate=16000))
121
+ # print(esc50_dataloader.shape)
122
+
123
+ input_values = esc50_dataloader.map(
124
+ lambda data: preprocess_function(data, apply_augmentation)
125
+ )
126
+ # print(f'특징 추출기 적용 후: {input_values}')
127
+
128
+ # # 폴드 설정
129
+ df = pd.DataFrame(esc50_dataloader)
130
+ folds = df.query('fold >= 1')['fold'].drop_duplicates().tolist()
131
+
132
+ # 최종적인 dataset 설정
133
+ # esc50_dataloader = esc50_dataloader.add_column(name='input_values', column=input_values)
134
+ input_values = input_values.remove_columns(remove_columns)
135
+ # 학습의 원할함을 위해 target을 명시적으로 label로 변경
136
+ input_values = input_values.rename_column('target', 'label')
137
+
138
+ return input_values, folds
139
+
140
+
141
+ # load_dataset_esc50()
export_onnx.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from optimum.onnxruntime import ORTModelForSequenceClassification
2
+ from transformers import AutoFeatureExtractor, AutoTokenizer
3
+
4
+ def export_audio_model_to_onnx(
5
+ model_dir: str,
6
+ save_dir: str,
7
+ ):
8
+ # 1) ONNX export: export=True 옵션만 주면 internal export script가 실행됩니다.
9
+ ort_model = ORTModelForSequenceClassification.from_pretrained(
10
+ model_dir,
11
+ export=True, # 이 옵션이 ONNX로 내보내게 합니다
12
+ file_name="model.onnx", # (선택) 저장될 ONNX 파일 이름
13
+ )
14
+
15
+ # 2) 토크나이저/특징추출기도 함께 저장
16
+ # AST는 feature_extractor만 있으면 추론 가능합니다.
17
+ tokenizer = AutoTokenizer.from_pretrained(model_dir)
18
+ feature_extractor = AutoFeatureExtractor.from_pretrained(model_dir)
19
+
20
+ # 3) 출력 디렉토리에 모두 저장
21
+ ort_model.save_pretrained(save_dir)
22
+ tokenizer.save_pretrained(save_dir)
23
+ feature_extractor.save_pretrained(save_dir)
24
+ print(f"✅ ONNX 모델과 tokenizer/feature_extractor를 '{save_dir}'에 저장했습니다.")
25
+
26
+ if __name__ == "__main__":
27
+ import argparse
28
+ p = argparse.ArgumentParser()
29
+ p.add_argument("--model_dir", required=True, help="학습된 HF 모델 디렉토리")
30
+ p.add_argument("--save_dir", required=True, help="ONNX 포함 결과를 저장할 디렉토리")
31
+ args = p.parse_args()
32
+
33
+ export_audio_model_to_onnx(args.model_dir, args.save_dir)
functions.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Tuple, List, Dict, Any
2
+
3
+ import evaluate
4
+ import numpy as np
5
+ import pandas as pd
6
+ from transformers import ASTForAudioClassification, Trainer, TrainingArguments
7
+
8
+ from dataset import load_dataset_esc50
9
+
10
+
11
+ def squeeze_func(batch: Dict[str, Any]) -> Dict[str, Any]:
12
+ """
13
+ Remove the extra dimension from input_values.
14
+ """
15
+ batch['input_values'] = np.asarray(batch['input_values']).squeeze(0)
16
+ return batch
17
+
18
+
19
+ def prepare_datasets(apply_augmentation: bool) -> Tuple[Any, List[int]]:
20
+ """
21
+ Load and preprocess the ESC-50 dataset.
22
+ """
23
+ dataset, folds = load_dataset_esc50(apply_augmentation=apply_augmentation)
24
+ return dataset.map(squeeze_func), folds
25
+
26
+
27
+ def get_model(model_name: str) -> ASTForAudioClassification:
28
+ """
29
+ Load the AST audio classification model with SDPA.
30
+ """
31
+ return ASTForAudioClassification.from_pretrained(
32
+ model_name,
33
+ attn_implementation="sdpa"
34
+ )
35
+
36
+
37
+ def make_trainer(
38
+ model: ASTForAudioClassification,
39
+ train_dataset: Any,
40
+ eval_dataset: Any,
41
+ args: TrainingArguments
42
+ ) -> Trainer:
43
+ """
44
+ Build and return a HuggingFace Trainer instance.
45
+ """
46
+ metric = evaluate.load('accuracy')
47
+
48
+ def compute_metrics(pred):
49
+ logits, labels = pred
50
+ return metric.compute(predictions=np.argmax(logits, axis=-1), references=labels)
51
+
52
+ return Trainer(
53
+ model=model,
54
+ args=args,
55
+ train_dataset=train_dataset,
56
+ eval_dataset=eval_dataset,
57
+ compute_metrics=compute_metrics,
58
+ )
59
+
60
+
61
+ def save_results(results: List[Dict[str, Any]], csv_path: str) -> None:
62
+ """
63
+ Save the experiment results to a CSV file.
64
+ """
65
+ pd.DataFrame(results).to_csv(csv_path, index=False)
66
+ print(f"Results saved to {csv_path}")
output/augmented_esc50/all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "test_accuracy": 0.9835,
3
+ "test_loss": 0.07399206608533859,
4
+ "test_model_preparation_time": 0.1745,
5
+ "test_runtime": 110.5501,
6
+ "test_samples_per_second": 18.091,
7
+ "test_steps_per_second": 2.261
8
+ }
output/augmented_esc50/config.json ADDED
@@ -0,0 +1,1082 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ASTForAudioClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "frequency_stride": 10,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "Speech",
12
+ "1": "Male speech, man speaking",
13
+ "2": "Female speech, woman speaking",
14
+ "3": "Child speech, kid speaking",
15
+ "4": "Conversation",
16
+ "5": "Narration, monologue",
17
+ "6": "Babbling",
18
+ "7": "Speech synthesizer",
19
+ "8": "Shout",
20
+ "9": "Bellow",
21
+ "10": "Whoop",
22
+ "11": "Yell",
23
+ "12": "Battle cry",
24
+ "13": "Children shouting",
25
+ "14": "Screaming",
26
+ "15": "Whispering",
27
+ "16": "Laughter",
28
+ "17": "Baby laughter",
29
+ "18": "Giggle",
30
+ "19": "Snicker",
31
+ "20": "Belly laugh",
32
+ "21": "Chuckle, chortle",
33
+ "22": "Crying, sobbing",
34
+ "23": "Baby cry, infant cry",
35
+ "24": "Whimper",
36
+ "25": "Wail, moan",
37
+ "26": "Sigh",
38
+ "27": "Singing",
39
+ "28": "Choir",
40
+ "29": "Yodeling",
41
+ "30": "Chant",
42
+ "31": "Mantra",
43
+ "32": "Male singing",
44
+ "33": "Female singing",
45
+ "34": "Child singing",
46
+ "35": "Synthetic singing",
47
+ "36": "Rapping",
48
+ "37": "Humming",
49
+ "38": "Groan",
50
+ "39": "Grunt",
51
+ "40": "Whistling",
52
+ "41": "Breathing",
53
+ "42": "Wheeze",
54
+ "43": "Snoring",
55
+ "44": "Gasp",
56
+ "45": "Pant",
57
+ "46": "Snort",
58
+ "47": "Cough",
59
+ "48": "Throat clearing",
60
+ "49": "Sneeze",
61
+ "50": "Sniff",
62
+ "51": "Run",
63
+ "52": "Shuffle",
64
+ "53": "Walk, footsteps",
65
+ "54": "Chewing, mastication",
66
+ "55": "Biting",
67
+ "56": "Gargling",
68
+ "57": "Stomach rumble",
69
+ "58": "Burping, eructation",
70
+ "59": "Hiccup",
71
+ "60": "Fart",
72
+ "61": "Hands",
73
+ "62": "Finger snapping",
74
+ "63": "Clapping",
75
+ "64": "Heart sounds, heartbeat",
76
+ "65": "Heart murmur",
77
+ "66": "Cheering",
78
+ "67": "Applause",
79
+ "68": "Chatter",
80
+ "69": "Crowd",
81
+ "70": "Hubbub, speech noise, speech babble",
82
+ "71": "Children playing",
83
+ "72": "Animal",
84
+ "73": "Domestic animals, pets",
85
+ "74": "Dog",
86
+ "75": "Bark",
87
+ "76": "Yip",
88
+ "77": "Howl",
89
+ "78": "Bow-wow",
90
+ "79": "Growling",
91
+ "80": "Whimper (dog)",
92
+ "81": "Cat",
93
+ "82": "Purr",
94
+ "83": "Meow",
95
+ "84": "Hiss",
96
+ "85": "Caterwaul",
97
+ "86": "Livestock, farm animals, working animals",
98
+ "87": "Horse",
99
+ "88": "Clip-clop",
100
+ "89": "Neigh, whinny",
101
+ "90": "Cattle, bovinae",
102
+ "91": "Moo",
103
+ "92": "Cowbell",
104
+ "93": "Pig",
105
+ "94": "Oink",
106
+ "95": "Goat",
107
+ "96": "Bleat",
108
+ "97": "Sheep",
109
+ "98": "Fowl",
110
+ "99": "Chicken, rooster",
111
+ "100": "Cluck",
112
+ "101": "Crowing, cock-a-doodle-doo",
113
+ "102": "Turkey",
114
+ "103": "Gobble",
115
+ "104": "Duck",
116
+ "105": "Quack",
117
+ "106": "Goose",
118
+ "107": "Honk",
119
+ "108": "Wild animals",
120
+ "109": "Roaring cats (lions, tigers)",
121
+ "110": "Roar",
122
+ "111": "Bird",
123
+ "112": "Bird vocalization, bird call, bird song",
124
+ "113": "Chirp, tweet",
125
+ "114": "Squawk",
126
+ "115": "Pigeon, dove",
127
+ "116": "Coo",
128
+ "117": "Crow",
129
+ "118": "Caw",
130
+ "119": "Owl",
131
+ "120": "Hoot",
132
+ "121": "Bird flight, flapping wings",
133
+ "122": "Canidae, dogs, wolves",
134
+ "123": "Rodents, rats, mice",
135
+ "124": "Mouse",
136
+ "125": "Patter",
137
+ "126": "Insect",
138
+ "127": "Cricket",
139
+ "128": "Mosquito",
140
+ "129": "Fly, housefly",
141
+ "130": "Buzz",
142
+ "131": "Bee, wasp, etc.",
143
+ "132": "Frog",
144
+ "133": "Croak",
145
+ "134": "Snake",
146
+ "135": "Rattle",
147
+ "136": "Whale vocalization",
148
+ "137": "Music",
149
+ "138": "Musical instrument",
150
+ "139": "Plucked string instrument",
151
+ "140": "Guitar",
152
+ "141": "Electric guitar",
153
+ "142": "Bass guitar",
154
+ "143": "Acoustic guitar",
155
+ "144": "Steel guitar, slide guitar",
156
+ "145": "Tapping (guitar technique)",
157
+ "146": "Strum",
158
+ "147": "Banjo",
159
+ "148": "Sitar",
160
+ "149": "Mandolin",
161
+ "150": "Zither",
162
+ "151": "Ukulele",
163
+ "152": "Keyboard (musical)",
164
+ "153": "Piano",
165
+ "154": "Electric piano",
166
+ "155": "Organ",
167
+ "156": "Electronic organ",
168
+ "157": "Hammond organ",
169
+ "158": "Synthesizer",
170
+ "159": "Sampler",
171
+ "160": "Harpsichord",
172
+ "161": "Percussion",
173
+ "162": "Drum kit",
174
+ "163": "Drum machine",
175
+ "164": "Drum",
176
+ "165": "Snare drum",
177
+ "166": "Rimshot",
178
+ "167": "Drum roll",
179
+ "168": "Bass drum",
180
+ "169": "Timpani",
181
+ "170": "Tabla",
182
+ "171": "Cymbal",
183
+ "172": "Hi-hat",
184
+ "173": "Wood block",
185
+ "174": "Tambourine",
186
+ "175": "Rattle (instrument)",
187
+ "176": "Maraca",
188
+ "177": "Gong",
189
+ "178": "Tubular bells",
190
+ "179": "Mallet percussion",
191
+ "180": "Marimba, xylophone",
192
+ "181": "Glockenspiel",
193
+ "182": "Vibraphone",
194
+ "183": "Steelpan",
195
+ "184": "Orchestra",
196
+ "185": "Brass instrument",
197
+ "186": "French horn",
198
+ "187": "Trumpet",
199
+ "188": "Trombone",
200
+ "189": "Bowed string instrument",
201
+ "190": "String section",
202
+ "191": "Violin, fiddle",
203
+ "192": "Pizzicato",
204
+ "193": "Cello",
205
+ "194": "Double bass",
206
+ "195": "Wind instrument, woodwind instrument",
207
+ "196": "Flute",
208
+ "197": "Saxophone",
209
+ "198": "Clarinet",
210
+ "199": "Harp",
211
+ "200": "Bell",
212
+ "201": "Church bell",
213
+ "202": "Jingle bell",
214
+ "203": "Bicycle bell",
215
+ "204": "Tuning fork",
216
+ "205": "Chime",
217
+ "206": "Wind chime",
218
+ "207": "Change ringing (campanology)",
219
+ "208": "Harmonica",
220
+ "209": "Accordion",
221
+ "210": "Bagpipes",
222
+ "211": "Didgeridoo",
223
+ "212": "Shofar",
224
+ "213": "Theremin",
225
+ "214": "Singing bowl",
226
+ "215": "Scratching (performance technique)",
227
+ "216": "Pop music",
228
+ "217": "Hip hop music",
229
+ "218": "Beatboxing",
230
+ "219": "Rock music",
231
+ "220": "Heavy metal",
232
+ "221": "Punk rock",
233
+ "222": "Grunge",
234
+ "223": "Progressive rock",
235
+ "224": "Rock and roll",
236
+ "225": "Psychedelic rock",
237
+ "226": "Rhythm and blues",
238
+ "227": "Soul music",
239
+ "228": "Reggae",
240
+ "229": "Country",
241
+ "230": "Swing music",
242
+ "231": "Bluegrass",
243
+ "232": "Funk",
244
+ "233": "Folk music",
245
+ "234": "Middle Eastern music",
246
+ "235": "Jazz",
247
+ "236": "Disco",
248
+ "237": "Classical music",
249
+ "238": "Opera",
250
+ "239": "Electronic music",
251
+ "240": "House music",
252
+ "241": "Techno",
253
+ "242": "Dubstep",
254
+ "243": "Drum and bass",
255
+ "244": "Electronica",
256
+ "245": "Electronic dance music",
257
+ "246": "Ambient music",
258
+ "247": "Trance music",
259
+ "248": "Music of Latin America",
260
+ "249": "Salsa music",
261
+ "250": "Flamenco",
262
+ "251": "Blues",
263
+ "252": "Music for children",
264
+ "253": "New-age music",
265
+ "254": "Vocal music",
266
+ "255": "A capella",
267
+ "256": "Music of Africa",
268
+ "257": "Afrobeat",
269
+ "258": "Christian music",
270
+ "259": "Gospel music",
271
+ "260": "Music of Asia",
272
+ "261": "Carnatic music",
273
+ "262": "Music of Bollywood",
274
+ "263": "Ska",
275
+ "264": "Traditional music",
276
+ "265": "Independent music",
277
+ "266": "Song",
278
+ "267": "Background music",
279
+ "268": "Theme music",
280
+ "269": "Jingle (music)",
281
+ "270": "Soundtrack music",
282
+ "271": "Lullaby",
283
+ "272": "Video game music",
284
+ "273": "Christmas music",
285
+ "274": "Dance music",
286
+ "275": "Wedding music",
287
+ "276": "Happy music",
288
+ "277": "Funny music",
289
+ "278": "Sad music",
290
+ "279": "Tender music",
291
+ "280": "Exciting music",
292
+ "281": "Angry music",
293
+ "282": "Scary music",
294
+ "283": "Wind",
295
+ "284": "Rustling leaves",
296
+ "285": "Wind noise (microphone)",
297
+ "286": "Thunderstorm",
298
+ "287": "Thunder",
299
+ "288": "Water",
300
+ "289": "Rain",
301
+ "290": "Raindrop",
302
+ "291": "Rain on surface",
303
+ "292": "Stream",
304
+ "293": "Waterfall",
305
+ "294": "Ocean",
306
+ "295": "Waves, surf",
307
+ "296": "Steam",
308
+ "297": "Gurgling",
309
+ "298": "Fire",
310
+ "299": "Crackle",
311
+ "300": "Vehicle",
312
+ "301": "Boat, Water vehicle",
313
+ "302": "Sailboat, sailing ship",
314
+ "303": "Rowboat, canoe, kayak",
315
+ "304": "Motorboat, speedboat",
316
+ "305": "Ship",
317
+ "306": "Motor vehicle (road)",
318
+ "307": "Car",
319
+ "308": "Vehicle horn, car horn, honking",
320
+ "309": "Toot",
321
+ "310": "Car alarm",
322
+ "311": "Power windows, electric windows",
323
+ "312": "Skidding",
324
+ "313": "Tire squeal",
325
+ "314": "Car passing by",
326
+ "315": "Race car, auto racing",
327
+ "316": "Truck",
328
+ "317": "Air brake",
329
+ "318": "Air horn, truck horn",
330
+ "319": "Reversing beeps",
331
+ "320": "Ice cream truck, ice cream van",
332
+ "321": "Bus",
333
+ "322": "Emergency vehicle",
334
+ "323": "Police car (siren)",
335
+ "324": "Ambulance (siren)",
336
+ "325": "Fire engine, fire truck (siren)",
337
+ "326": "Motorcycle",
338
+ "327": "Traffic noise, roadway noise",
339
+ "328": "Rail transport",
340
+ "329": "Train",
341
+ "330": "Train whistle",
342
+ "331": "Train horn",
343
+ "332": "Railroad car, train wagon",
344
+ "333": "Train wheels squealing",
345
+ "334": "Subway, metro, underground",
346
+ "335": "Aircraft",
347
+ "336": "Aircraft engine",
348
+ "337": "Jet engine",
349
+ "338": "Propeller, airscrew",
350
+ "339": "Helicopter",
351
+ "340": "Fixed-wing aircraft, airplane",
352
+ "341": "Bicycle",
353
+ "342": "Skateboard",
354
+ "343": "Engine",
355
+ "344": "Light engine (high frequency)",
356
+ "345": "Dental drill, dentist's drill",
357
+ "346": "Lawn mower",
358
+ "347": "Chainsaw",
359
+ "348": "Medium engine (mid frequency)",
360
+ "349": "Heavy engine (low frequency)",
361
+ "350": "Engine knocking",
362
+ "351": "Engine starting",
363
+ "352": "Idling",
364
+ "353": "Accelerating, revving, vroom",
365
+ "354": "Door",
366
+ "355": "Doorbell",
367
+ "356": "Ding-dong",
368
+ "357": "Sliding door",
369
+ "358": "Slam",
370
+ "359": "Knock",
371
+ "360": "Tap",
372
+ "361": "Squeak",
373
+ "362": "Cupboard open or close",
374
+ "363": "Drawer open or close",
375
+ "364": "Dishes, pots, and pans",
376
+ "365": "Cutlery, silverware",
377
+ "366": "Chopping (food)",
378
+ "367": "Frying (food)",
379
+ "368": "Microwave oven",
380
+ "369": "Blender",
381
+ "370": "Water tap, faucet",
382
+ "371": "Sink (filling or washing)",
383
+ "372": "Bathtub (filling or washing)",
384
+ "373": "Hair dryer",
385
+ "374": "Toilet flush",
386
+ "375": "Toothbrush",
387
+ "376": "Electric toothbrush",
388
+ "377": "Vacuum cleaner",
389
+ "378": "Zipper (clothing)",
390
+ "379": "Keys jangling",
391
+ "380": "Coin (dropping)",
392
+ "381": "Scissors",
393
+ "382": "Electric shaver, electric razor",
394
+ "383": "Shuffling cards",
395
+ "384": "Typing",
396
+ "385": "Typewriter",
397
+ "386": "Computer keyboard",
398
+ "387": "Writing",
399
+ "388": "Alarm",
400
+ "389": "Telephone",
401
+ "390": "Telephone bell ringing",
402
+ "391": "Ringtone",
403
+ "392": "Telephone dialing, DTMF",
404
+ "393": "Dial tone",
405
+ "394": "Busy signal",
406
+ "395": "Alarm clock",
407
+ "396": "Siren",
408
+ "397": "Civil defense siren",
409
+ "398": "Buzzer",
410
+ "399": "Smoke detector, smoke alarm",
411
+ "400": "Fire alarm",
412
+ "401": "Foghorn",
413
+ "402": "Whistle",
414
+ "403": "Steam whistle",
415
+ "404": "Mechanisms",
416
+ "405": "Ratchet, pawl",
417
+ "406": "Clock",
418
+ "407": "Tick",
419
+ "408": "Tick-tock",
420
+ "409": "Gears",
421
+ "410": "Pulleys",
422
+ "411": "Sewing machine",
423
+ "412": "Mechanical fan",
424
+ "413": "Air conditioning",
425
+ "414": "Cash register",
426
+ "415": "Printer",
427
+ "416": "Camera",
428
+ "417": "Single-lens reflex camera",
429
+ "418": "Tools",
430
+ "419": "Hammer",
431
+ "420": "Jackhammer",
432
+ "421": "Sawing",
433
+ "422": "Filing (rasp)",
434
+ "423": "Sanding",
435
+ "424": "Power tool",
436
+ "425": "Drill",
437
+ "426": "Explosion",
438
+ "427": "Gunshot, gunfire",
439
+ "428": "Machine gun",
440
+ "429": "Fusillade",
441
+ "430": "Artillery fire",
442
+ "431": "Cap gun",
443
+ "432": "Fireworks",
444
+ "433": "Firecracker",
445
+ "434": "Burst, pop",
446
+ "435": "Eruption",
447
+ "436": "Boom",
448
+ "437": "Wood",
449
+ "438": "Chop",
450
+ "439": "Splinter",
451
+ "440": "Crack",
452
+ "441": "Glass",
453
+ "442": "Chink, clink",
454
+ "443": "Shatter",
455
+ "444": "Liquid",
456
+ "445": "Splash, splatter",
457
+ "446": "Slosh",
458
+ "447": "Squish",
459
+ "448": "Drip",
460
+ "449": "Pour",
461
+ "450": "Trickle, dribble",
462
+ "451": "Gush",
463
+ "452": "Fill (with liquid)",
464
+ "453": "Spray",
465
+ "454": "Pump (liquid)",
466
+ "455": "Stir",
467
+ "456": "Boiling",
468
+ "457": "Sonar",
469
+ "458": "Arrow",
470
+ "459": "Whoosh, swoosh, swish",
471
+ "460": "Thump, thud",
472
+ "461": "Thunk",
473
+ "462": "Electronic tuner",
474
+ "463": "Effects unit",
475
+ "464": "Chorus effect",
476
+ "465": "Basketball bounce",
477
+ "466": "Bang",
478
+ "467": "Slap, smack",
479
+ "468": "Whack, thwack",
480
+ "469": "Smash, crash",
481
+ "470": "Breaking",
482
+ "471": "Bouncing",
483
+ "472": "Whip",
484
+ "473": "Flap",
485
+ "474": "Scratch",
486
+ "475": "Scrape",
487
+ "476": "Rub",
488
+ "477": "Roll",
489
+ "478": "Crushing",
490
+ "479": "Crumpling, crinkling",
491
+ "480": "Tearing",
492
+ "481": "Beep, bleep",
493
+ "482": "Ping",
494
+ "483": "Ding",
495
+ "484": "Clang",
496
+ "485": "Squeal",
497
+ "486": "Creak",
498
+ "487": "Rustle",
499
+ "488": "Whir",
500
+ "489": "Clatter",
501
+ "490": "Sizzle",
502
+ "491": "Clicking",
503
+ "492": "Clickety-clack",
504
+ "493": "Rumble",
505
+ "494": "Plop",
506
+ "495": "Jingle, tinkle",
507
+ "496": "Hum",
508
+ "497": "Zing",
509
+ "498": "Boing",
510
+ "499": "Crunch",
511
+ "500": "Silence",
512
+ "501": "Sine wave",
513
+ "502": "Harmonic",
514
+ "503": "Chirp tone",
515
+ "504": "Sound effect",
516
+ "505": "Pulse",
517
+ "506": "Inside, small room",
518
+ "507": "Inside, large room or hall",
519
+ "508": "Inside, public space",
520
+ "509": "Outside, urban or manmade",
521
+ "510": "Outside, rural or natural",
522
+ "511": "Reverberation",
523
+ "512": "Echo",
524
+ "513": "Noise",
525
+ "514": "Environmental noise",
526
+ "515": "Static",
527
+ "516": "Mains hum",
528
+ "517": "Distortion",
529
+ "518": "Sidetone",
530
+ "519": "Cacophony",
531
+ "520": "White noise",
532
+ "521": "Pink noise",
533
+ "522": "Throbbing",
534
+ "523": "Vibration",
535
+ "524": "Television",
536
+ "525": "Radio",
537
+ "526": "Field recording"
538
+ },
539
+ "initializer_range": 0.02,
540
+ "intermediate_size": 3072,
541
+ "label2id": {
542
+ "A capella": 255,
543
+ "Accelerating, revving, vroom": 353,
544
+ "Accordion": 209,
545
+ "Acoustic guitar": 143,
546
+ "Afrobeat": 257,
547
+ "Air brake": 317,
548
+ "Air conditioning": 413,
549
+ "Air horn, truck horn": 318,
550
+ "Aircraft": 335,
551
+ "Aircraft engine": 336,
552
+ "Alarm": 388,
553
+ "Alarm clock": 395,
554
+ "Ambient music": 246,
555
+ "Ambulance (siren)": 324,
556
+ "Angry music": 281,
557
+ "Animal": 72,
558
+ "Applause": 67,
559
+ "Arrow": 458,
560
+ "Artillery fire": 430,
561
+ "Babbling": 6,
562
+ "Baby cry, infant cry": 23,
563
+ "Baby laughter": 17,
564
+ "Background music": 267,
565
+ "Bagpipes": 210,
566
+ "Bang": 466,
567
+ "Banjo": 147,
568
+ "Bark": 75,
569
+ "Basketball bounce": 465,
570
+ "Bass drum": 168,
571
+ "Bass guitar": 142,
572
+ "Bathtub (filling or washing)": 372,
573
+ "Battle cry": 12,
574
+ "Beatboxing": 218,
575
+ "Bee, wasp, etc.": 131,
576
+ "Beep, bleep": 481,
577
+ "Bell": 200,
578
+ "Bellow": 9,
579
+ "Belly laugh": 20,
580
+ "Bicycle": 341,
581
+ "Bicycle bell": 203,
582
+ "Bird": 111,
583
+ "Bird flight, flapping wings": 121,
584
+ "Bird vocalization, bird call, bird song": 112,
585
+ "Biting": 55,
586
+ "Bleat": 96,
587
+ "Blender": 369,
588
+ "Bluegrass": 231,
589
+ "Blues": 251,
590
+ "Boat, Water vehicle": 301,
591
+ "Boiling": 456,
592
+ "Boing": 498,
593
+ "Boom": 436,
594
+ "Bouncing": 471,
595
+ "Bow-wow": 78,
596
+ "Bowed string instrument": 189,
597
+ "Brass instrument": 185,
598
+ "Breaking": 470,
599
+ "Breathing": 41,
600
+ "Burping, eructation": 58,
601
+ "Burst, pop": 434,
602
+ "Bus": 321,
603
+ "Busy signal": 394,
604
+ "Buzz": 130,
605
+ "Buzzer": 398,
606
+ "Cacophony": 519,
607
+ "Camera": 416,
608
+ "Canidae, dogs, wolves": 122,
609
+ "Cap gun": 431,
610
+ "Car": 307,
611
+ "Car alarm": 310,
612
+ "Car passing by": 314,
613
+ "Carnatic music": 261,
614
+ "Cash register": 414,
615
+ "Cat": 81,
616
+ "Caterwaul": 85,
617
+ "Cattle, bovinae": 90,
618
+ "Caw": 118,
619
+ "Cello": 193,
620
+ "Chainsaw": 347,
621
+ "Change ringing (campanology)": 207,
622
+ "Chant": 30,
623
+ "Chatter": 68,
624
+ "Cheering": 66,
625
+ "Chewing, mastication": 54,
626
+ "Chicken, rooster": 99,
627
+ "Child singing": 34,
628
+ "Child speech, kid speaking": 3,
629
+ "Children playing": 71,
630
+ "Children shouting": 13,
631
+ "Chime": 205,
632
+ "Chink, clink": 442,
633
+ "Chirp tone": 503,
634
+ "Chirp, tweet": 113,
635
+ "Choir": 28,
636
+ "Chop": 438,
637
+ "Chopping (food)": 366,
638
+ "Chorus effect": 464,
639
+ "Christian music": 258,
640
+ "Christmas music": 273,
641
+ "Chuckle, chortle": 21,
642
+ "Church bell": 201,
643
+ "Civil defense siren": 397,
644
+ "Clang": 484,
645
+ "Clapping": 63,
646
+ "Clarinet": 198,
647
+ "Classical music": 237,
648
+ "Clatter": 489,
649
+ "Clickety-clack": 492,
650
+ "Clicking": 491,
651
+ "Clip-clop": 88,
652
+ "Clock": 406,
653
+ "Cluck": 100,
654
+ "Coin (dropping)": 380,
655
+ "Computer keyboard": 386,
656
+ "Conversation": 4,
657
+ "Coo": 116,
658
+ "Cough": 47,
659
+ "Country": 229,
660
+ "Cowbell": 92,
661
+ "Crack": 440,
662
+ "Crackle": 299,
663
+ "Creak": 486,
664
+ "Cricket": 127,
665
+ "Croak": 133,
666
+ "Crow": 117,
667
+ "Crowd": 69,
668
+ "Crowing, cock-a-doodle-doo": 101,
669
+ "Crumpling, crinkling": 479,
670
+ "Crunch": 499,
671
+ "Crushing": 478,
672
+ "Crying, sobbing": 22,
673
+ "Cupboard open or close": 362,
674
+ "Cutlery, silverware": 365,
675
+ "Cymbal": 171,
676
+ "Dance music": 274,
677
+ "Dental drill, dentist's drill": 345,
678
+ "Dial tone": 393,
679
+ "Didgeridoo": 211,
680
+ "Ding": 483,
681
+ "Ding-dong": 356,
682
+ "Disco": 236,
683
+ "Dishes, pots, and pans": 364,
684
+ "Distortion": 517,
685
+ "Dog": 74,
686
+ "Domestic animals, pets": 73,
687
+ "Door": 354,
688
+ "Doorbell": 355,
689
+ "Double bass": 194,
690
+ "Drawer open or close": 363,
691
+ "Drill": 425,
692
+ "Drip": 448,
693
+ "Drum": 164,
694
+ "Drum and bass": 243,
695
+ "Drum kit": 162,
696
+ "Drum machine": 163,
697
+ "Drum roll": 167,
698
+ "Dubstep": 242,
699
+ "Duck": 104,
700
+ "Echo": 512,
701
+ "Effects unit": 463,
702
+ "Electric guitar": 141,
703
+ "Electric piano": 154,
704
+ "Electric shaver, electric razor": 382,
705
+ "Electric toothbrush": 376,
706
+ "Electronic dance music": 245,
707
+ "Electronic music": 239,
708
+ "Electronic organ": 156,
709
+ "Electronic tuner": 462,
710
+ "Electronica": 244,
711
+ "Emergency vehicle": 322,
712
+ "Engine": 343,
713
+ "Engine knocking": 350,
714
+ "Engine starting": 351,
715
+ "Environmental noise": 514,
716
+ "Eruption": 435,
717
+ "Exciting music": 280,
718
+ "Explosion": 426,
719
+ "Fart": 60,
720
+ "Female singing": 33,
721
+ "Female speech, woman speaking": 2,
722
+ "Field recording": 526,
723
+ "Filing (rasp)": 422,
724
+ "Fill (with liquid)": 452,
725
+ "Finger snapping": 62,
726
+ "Fire": 298,
727
+ "Fire alarm": 400,
728
+ "Fire engine, fire truck (siren)": 325,
729
+ "Firecracker": 433,
730
+ "Fireworks": 432,
731
+ "Fixed-wing aircraft, airplane": 340,
732
+ "Flamenco": 250,
733
+ "Flap": 473,
734
+ "Flute": 196,
735
+ "Fly, housefly": 129,
736
+ "Foghorn": 401,
737
+ "Folk music": 233,
738
+ "Fowl": 98,
739
+ "French horn": 186,
740
+ "Frog": 132,
741
+ "Frying (food)": 367,
742
+ "Funk": 232,
743
+ "Funny music": 277,
744
+ "Fusillade": 429,
745
+ "Gargling": 56,
746
+ "Gasp": 44,
747
+ "Gears": 409,
748
+ "Giggle": 18,
749
+ "Glass": 441,
750
+ "Glockenspiel": 181,
751
+ "Goat": 95,
752
+ "Gobble": 103,
753
+ "Gong": 177,
754
+ "Goose": 106,
755
+ "Gospel music": 259,
756
+ "Groan": 38,
757
+ "Growling": 79,
758
+ "Grunge": 222,
759
+ "Grunt": 39,
760
+ "Guitar": 140,
761
+ "Gunshot, gunfire": 427,
762
+ "Gurgling": 297,
763
+ "Gush": 451,
764
+ "Hair dryer": 373,
765
+ "Hammer": 419,
766
+ "Hammond organ": 157,
767
+ "Hands": 61,
768
+ "Happy music": 276,
769
+ "Harmonic": 502,
770
+ "Harmonica": 208,
771
+ "Harp": 199,
772
+ "Harpsichord": 160,
773
+ "Heart murmur": 65,
774
+ "Heart sounds, heartbeat": 64,
775
+ "Heavy engine (low frequency)": 349,
776
+ "Heavy metal": 220,
777
+ "Helicopter": 339,
778
+ "Hi-hat": 172,
779
+ "Hiccup": 59,
780
+ "Hip hop music": 217,
781
+ "Hiss": 84,
782
+ "Honk": 107,
783
+ "Hoot": 120,
784
+ "Horse": 87,
785
+ "House music": 240,
786
+ "Howl": 77,
787
+ "Hubbub, speech noise, speech babble": 70,
788
+ "Hum": 496,
789
+ "Humming": 37,
790
+ "Ice cream truck, ice cream van": 320,
791
+ "Idling": 352,
792
+ "Independent music": 265,
793
+ "Insect": 126,
794
+ "Inside, large room or hall": 507,
795
+ "Inside, public space": 508,
796
+ "Inside, small room": 506,
797
+ "Jackhammer": 420,
798
+ "Jazz": 235,
799
+ "Jet engine": 337,
800
+ "Jingle (music)": 269,
801
+ "Jingle bell": 202,
802
+ "Jingle, tinkle": 495,
803
+ "Keyboard (musical)": 152,
804
+ "Keys jangling": 379,
805
+ "Knock": 359,
806
+ "Laughter": 16,
807
+ "Lawn mower": 346,
808
+ "Light engine (high frequency)": 344,
809
+ "Liquid": 444,
810
+ "Livestock, farm animals, working animals": 86,
811
+ "Lullaby": 271,
812
+ "Machine gun": 428,
813
+ "Mains hum": 516,
814
+ "Male singing": 32,
815
+ "Male speech, man speaking": 1,
816
+ "Mallet percussion": 179,
817
+ "Mandolin": 149,
818
+ "Mantra": 31,
819
+ "Maraca": 176,
820
+ "Marimba, xylophone": 180,
821
+ "Mechanical fan": 412,
822
+ "Mechanisms": 404,
823
+ "Medium engine (mid frequency)": 348,
824
+ "Meow": 83,
825
+ "Microwave oven": 368,
826
+ "Middle Eastern music": 234,
827
+ "Moo": 91,
828
+ "Mosquito": 128,
829
+ "Motor vehicle (road)": 306,
830
+ "Motorboat, speedboat": 304,
831
+ "Motorcycle": 326,
832
+ "Mouse": 124,
833
+ "Music": 137,
834
+ "Music for children": 252,
835
+ "Music of Africa": 256,
836
+ "Music of Asia": 260,
837
+ "Music of Bollywood": 262,
838
+ "Music of Latin America": 248,
839
+ "Musical instrument": 138,
840
+ "Narration, monologue": 5,
841
+ "Neigh, whinny": 89,
842
+ "New-age music": 253,
843
+ "Noise": 513,
844
+ "Ocean": 294,
845
+ "Oink": 94,
846
+ "Opera": 238,
847
+ "Orchestra": 184,
848
+ "Organ": 155,
849
+ "Outside, rural or natural": 510,
850
+ "Outside, urban or manmade": 509,
851
+ "Owl": 119,
852
+ "Pant": 45,
853
+ "Patter": 125,
854
+ "Percussion": 161,
855
+ "Piano": 153,
856
+ "Pig": 93,
857
+ "Pigeon, dove": 115,
858
+ "Ping": 482,
859
+ "Pink noise": 521,
860
+ "Pizzicato": 192,
861
+ "Plop": 494,
862
+ "Plucked string instrument": 139,
863
+ "Police car (siren)": 323,
864
+ "Pop music": 216,
865
+ "Pour": 449,
866
+ "Power tool": 424,
867
+ "Power windows, electric windows": 311,
868
+ "Printer": 415,
869
+ "Progressive rock": 223,
870
+ "Propeller, airscrew": 338,
871
+ "Psychedelic rock": 225,
872
+ "Pulleys": 410,
873
+ "Pulse": 505,
874
+ "Pump (liquid)": 454,
875
+ "Punk rock": 221,
876
+ "Purr": 82,
877
+ "Quack": 105,
878
+ "Race car, auto racing": 315,
879
+ "Radio": 525,
880
+ "Rail transport": 328,
881
+ "Railroad car, train wagon": 332,
882
+ "Rain": 289,
883
+ "Rain on surface": 291,
884
+ "Raindrop": 290,
885
+ "Rapping": 36,
886
+ "Ratchet, pawl": 405,
887
+ "Rattle": 135,
888
+ "Rattle (instrument)": 175,
889
+ "Reggae": 228,
890
+ "Reverberation": 511,
891
+ "Reversing beeps": 319,
892
+ "Rhythm and blues": 226,
893
+ "Rimshot": 166,
894
+ "Ringtone": 391,
895
+ "Roar": 110,
896
+ "Roaring cats (lions, tigers)": 109,
897
+ "Rock and roll": 224,
898
+ "Rock music": 219,
899
+ "Rodents, rats, mice": 123,
900
+ "Roll": 477,
901
+ "Rowboat, canoe, kayak": 303,
902
+ "Rub": 476,
903
+ "Rumble": 493,
904
+ "Run": 51,
905
+ "Rustle": 487,
906
+ "Rustling leaves": 284,
907
+ "Sad music": 278,
908
+ "Sailboat, sailing ship": 302,
909
+ "Salsa music": 249,
910
+ "Sampler": 159,
911
+ "Sanding": 423,
912
+ "Sawing": 421,
913
+ "Saxophone": 197,
914
+ "Scary music": 282,
915
+ "Scissors": 381,
916
+ "Scrape": 475,
917
+ "Scratch": 474,
918
+ "Scratching (performance technique)": 215,
919
+ "Screaming": 14,
920
+ "Sewing machine": 411,
921
+ "Shatter": 443,
922
+ "Sheep": 97,
923
+ "Ship": 305,
924
+ "Shofar": 212,
925
+ "Shout": 8,
926
+ "Shuffle": 52,
927
+ "Shuffling cards": 383,
928
+ "Sidetone": 518,
929
+ "Sigh": 26,
930
+ "Silence": 500,
931
+ "Sine wave": 501,
932
+ "Singing": 27,
933
+ "Singing bowl": 214,
934
+ "Single-lens reflex camera": 417,
935
+ "Sink (filling or washing)": 371,
936
+ "Siren": 396,
937
+ "Sitar": 148,
938
+ "Sizzle": 490,
939
+ "Ska": 263,
940
+ "Skateboard": 342,
941
+ "Skidding": 312,
942
+ "Slam": 358,
943
+ "Slap, smack": 467,
944
+ "Sliding door": 357,
945
+ "Slosh": 446,
946
+ "Smash, crash": 469,
947
+ "Smoke detector, smoke alarm": 399,
948
+ "Snake": 134,
949
+ "Snare drum": 165,
950
+ "Sneeze": 49,
951
+ "Snicker": 19,
952
+ "Sniff": 50,
953
+ "Snoring": 43,
954
+ "Snort": 46,
955
+ "Sonar": 457,
956
+ "Song": 266,
957
+ "Soul music": 227,
958
+ "Sound effect": 504,
959
+ "Soundtrack music": 270,
960
+ "Speech": 0,
961
+ "Speech synthesizer": 7,
962
+ "Splash, splatter": 445,
963
+ "Splinter": 439,
964
+ "Spray": 453,
965
+ "Squawk": 114,
966
+ "Squeak": 361,
967
+ "Squeal": 485,
968
+ "Squish": 447,
969
+ "Static": 515,
970
+ "Steam": 296,
971
+ "Steam whistle": 403,
972
+ "Steel guitar, slide guitar": 144,
973
+ "Steelpan": 183,
974
+ "Stir": 455,
975
+ "Stomach rumble": 57,
976
+ "Stream": 292,
977
+ "String section": 190,
978
+ "Strum": 146,
979
+ "Subway, metro, underground": 334,
980
+ "Swing music": 230,
981
+ "Synthesizer": 158,
982
+ "Synthetic singing": 35,
983
+ "Tabla": 170,
984
+ "Tambourine": 174,
985
+ "Tap": 360,
986
+ "Tapping (guitar technique)": 145,
987
+ "Tearing": 480,
988
+ "Techno": 241,
989
+ "Telephone": 389,
990
+ "Telephone bell ringing": 390,
991
+ "Telephone dialing, DTMF": 392,
992
+ "Television": 524,
993
+ "Tender music": 279,
994
+ "Theme music": 268,
995
+ "Theremin": 213,
996
+ "Throat clearing": 48,
997
+ "Throbbing": 522,
998
+ "Thump, thud": 460,
999
+ "Thunder": 287,
1000
+ "Thunderstorm": 286,
1001
+ "Thunk": 461,
1002
+ "Tick": 407,
1003
+ "Tick-tock": 408,
1004
+ "Timpani": 169,
1005
+ "Tire squeal": 313,
1006
+ "Toilet flush": 374,
1007
+ "Tools": 418,
1008
+ "Toot": 309,
1009
+ "Toothbrush": 375,
1010
+ "Traditional music": 264,
1011
+ "Traffic noise, roadway noise": 327,
1012
+ "Train": 329,
1013
+ "Train horn": 331,
1014
+ "Train wheels squealing": 333,
1015
+ "Train whistle": 330,
1016
+ "Trance music": 247,
1017
+ "Trickle, dribble": 450,
1018
+ "Trombone": 188,
1019
+ "Truck": 316,
1020
+ "Trumpet": 187,
1021
+ "Tubular bells": 178,
1022
+ "Tuning fork": 204,
1023
+ "Turkey": 102,
1024
+ "Typewriter": 385,
1025
+ "Typing": 384,
1026
+ "Ukulele": 151,
1027
+ "Vacuum cleaner": 377,
1028
+ "Vehicle": 300,
1029
+ "Vehicle horn, car horn, honking": 308,
1030
+ "Vibraphone": 182,
1031
+ "Vibration": 523,
1032
+ "Video game music": 272,
1033
+ "Violin, fiddle": 191,
1034
+ "Vocal music": 254,
1035
+ "Wail, moan": 25,
1036
+ "Walk, footsteps": 53,
1037
+ "Water": 288,
1038
+ "Water tap, faucet": 370,
1039
+ "Waterfall": 293,
1040
+ "Waves, surf": 295,
1041
+ "Wedding music": 275,
1042
+ "Whack, thwack": 468,
1043
+ "Whale vocalization": 136,
1044
+ "Wheeze": 42,
1045
+ "Whimper": 24,
1046
+ "Whimper (dog)": 80,
1047
+ "Whip": 472,
1048
+ "Whir": 488,
1049
+ "Whispering": 15,
1050
+ "Whistle": 402,
1051
+ "Whistling": 40,
1052
+ "White noise": 520,
1053
+ "Whoop": 10,
1054
+ "Whoosh, swoosh, swish": 459,
1055
+ "Wild animals": 108,
1056
+ "Wind": 283,
1057
+ "Wind chime": 206,
1058
+ "Wind instrument, woodwind instrument": 195,
1059
+ "Wind noise (microphone)": 285,
1060
+ "Wood": 437,
1061
+ "Wood block": 173,
1062
+ "Writing": 387,
1063
+ "Yell": 11,
1064
+ "Yip": 76,
1065
+ "Yodeling": 29,
1066
+ "Zing": 497,
1067
+ "Zipper (clothing)": 378,
1068
+ "Zither": 150
1069
+ },
1070
+ "layer_norm_eps": 1e-12,
1071
+ "max_length": 1024,
1072
+ "model_type": "audio-spectrogram-transformer",
1073
+ "num_attention_heads": 12,
1074
+ "num_hidden_layers": 12,
1075
+ "num_mel_bins": 128,
1076
+ "patch_size": 16,
1077
+ "problem_type": "single_label_classification",
1078
+ "qkv_bias": true,
1079
+ "time_stride": 10,
1080
+ "torch_dtype": "float32",
1081
+ "transformers_version": "4.51.1"
1082
+ }
output/augmented_esc50/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:864e1cf06d6b17acdb458122ab0d8a6345dd203266bf6ee94fe91dec36b3d6ba
3
+ size 346404948
output/augmented_esc50/test_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "test_accuracy": 0.9835,
3
+ "test_loss": 0.07399206608533859,
4
+ "test_model_preparation_time": 0.1745,
5
+ "test_runtime": 110.5501,
6
+ "test_samples_per_second": 18.091,
7
+ "test_steps_per_second": 2.261
8
+ }
output/augmented_esc50/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f68089c73da00e5426fbe1b7586cd81a39a15f1747aca4941237d2ea1255dd76
3
+ size 5240
output/checkpoint-800/config.json ADDED
@@ -0,0 +1,1082 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ASTForAudioClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "frequency_stride": 10,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "Speech",
12
+ "1": "Male speech, man speaking",
13
+ "2": "Female speech, woman speaking",
14
+ "3": "Child speech, kid speaking",
15
+ "4": "Conversation",
16
+ "5": "Narration, monologue",
17
+ "6": "Babbling",
18
+ "7": "Speech synthesizer",
19
+ "8": "Shout",
20
+ "9": "Bellow",
21
+ "10": "Whoop",
22
+ "11": "Yell",
23
+ "12": "Battle cry",
24
+ "13": "Children shouting",
25
+ "14": "Screaming",
26
+ "15": "Whispering",
27
+ "16": "Laughter",
28
+ "17": "Baby laughter",
29
+ "18": "Giggle",
30
+ "19": "Snicker",
31
+ "20": "Belly laugh",
32
+ "21": "Chuckle, chortle",
33
+ "22": "Crying, sobbing",
34
+ "23": "Baby cry, infant cry",
35
+ "24": "Whimper",
36
+ "25": "Wail, moan",
37
+ "26": "Sigh",
38
+ "27": "Singing",
39
+ "28": "Choir",
40
+ "29": "Yodeling",
41
+ "30": "Chant",
42
+ "31": "Mantra",
43
+ "32": "Male singing",
44
+ "33": "Female singing",
45
+ "34": "Child singing",
46
+ "35": "Synthetic singing",
47
+ "36": "Rapping",
48
+ "37": "Humming",
49
+ "38": "Groan",
50
+ "39": "Grunt",
51
+ "40": "Whistling",
52
+ "41": "Breathing",
53
+ "42": "Wheeze",
54
+ "43": "Snoring",
55
+ "44": "Gasp",
56
+ "45": "Pant",
57
+ "46": "Snort",
58
+ "47": "Cough",
59
+ "48": "Throat clearing",
60
+ "49": "Sneeze",
61
+ "50": "Sniff",
62
+ "51": "Run",
63
+ "52": "Shuffle",
64
+ "53": "Walk, footsteps",
65
+ "54": "Chewing, mastication",
66
+ "55": "Biting",
67
+ "56": "Gargling",
68
+ "57": "Stomach rumble",
69
+ "58": "Burping, eructation",
70
+ "59": "Hiccup",
71
+ "60": "Fart",
72
+ "61": "Hands",
73
+ "62": "Finger snapping",
74
+ "63": "Clapping",
75
+ "64": "Heart sounds, heartbeat",
76
+ "65": "Heart murmur",
77
+ "66": "Cheering",
78
+ "67": "Applause",
79
+ "68": "Chatter",
80
+ "69": "Crowd",
81
+ "70": "Hubbub, speech noise, speech babble",
82
+ "71": "Children playing",
83
+ "72": "Animal",
84
+ "73": "Domestic animals, pets",
85
+ "74": "Dog",
86
+ "75": "Bark",
87
+ "76": "Yip",
88
+ "77": "Howl",
89
+ "78": "Bow-wow",
90
+ "79": "Growling",
91
+ "80": "Whimper (dog)",
92
+ "81": "Cat",
93
+ "82": "Purr",
94
+ "83": "Meow",
95
+ "84": "Hiss",
96
+ "85": "Caterwaul",
97
+ "86": "Livestock, farm animals, working animals",
98
+ "87": "Horse",
99
+ "88": "Clip-clop",
100
+ "89": "Neigh, whinny",
101
+ "90": "Cattle, bovinae",
102
+ "91": "Moo",
103
+ "92": "Cowbell",
104
+ "93": "Pig",
105
+ "94": "Oink",
106
+ "95": "Goat",
107
+ "96": "Bleat",
108
+ "97": "Sheep",
109
+ "98": "Fowl",
110
+ "99": "Chicken, rooster",
111
+ "100": "Cluck",
112
+ "101": "Crowing, cock-a-doodle-doo",
113
+ "102": "Turkey",
114
+ "103": "Gobble",
115
+ "104": "Duck",
116
+ "105": "Quack",
117
+ "106": "Goose",
118
+ "107": "Honk",
119
+ "108": "Wild animals",
120
+ "109": "Roaring cats (lions, tigers)",
121
+ "110": "Roar",
122
+ "111": "Bird",
123
+ "112": "Bird vocalization, bird call, bird song",
124
+ "113": "Chirp, tweet",
125
+ "114": "Squawk",
126
+ "115": "Pigeon, dove",
127
+ "116": "Coo",
128
+ "117": "Crow",
129
+ "118": "Caw",
130
+ "119": "Owl",
131
+ "120": "Hoot",
132
+ "121": "Bird flight, flapping wings",
133
+ "122": "Canidae, dogs, wolves",
134
+ "123": "Rodents, rats, mice",
135
+ "124": "Mouse",
136
+ "125": "Patter",
137
+ "126": "Insect",
138
+ "127": "Cricket",
139
+ "128": "Mosquito",
140
+ "129": "Fly, housefly",
141
+ "130": "Buzz",
142
+ "131": "Bee, wasp, etc.",
143
+ "132": "Frog",
144
+ "133": "Croak",
145
+ "134": "Snake",
146
+ "135": "Rattle",
147
+ "136": "Whale vocalization",
148
+ "137": "Music",
149
+ "138": "Musical instrument",
150
+ "139": "Plucked string instrument",
151
+ "140": "Guitar",
152
+ "141": "Electric guitar",
153
+ "142": "Bass guitar",
154
+ "143": "Acoustic guitar",
155
+ "144": "Steel guitar, slide guitar",
156
+ "145": "Tapping (guitar technique)",
157
+ "146": "Strum",
158
+ "147": "Banjo",
159
+ "148": "Sitar",
160
+ "149": "Mandolin",
161
+ "150": "Zither",
162
+ "151": "Ukulele",
163
+ "152": "Keyboard (musical)",
164
+ "153": "Piano",
165
+ "154": "Electric piano",
166
+ "155": "Organ",
167
+ "156": "Electronic organ",
168
+ "157": "Hammond organ",
169
+ "158": "Synthesizer",
170
+ "159": "Sampler",
171
+ "160": "Harpsichord",
172
+ "161": "Percussion",
173
+ "162": "Drum kit",
174
+ "163": "Drum machine",
175
+ "164": "Drum",
176
+ "165": "Snare drum",
177
+ "166": "Rimshot",
178
+ "167": "Drum roll",
179
+ "168": "Bass drum",
180
+ "169": "Timpani",
181
+ "170": "Tabla",
182
+ "171": "Cymbal",
183
+ "172": "Hi-hat",
184
+ "173": "Wood block",
185
+ "174": "Tambourine",
186
+ "175": "Rattle (instrument)",
187
+ "176": "Maraca",
188
+ "177": "Gong",
189
+ "178": "Tubular bells",
190
+ "179": "Mallet percussion",
191
+ "180": "Marimba, xylophone",
192
+ "181": "Glockenspiel",
193
+ "182": "Vibraphone",
194
+ "183": "Steelpan",
195
+ "184": "Orchestra",
196
+ "185": "Brass instrument",
197
+ "186": "French horn",
198
+ "187": "Trumpet",
199
+ "188": "Trombone",
200
+ "189": "Bowed string instrument",
201
+ "190": "String section",
202
+ "191": "Violin, fiddle",
203
+ "192": "Pizzicato",
204
+ "193": "Cello",
205
+ "194": "Double bass",
206
+ "195": "Wind instrument, woodwind instrument",
207
+ "196": "Flute",
208
+ "197": "Saxophone",
209
+ "198": "Clarinet",
210
+ "199": "Harp",
211
+ "200": "Bell",
212
+ "201": "Church bell",
213
+ "202": "Jingle bell",
214
+ "203": "Bicycle bell",
215
+ "204": "Tuning fork",
216
+ "205": "Chime",
217
+ "206": "Wind chime",
218
+ "207": "Change ringing (campanology)",
219
+ "208": "Harmonica",
220
+ "209": "Accordion",
221
+ "210": "Bagpipes",
222
+ "211": "Didgeridoo",
223
+ "212": "Shofar",
224
+ "213": "Theremin",
225
+ "214": "Singing bowl",
226
+ "215": "Scratching (performance technique)",
227
+ "216": "Pop music",
228
+ "217": "Hip hop music",
229
+ "218": "Beatboxing",
230
+ "219": "Rock music",
231
+ "220": "Heavy metal",
232
+ "221": "Punk rock",
233
+ "222": "Grunge",
234
+ "223": "Progressive rock",
235
+ "224": "Rock and roll",
236
+ "225": "Psychedelic rock",
237
+ "226": "Rhythm and blues",
238
+ "227": "Soul music",
239
+ "228": "Reggae",
240
+ "229": "Country",
241
+ "230": "Swing music",
242
+ "231": "Bluegrass",
243
+ "232": "Funk",
244
+ "233": "Folk music",
245
+ "234": "Middle Eastern music",
246
+ "235": "Jazz",
247
+ "236": "Disco",
248
+ "237": "Classical music",
249
+ "238": "Opera",
250
+ "239": "Electronic music",
251
+ "240": "House music",
252
+ "241": "Techno",
253
+ "242": "Dubstep",
254
+ "243": "Drum and bass",
255
+ "244": "Electronica",
256
+ "245": "Electronic dance music",
257
+ "246": "Ambient music",
258
+ "247": "Trance music",
259
+ "248": "Music of Latin America",
260
+ "249": "Salsa music",
261
+ "250": "Flamenco",
262
+ "251": "Blues",
263
+ "252": "Music for children",
264
+ "253": "New-age music",
265
+ "254": "Vocal music",
266
+ "255": "A capella",
267
+ "256": "Music of Africa",
268
+ "257": "Afrobeat",
269
+ "258": "Christian music",
270
+ "259": "Gospel music",
271
+ "260": "Music of Asia",
272
+ "261": "Carnatic music",
273
+ "262": "Music of Bollywood",
274
+ "263": "Ska",
275
+ "264": "Traditional music",
276
+ "265": "Independent music",
277
+ "266": "Song",
278
+ "267": "Background music",
279
+ "268": "Theme music",
280
+ "269": "Jingle (music)",
281
+ "270": "Soundtrack music",
282
+ "271": "Lullaby",
283
+ "272": "Video game music",
284
+ "273": "Christmas music",
285
+ "274": "Dance music",
286
+ "275": "Wedding music",
287
+ "276": "Happy music",
288
+ "277": "Funny music",
289
+ "278": "Sad music",
290
+ "279": "Tender music",
291
+ "280": "Exciting music",
292
+ "281": "Angry music",
293
+ "282": "Scary music",
294
+ "283": "Wind",
295
+ "284": "Rustling leaves",
296
+ "285": "Wind noise (microphone)",
297
+ "286": "Thunderstorm",
298
+ "287": "Thunder",
299
+ "288": "Water",
300
+ "289": "Rain",
301
+ "290": "Raindrop",
302
+ "291": "Rain on surface",
303
+ "292": "Stream",
304
+ "293": "Waterfall",
305
+ "294": "Ocean",
306
+ "295": "Waves, surf",
307
+ "296": "Steam",
308
+ "297": "Gurgling",
309
+ "298": "Fire",
310
+ "299": "Crackle",
311
+ "300": "Vehicle",
312
+ "301": "Boat, Water vehicle",
313
+ "302": "Sailboat, sailing ship",
314
+ "303": "Rowboat, canoe, kayak",
315
+ "304": "Motorboat, speedboat",
316
+ "305": "Ship",
317
+ "306": "Motor vehicle (road)",
318
+ "307": "Car",
319
+ "308": "Vehicle horn, car horn, honking",
320
+ "309": "Toot",
321
+ "310": "Car alarm",
322
+ "311": "Power windows, electric windows",
323
+ "312": "Skidding",
324
+ "313": "Tire squeal",
325
+ "314": "Car passing by",
326
+ "315": "Race car, auto racing",
327
+ "316": "Truck",
328
+ "317": "Air brake",
329
+ "318": "Air horn, truck horn",
330
+ "319": "Reversing beeps",
331
+ "320": "Ice cream truck, ice cream van",
332
+ "321": "Bus",
333
+ "322": "Emergency vehicle",
334
+ "323": "Police car (siren)",
335
+ "324": "Ambulance (siren)",
336
+ "325": "Fire engine, fire truck (siren)",
337
+ "326": "Motorcycle",
338
+ "327": "Traffic noise, roadway noise",
339
+ "328": "Rail transport",
340
+ "329": "Train",
341
+ "330": "Train whistle",
342
+ "331": "Train horn",
343
+ "332": "Railroad car, train wagon",
344
+ "333": "Train wheels squealing",
345
+ "334": "Subway, metro, underground",
346
+ "335": "Aircraft",
347
+ "336": "Aircraft engine",
348
+ "337": "Jet engine",
349
+ "338": "Propeller, airscrew",
350
+ "339": "Helicopter",
351
+ "340": "Fixed-wing aircraft, airplane",
352
+ "341": "Bicycle",
353
+ "342": "Skateboard",
354
+ "343": "Engine",
355
+ "344": "Light engine (high frequency)",
356
+ "345": "Dental drill, dentist's drill",
357
+ "346": "Lawn mower",
358
+ "347": "Chainsaw",
359
+ "348": "Medium engine (mid frequency)",
360
+ "349": "Heavy engine (low frequency)",
361
+ "350": "Engine knocking",
362
+ "351": "Engine starting",
363
+ "352": "Idling",
364
+ "353": "Accelerating, revving, vroom",
365
+ "354": "Door",
366
+ "355": "Doorbell",
367
+ "356": "Ding-dong",
368
+ "357": "Sliding door",
369
+ "358": "Slam",
370
+ "359": "Knock",
371
+ "360": "Tap",
372
+ "361": "Squeak",
373
+ "362": "Cupboard open or close",
374
+ "363": "Drawer open or close",
375
+ "364": "Dishes, pots, and pans",
376
+ "365": "Cutlery, silverware",
377
+ "366": "Chopping (food)",
378
+ "367": "Frying (food)",
379
+ "368": "Microwave oven",
380
+ "369": "Blender",
381
+ "370": "Water tap, faucet",
382
+ "371": "Sink (filling or washing)",
383
+ "372": "Bathtub (filling or washing)",
384
+ "373": "Hair dryer",
385
+ "374": "Toilet flush",
386
+ "375": "Toothbrush",
387
+ "376": "Electric toothbrush",
388
+ "377": "Vacuum cleaner",
389
+ "378": "Zipper (clothing)",
390
+ "379": "Keys jangling",
391
+ "380": "Coin (dropping)",
392
+ "381": "Scissors",
393
+ "382": "Electric shaver, electric razor",
394
+ "383": "Shuffling cards",
395
+ "384": "Typing",
396
+ "385": "Typewriter",
397
+ "386": "Computer keyboard",
398
+ "387": "Writing",
399
+ "388": "Alarm",
400
+ "389": "Telephone",
401
+ "390": "Telephone bell ringing",
402
+ "391": "Ringtone",
403
+ "392": "Telephone dialing, DTMF",
404
+ "393": "Dial tone",
405
+ "394": "Busy signal",
406
+ "395": "Alarm clock",
407
+ "396": "Siren",
408
+ "397": "Civil defense siren",
409
+ "398": "Buzzer",
410
+ "399": "Smoke detector, smoke alarm",
411
+ "400": "Fire alarm",
412
+ "401": "Foghorn",
413
+ "402": "Whistle",
414
+ "403": "Steam whistle",
415
+ "404": "Mechanisms",
416
+ "405": "Ratchet, pawl",
417
+ "406": "Clock",
418
+ "407": "Tick",
419
+ "408": "Tick-tock",
420
+ "409": "Gears",
421
+ "410": "Pulleys",
422
+ "411": "Sewing machine",
423
+ "412": "Mechanical fan",
424
+ "413": "Air conditioning",
425
+ "414": "Cash register",
426
+ "415": "Printer",
427
+ "416": "Camera",
428
+ "417": "Single-lens reflex camera",
429
+ "418": "Tools",
430
+ "419": "Hammer",
431
+ "420": "Jackhammer",
432
+ "421": "Sawing",
433
+ "422": "Filing (rasp)",
434
+ "423": "Sanding",
435
+ "424": "Power tool",
436
+ "425": "Drill",
437
+ "426": "Explosion",
438
+ "427": "Gunshot, gunfire",
439
+ "428": "Machine gun",
440
+ "429": "Fusillade",
441
+ "430": "Artillery fire",
442
+ "431": "Cap gun",
443
+ "432": "Fireworks",
444
+ "433": "Firecracker",
445
+ "434": "Burst, pop",
446
+ "435": "Eruption",
447
+ "436": "Boom",
448
+ "437": "Wood",
449
+ "438": "Chop",
450
+ "439": "Splinter",
451
+ "440": "Crack",
452
+ "441": "Glass",
453
+ "442": "Chink, clink",
454
+ "443": "Shatter",
455
+ "444": "Liquid",
456
+ "445": "Splash, splatter",
457
+ "446": "Slosh",
458
+ "447": "Squish",
459
+ "448": "Drip",
460
+ "449": "Pour",
461
+ "450": "Trickle, dribble",
462
+ "451": "Gush",
463
+ "452": "Fill (with liquid)",
464
+ "453": "Spray",
465
+ "454": "Pump (liquid)",
466
+ "455": "Stir",
467
+ "456": "Boiling",
468
+ "457": "Sonar",
469
+ "458": "Arrow",
470
+ "459": "Whoosh, swoosh, swish",
471
+ "460": "Thump, thud",
472
+ "461": "Thunk",
473
+ "462": "Electronic tuner",
474
+ "463": "Effects unit",
475
+ "464": "Chorus effect",
476
+ "465": "Basketball bounce",
477
+ "466": "Bang",
478
+ "467": "Slap, smack",
479
+ "468": "Whack, thwack",
480
+ "469": "Smash, crash",
481
+ "470": "Breaking",
482
+ "471": "Bouncing",
483
+ "472": "Whip",
484
+ "473": "Flap",
485
+ "474": "Scratch",
486
+ "475": "Scrape",
487
+ "476": "Rub",
488
+ "477": "Roll",
489
+ "478": "Crushing",
490
+ "479": "Crumpling, crinkling",
491
+ "480": "Tearing",
492
+ "481": "Beep, bleep",
493
+ "482": "Ping",
494
+ "483": "Ding",
495
+ "484": "Clang",
496
+ "485": "Squeal",
497
+ "486": "Creak",
498
+ "487": "Rustle",
499
+ "488": "Whir",
500
+ "489": "Clatter",
501
+ "490": "Sizzle",
502
+ "491": "Clicking",
503
+ "492": "Clickety-clack",
504
+ "493": "Rumble",
505
+ "494": "Plop",
506
+ "495": "Jingle, tinkle",
507
+ "496": "Hum",
508
+ "497": "Zing",
509
+ "498": "Boing",
510
+ "499": "Crunch",
511
+ "500": "Silence",
512
+ "501": "Sine wave",
513
+ "502": "Harmonic",
514
+ "503": "Chirp tone",
515
+ "504": "Sound effect",
516
+ "505": "Pulse",
517
+ "506": "Inside, small room",
518
+ "507": "Inside, large room or hall",
519
+ "508": "Inside, public space",
520
+ "509": "Outside, urban or manmade",
521
+ "510": "Outside, rural or natural",
522
+ "511": "Reverberation",
523
+ "512": "Echo",
524
+ "513": "Noise",
525
+ "514": "Environmental noise",
526
+ "515": "Static",
527
+ "516": "Mains hum",
528
+ "517": "Distortion",
529
+ "518": "Sidetone",
530
+ "519": "Cacophony",
531
+ "520": "White noise",
532
+ "521": "Pink noise",
533
+ "522": "Throbbing",
534
+ "523": "Vibration",
535
+ "524": "Television",
536
+ "525": "Radio",
537
+ "526": "Field recording"
538
+ },
539
+ "initializer_range": 0.02,
540
+ "intermediate_size": 3072,
541
+ "label2id": {
542
+ "A capella": 255,
543
+ "Accelerating, revving, vroom": 353,
544
+ "Accordion": 209,
545
+ "Acoustic guitar": 143,
546
+ "Afrobeat": 257,
547
+ "Air brake": 317,
548
+ "Air conditioning": 413,
549
+ "Air horn, truck horn": 318,
550
+ "Aircraft": 335,
551
+ "Aircraft engine": 336,
552
+ "Alarm": 388,
553
+ "Alarm clock": 395,
554
+ "Ambient music": 246,
555
+ "Ambulance (siren)": 324,
556
+ "Angry music": 281,
557
+ "Animal": 72,
558
+ "Applause": 67,
559
+ "Arrow": 458,
560
+ "Artillery fire": 430,
561
+ "Babbling": 6,
562
+ "Baby cry, infant cry": 23,
563
+ "Baby laughter": 17,
564
+ "Background music": 267,
565
+ "Bagpipes": 210,
566
+ "Bang": 466,
567
+ "Banjo": 147,
568
+ "Bark": 75,
569
+ "Basketball bounce": 465,
570
+ "Bass drum": 168,
571
+ "Bass guitar": 142,
572
+ "Bathtub (filling or washing)": 372,
573
+ "Battle cry": 12,
574
+ "Beatboxing": 218,
575
+ "Bee, wasp, etc.": 131,
576
+ "Beep, bleep": 481,
577
+ "Bell": 200,
578
+ "Bellow": 9,
579
+ "Belly laugh": 20,
580
+ "Bicycle": 341,
581
+ "Bicycle bell": 203,
582
+ "Bird": 111,
583
+ "Bird flight, flapping wings": 121,
584
+ "Bird vocalization, bird call, bird song": 112,
585
+ "Biting": 55,
586
+ "Bleat": 96,
587
+ "Blender": 369,
588
+ "Bluegrass": 231,
589
+ "Blues": 251,
590
+ "Boat, Water vehicle": 301,
591
+ "Boiling": 456,
592
+ "Boing": 498,
593
+ "Boom": 436,
594
+ "Bouncing": 471,
595
+ "Bow-wow": 78,
596
+ "Bowed string instrument": 189,
597
+ "Brass instrument": 185,
598
+ "Breaking": 470,
599
+ "Breathing": 41,
600
+ "Burping, eructation": 58,
601
+ "Burst, pop": 434,
602
+ "Bus": 321,
603
+ "Busy signal": 394,
604
+ "Buzz": 130,
605
+ "Buzzer": 398,
606
+ "Cacophony": 519,
607
+ "Camera": 416,
608
+ "Canidae, dogs, wolves": 122,
609
+ "Cap gun": 431,
610
+ "Car": 307,
611
+ "Car alarm": 310,
612
+ "Car passing by": 314,
613
+ "Carnatic music": 261,
614
+ "Cash register": 414,
615
+ "Cat": 81,
616
+ "Caterwaul": 85,
617
+ "Cattle, bovinae": 90,
618
+ "Caw": 118,
619
+ "Cello": 193,
620
+ "Chainsaw": 347,
621
+ "Change ringing (campanology)": 207,
622
+ "Chant": 30,
623
+ "Chatter": 68,
624
+ "Cheering": 66,
625
+ "Chewing, mastication": 54,
626
+ "Chicken, rooster": 99,
627
+ "Child singing": 34,
628
+ "Child speech, kid speaking": 3,
629
+ "Children playing": 71,
630
+ "Children shouting": 13,
631
+ "Chime": 205,
632
+ "Chink, clink": 442,
633
+ "Chirp tone": 503,
634
+ "Chirp, tweet": 113,
635
+ "Choir": 28,
636
+ "Chop": 438,
637
+ "Chopping (food)": 366,
638
+ "Chorus effect": 464,
639
+ "Christian music": 258,
640
+ "Christmas music": 273,
641
+ "Chuckle, chortle": 21,
642
+ "Church bell": 201,
643
+ "Civil defense siren": 397,
644
+ "Clang": 484,
645
+ "Clapping": 63,
646
+ "Clarinet": 198,
647
+ "Classical music": 237,
648
+ "Clatter": 489,
649
+ "Clickety-clack": 492,
650
+ "Clicking": 491,
651
+ "Clip-clop": 88,
652
+ "Clock": 406,
653
+ "Cluck": 100,
654
+ "Coin (dropping)": 380,
655
+ "Computer keyboard": 386,
656
+ "Conversation": 4,
657
+ "Coo": 116,
658
+ "Cough": 47,
659
+ "Country": 229,
660
+ "Cowbell": 92,
661
+ "Crack": 440,
662
+ "Crackle": 299,
663
+ "Creak": 486,
664
+ "Cricket": 127,
665
+ "Croak": 133,
666
+ "Crow": 117,
667
+ "Crowd": 69,
668
+ "Crowing, cock-a-doodle-doo": 101,
669
+ "Crumpling, crinkling": 479,
670
+ "Crunch": 499,
671
+ "Crushing": 478,
672
+ "Crying, sobbing": 22,
673
+ "Cupboard open or close": 362,
674
+ "Cutlery, silverware": 365,
675
+ "Cymbal": 171,
676
+ "Dance music": 274,
677
+ "Dental drill, dentist's drill": 345,
678
+ "Dial tone": 393,
679
+ "Didgeridoo": 211,
680
+ "Ding": 483,
681
+ "Ding-dong": 356,
682
+ "Disco": 236,
683
+ "Dishes, pots, and pans": 364,
684
+ "Distortion": 517,
685
+ "Dog": 74,
686
+ "Domestic animals, pets": 73,
687
+ "Door": 354,
688
+ "Doorbell": 355,
689
+ "Double bass": 194,
690
+ "Drawer open or close": 363,
691
+ "Drill": 425,
692
+ "Drip": 448,
693
+ "Drum": 164,
694
+ "Drum and bass": 243,
695
+ "Drum kit": 162,
696
+ "Drum machine": 163,
697
+ "Drum roll": 167,
698
+ "Dubstep": 242,
699
+ "Duck": 104,
700
+ "Echo": 512,
701
+ "Effects unit": 463,
702
+ "Electric guitar": 141,
703
+ "Electric piano": 154,
704
+ "Electric shaver, electric razor": 382,
705
+ "Electric toothbrush": 376,
706
+ "Electronic dance music": 245,
707
+ "Electronic music": 239,
708
+ "Electronic organ": 156,
709
+ "Electronic tuner": 462,
710
+ "Electronica": 244,
711
+ "Emergency vehicle": 322,
712
+ "Engine": 343,
713
+ "Engine knocking": 350,
714
+ "Engine starting": 351,
715
+ "Environmental noise": 514,
716
+ "Eruption": 435,
717
+ "Exciting music": 280,
718
+ "Explosion": 426,
719
+ "Fart": 60,
720
+ "Female singing": 33,
721
+ "Female speech, woman speaking": 2,
722
+ "Field recording": 526,
723
+ "Filing (rasp)": 422,
724
+ "Fill (with liquid)": 452,
725
+ "Finger snapping": 62,
726
+ "Fire": 298,
727
+ "Fire alarm": 400,
728
+ "Fire engine, fire truck (siren)": 325,
729
+ "Firecracker": 433,
730
+ "Fireworks": 432,
731
+ "Fixed-wing aircraft, airplane": 340,
732
+ "Flamenco": 250,
733
+ "Flap": 473,
734
+ "Flute": 196,
735
+ "Fly, housefly": 129,
736
+ "Foghorn": 401,
737
+ "Folk music": 233,
738
+ "Fowl": 98,
739
+ "French horn": 186,
740
+ "Frog": 132,
741
+ "Frying (food)": 367,
742
+ "Funk": 232,
743
+ "Funny music": 277,
744
+ "Fusillade": 429,
745
+ "Gargling": 56,
746
+ "Gasp": 44,
747
+ "Gears": 409,
748
+ "Giggle": 18,
749
+ "Glass": 441,
750
+ "Glockenspiel": 181,
751
+ "Goat": 95,
752
+ "Gobble": 103,
753
+ "Gong": 177,
754
+ "Goose": 106,
755
+ "Gospel music": 259,
756
+ "Groan": 38,
757
+ "Growling": 79,
758
+ "Grunge": 222,
759
+ "Grunt": 39,
760
+ "Guitar": 140,
761
+ "Gunshot, gunfire": 427,
762
+ "Gurgling": 297,
763
+ "Gush": 451,
764
+ "Hair dryer": 373,
765
+ "Hammer": 419,
766
+ "Hammond organ": 157,
767
+ "Hands": 61,
768
+ "Happy music": 276,
769
+ "Harmonic": 502,
770
+ "Harmonica": 208,
771
+ "Harp": 199,
772
+ "Harpsichord": 160,
773
+ "Heart murmur": 65,
774
+ "Heart sounds, heartbeat": 64,
775
+ "Heavy engine (low frequency)": 349,
776
+ "Heavy metal": 220,
777
+ "Helicopter": 339,
778
+ "Hi-hat": 172,
779
+ "Hiccup": 59,
780
+ "Hip hop music": 217,
781
+ "Hiss": 84,
782
+ "Honk": 107,
783
+ "Hoot": 120,
784
+ "Horse": 87,
785
+ "House music": 240,
786
+ "Howl": 77,
787
+ "Hubbub, speech noise, speech babble": 70,
788
+ "Hum": 496,
789
+ "Humming": 37,
790
+ "Ice cream truck, ice cream van": 320,
791
+ "Idling": 352,
792
+ "Independent music": 265,
793
+ "Insect": 126,
794
+ "Inside, large room or hall": 507,
795
+ "Inside, public space": 508,
796
+ "Inside, small room": 506,
797
+ "Jackhammer": 420,
798
+ "Jazz": 235,
799
+ "Jet engine": 337,
800
+ "Jingle (music)": 269,
801
+ "Jingle bell": 202,
802
+ "Jingle, tinkle": 495,
803
+ "Keyboard (musical)": 152,
804
+ "Keys jangling": 379,
805
+ "Knock": 359,
806
+ "Laughter": 16,
807
+ "Lawn mower": 346,
808
+ "Light engine (high frequency)": 344,
809
+ "Liquid": 444,
810
+ "Livestock, farm animals, working animals": 86,
811
+ "Lullaby": 271,
812
+ "Machine gun": 428,
813
+ "Mains hum": 516,
814
+ "Male singing": 32,
815
+ "Male speech, man speaking": 1,
816
+ "Mallet percussion": 179,
817
+ "Mandolin": 149,
818
+ "Mantra": 31,
819
+ "Maraca": 176,
820
+ "Marimba, xylophone": 180,
821
+ "Mechanical fan": 412,
822
+ "Mechanisms": 404,
823
+ "Medium engine (mid frequency)": 348,
824
+ "Meow": 83,
825
+ "Microwave oven": 368,
826
+ "Middle Eastern music": 234,
827
+ "Moo": 91,
828
+ "Mosquito": 128,
829
+ "Motor vehicle (road)": 306,
830
+ "Motorboat, speedboat": 304,
831
+ "Motorcycle": 326,
832
+ "Mouse": 124,
833
+ "Music": 137,
834
+ "Music for children": 252,
835
+ "Music of Africa": 256,
836
+ "Music of Asia": 260,
837
+ "Music of Bollywood": 262,
838
+ "Music of Latin America": 248,
839
+ "Musical instrument": 138,
840
+ "Narration, monologue": 5,
841
+ "Neigh, whinny": 89,
842
+ "New-age music": 253,
843
+ "Noise": 513,
844
+ "Ocean": 294,
845
+ "Oink": 94,
846
+ "Opera": 238,
847
+ "Orchestra": 184,
848
+ "Organ": 155,
849
+ "Outside, rural or natural": 510,
850
+ "Outside, urban or manmade": 509,
851
+ "Owl": 119,
852
+ "Pant": 45,
853
+ "Patter": 125,
854
+ "Percussion": 161,
855
+ "Piano": 153,
856
+ "Pig": 93,
857
+ "Pigeon, dove": 115,
858
+ "Ping": 482,
859
+ "Pink noise": 521,
860
+ "Pizzicato": 192,
861
+ "Plop": 494,
862
+ "Plucked string instrument": 139,
863
+ "Police car (siren)": 323,
864
+ "Pop music": 216,
865
+ "Pour": 449,
866
+ "Power tool": 424,
867
+ "Power windows, electric windows": 311,
868
+ "Printer": 415,
869
+ "Progressive rock": 223,
870
+ "Propeller, airscrew": 338,
871
+ "Psychedelic rock": 225,
872
+ "Pulleys": 410,
873
+ "Pulse": 505,
874
+ "Pump (liquid)": 454,
875
+ "Punk rock": 221,
876
+ "Purr": 82,
877
+ "Quack": 105,
878
+ "Race car, auto racing": 315,
879
+ "Radio": 525,
880
+ "Rail transport": 328,
881
+ "Railroad car, train wagon": 332,
882
+ "Rain": 289,
883
+ "Rain on surface": 291,
884
+ "Raindrop": 290,
885
+ "Rapping": 36,
886
+ "Ratchet, pawl": 405,
887
+ "Rattle": 135,
888
+ "Rattle (instrument)": 175,
889
+ "Reggae": 228,
890
+ "Reverberation": 511,
891
+ "Reversing beeps": 319,
892
+ "Rhythm and blues": 226,
893
+ "Rimshot": 166,
894
+ "Ringtone": 391,
895
+ "Roar": 110,
896
+ "Roaring cats (lions, tigers)": 109,
897
+ "Rock and roll": 224,
898
+ "Rock music": 219,
899
+ "Rodents, rats, mice": 123,
900
+ "Roll": 477,
901
+ "Rowboat, canoe, kayak": 303,
902
+ "Rub": 476,
903
+ "Rumble": 493,
904
+ "Run": 51,
905
+ "Rustle": 487,
906
+ "Rustling leaves": 284,
907
+ "Sad music": 278,
908
+ "Sailboat, sailing ship": 302,
909
+ "Salsa music": 249,
910
+ "Sampler": 159,
911
+ "Sanding": 423,
912
+ "Sawing": 421,
913
+ "Saxophone": 197,
914
+ "Scary music": 282,
915
+ "Scissors": 381,
916
+ "Scrape": 475,
917
+ "Scratch": 474,
918
+ "Scratching (performance technique)": 215,
919
+ "Screaming": 14,
920
+ "Sewing machine": 411,
921
+ "Shatter": 443,
922
+ "Sheep": 97,
923
+ "Ship": 305,
924
+ "Shofar": 212,
925
+ "Shout": 8,
926
+ "Shuffle": 52,
927
+ "Shuffling cards": 383,
928
+ "Sidetone": 518,
929
+ "Sigh": 26,
930
+ "Silence": 500,
931
+ "Sine wave": 501,
932
+ "Singing": 27,
933
+ "Singing bowl": 214,
934
+ "Single-lens reflex camera": 417,
935
+ "Sink (filling or washing)": 371,
936
+ "Siren": 396,
937
+ "Sitar": 148,
938
+ "Sizzle": 490,
939
+ "Ska": 263,
940
+ "Skateboard": 342,
941
+ "Skidding": 312,
942
+ "Slam": 358,
943
+ "Slap, smack": 467,
944
+ "Sliding door": 357,
945
+ "Slosh": 446,
946
+ "Smash, crash": 469,
947
+ "Smoke detector, smoke alarm": 399,
948
+ "Snake": 134,
949
+ "Snare drum": 165,
950
+ "Sneeze": 49,
951
+ "Snicker": 19,
952
+ "Sniff": 50,
953
+ "Snoring": 43,
954
+ "Snort": 46,
955
+ "Sonar": 457,
956
+ "Song": 266,
957
+ "Soul music": 227,
958
+ "Sound effect": 504,
959
+ "Soundtrack music": 270,
960
+ "Speech": 0,
961
+ "Speech synthesizer": 7,
962
+ "Splash, splatter": 445,
963
+ "Splinter": 439,
964
+ "Spray": 453,
965
+ "Squawk": 114,
966
+ "Squeak": 361,
967
+ "Squeal": 485,
968
+ "Squish": 447,
969
+ "Static": 515,
970
+ "Steam": 296,
971
+ "Steam whistle": 403,
972
+ "Steel guitar, slide guitar": 144,
973
+ "Steelpan": 183,
974
+ "Stir": 455,
975
+ "Stomach rumble": 57,
976
+ "Stream": 292,
977
+ "String section": 190,
978
+ "Strum": 146,
979
+ "Subway, metro, underground": 334,
980
+ "Swing music": 230,
981
+ "Synthesizer": 158,
982
+ "Synthetic singing": 35,
983
+ "Tabla": 170,
984
+ "Tambourine": 174,
985
+ "Tap": 360,
986
+ "Tapping (guitar technique)": 145,
987
+ "Tearing": 480,
988
+ "Techno": 241,
989
+ "Telephone": 389,
990
+ "Telephone bell ringing": 390,
991
+ "Telephone dialing, DTMF": 392,
992
+ "Television": 524,
993
+ "Tender music": 279,
994
+ "Theme music": 268,
995
+ "Theremin": 213,
996
+ "Throat clearing": 48,
997
+ "Throbbing": 522,
998
+ "Thump, thud": 460,
999
+ "Thunder": 287,
1000
+ "Thunderstorm": 286,
1001
+ "Thunk": 461,
1002
+ "Tick": 407,
1003
+ "Tick-tock": 408,
1004
+ "Timpani": 169,
1005
+ "Tire squeal": 313,
1006
+ "Toilet flush": 374,
1007
+ "Tools": 418,
1008
+ "Toot": 309,
1009
+ "Toothbrush": 375,
1010
+ "Traditional music": 264,
1011
+ "Traffic noise, roadway noise": 327,
1012
+ "Train": 329,
1013
+ "Train horn": 331,
1014
+ "Train wheels squealing": 333,
1015
+ "Train whistle": 330,
1016
+ "Trance music": 247,
1017
+ "Trickle, dribble": 450,
1018
+ "Trombone": 188,
1019
+ "Truck": 316,
1020
+ "Trumpet": 187,
1021
+ "Tubular bells": 178,
1022
+ "Tuning fork": 204,
1023
+ "Turkey": 102,
1024
+ "Typewriter": 385,
1025
+ "Typing": 384,
1026
+ "Ukulele": 151,
1027
+ "Vacuum cleaner": 377,
1028
+ "Vehicle": 300,
1029
+ "Vehicle horn, car horn, honking": 308,
1030
+ "Vibraphone": 182,
1031
+ "Vibration": 523,
1032
+ "Video game music": 272,
1033
+ "Violin, fiddle": 191,
1034
+ "Vocal music": 254,
1035
+ "Wail, moan": 25,
1036
+ "Walk, footsteps": 53,
1037
+ "Water": 288,
1038
+ "Water tap, faucet": 370,
1039
+ "Waterfall": 293,
1040
+ "Waves, surf": 295,
1041
+ "Wedding music": 275,
1042
+ "Whack, thwack": 468,
1043
+ "Whale vocalization": 136,
1044
+ "Wheeze": 42,
1045
+ "Whimper": 24,
1046
+ "Whimper (dog)": 80,
1047
+ "Whip": 472,
1048
+ "Whir": 488,
1049
+ "Whispering": 15,
1050
+ "Whistle": 402,
1051
+ "Whistling": 40,
1052
+ "White noise": 520,
1053
+ "Whoop": 10,
1054
+ "Whoosh, swoosh, swish": 459,
1055
+ "Wild animals": 108,
1056
+ "Wind": 283,
1057
+ "Wind chime": 206,
1058
+ "Wind instrument, woodwind instrument": 195,
1059
+ "Wind noise (microphone)": 285,
1060
+ "Wood": 437,
1061
+ "Wood block": 173,
1062
+ "Writing": 387,
1063
+ "Yell": 11,
1064
+ "Yip": 76,
1065
+ "Yodeling": 29,
1066
+ "Zing": 497,
1067
+ "Zipper (clothing)": 378,
1068
+ "Zither": 150
1069
+ },
1070
+ "layer_norm_eps": 1e-12,
1071
+ "max_length": 1024,
1072
+ "model_type": "audio-spectrogram-transformer",
1073
+ "num_attention_heads": 12,
1074
+ "num_hidden_layers": 12,
1075
+ "num_mel_bins": 128,
1076
+ "patch_size": 16,
1077
+ "problem_type": "single_label_classification",
1078
+ "qkv_bias": true,
1079
+ "time_stride": 10,
1080
+ "torch_dtype": "float32",
1081
+ "transformers_version": "4.51.1"
1082
+ }
output/checkpoint-800/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:864e1cf06d6b17acdb458122ab0d8a6345dd203266bf6ee94fe91dec36b3d6ba
3
+ size 346404948
output/checkpoint-800/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c031f7af877b2e517b21c625ad6bef7bfa16d61b53359c634348bea663268cce
3
+ size 692922234
output/checkpoint-800/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d44a53784733ae7dcb55555ed75e1fea306bd7427001380dc0f3854a19687855
3
+ size 14244
output/checkpoint-800/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72827407676228bfcecbcd7d9941c8dd2c10e15de40f1068670c9723cfb158f4
3
+ size 988
output/checkpoint-800/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a70640ef0bda14850c1234bc04d2da04e34340ea1dcc8cfed6e8df07c937b5b
3
+ size 1064
output/checkpoint-800/trainer_state.json ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 800,
3
+ "best_metric": 0.9125,
4
+ "best_model_checkpoint": "./output\\checkpoint-800",
5
+ "epoch": 8.0,
6
+ "eval_steps": 500,
7
+ "global_step": 800,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.5,
14
+ "grad_norm": 21.84564971923828,
15
+ "learning_rate": 9.52e-06,
16
+ "loss": 4.9576,
17
+ "step": 50
18
+ },
19
+ {
20
+ "epoch": 1.0,
21
+ "grad_norm": 19.016281127929688,
22
+ "learning_rate": 9.020000000000002e-06,
23
+ "loss": 2.5629,
24
+ "step": 100
25
+ },
26
+ {
27
+ "epoch": 1.0,
28
+ "eval_accuracy": 0.67,
29
+ "eval_loss": 1.8187137842178345,
30
+ "eval_runtime": 16.628,
31
+ "eval_samples_per_second": 24.056,
32
+ "eval_steps_per_second": 1.503,
33
+ "step": 100
34
+ },
35
+ {
36
+ "epoch": 1.5,
37
+ "grad_norm": 25.35007667541504,
38
+ "learning_rate": 8.52e-06,
39
+ "loss": 1.059,
40
+ "step": 150
41
+ },
42
+ {
43
+ "epoch": 2.0,
44
+ "grad_norm": 24.2031307220459,
45
+ "learning_rate": 8.020000000000001e-06,
46
+ "loss": 0.5219,
47
+ "step": 200
48
+ },
49
+ {
50
+ "epoch": 2.0,
51
+ "eval_accuracy": 0.87,
52
+ "eval_loss": 0.631913423538208,
53
+ "eval_runtime": 16.5993,
54
+ "eval_samples_per_second": 24.097,
55
+ "eval_steps_per_second": 1.506,
56
+ "step": 200
57
+ },
58
+ {
59
+ "epoch": 2.5,
60
+ "grad_norm": 15.069940567016602,
61
+ "learning_rate": 7.520000000000001e-06,
62
+ "loss": 0.188,
63
+ "step": 250
64
+ },
65
+ {
66
+ "epoch": 3.0,
67
+ "grad_norm": 11.744084358215332,
68
+ "learning_rate": 7.0200000000000006e-06,
69
+ "loss": 0.1404,
70
+ "step": 300
71
+ },
72
+ {
73
+ "epoch": 3.0,
74
+ "eval_accuracy": 0.89,
75
+ "eval_loss": 0.512397050857544,
76
+ "eval_runtime": 16.7187,
77
+ "eval_samples_per_second": 23.925,
78
+ "eval_steps_per_second": 1.495,
79
+ "step": 300
80
+ },
81
+ {
82
+ "epoch": 3.5,
83
+ "grad_norm": 3.0763916969299316,
84
+ "learning_rate": 6.520000000000001e-06,
85
+ "loss": 0.0512,
86
+ "step": 350
87
+ },
88
+ {
89
+ "epoch": 4.0,
90
+ "grad_norm": 3.471693754196167,
91
+ "learning_rate": 6.02e-06,
92
+ "loss": 0.0324,
93
+ "step": 400
94
+ },
95
+ {
96
+ "epoch": 4.0,
97
+ "eval_accuracy": 0.8975,
98
+ "eval_loss": 0.42938971519470215,
99
+ "eval_runtime": 16.9732,
100
+ "eval_samples_per_second": 23.567,
101
+ "eval_steps_per_second": 1.473,
102
+ "step": 400
103
+ },
104
+ {
105
+ "epoch": 4.5,
106
+ "grad_norm": 0.6510960459709167,
107
+ "learning_rate": 5.5200000000000005e-06,
108
+ "loss": 0.0148,
109
+ "step": 450
110
+ },
111
+ {
112
+ "epoch": 5.0,
113
+ "grad_norm": 0.2619748115539551,
114
+ "learning_rate": 5.02e-06,
115
+ "loss": 0.0075,
116
+ "step": 500
117
+ },
118
+ {
119
+ "epoch": 5.0,
120
+ "eval_accuracy": 0.905,
121
+ "eval_loss": 0.4057503640651703,
122
+ "eval_runtime": 17.0908,
123
+ "eval_samples_per_second": 23.404,
124
+ "eval_steps_per_second": 1.463,
125
+ "step": 500
126
+ },
127
+ {
128
+ "epoch": 5.5,
129
+ "grad_norm": 0.11626938730478287,
130
+ "learning_rate": 4.520000000000001e-06,
131
+ "loss": 0.0045,
132
+ "step": 550
133
+ },
134
+ {
135
+ "epoch": 6.0,
136
+ "grad_norm": 0.18584977090358734,
137
+ "learning_rate": 4.0200000000000005e-06,
138
+ "loss": 0.0036,
139
+ "step": 600
140
+ },
141
+ {
142
+ "epoch": 6.0,
143
+ "eval_accuracy": 0.9075,
144
+ "eval_loss": 0.40661507844924927,
145
+ "eval_runtime": 17.3315,
146
+ "eval_samples_per_second": 23.079,
147
+ "eval_steps_per_second": 1.442,
148
+ "step": 600
149
+ },
150
+ {
151
+ "epoch": 6.5,
152
+ "grad_norm": 0.11915897578001022,
153
+ "learning_rate": 3.52e-06,
154
+ "loss": 0.0027,
155
+ "step": 650
156
+ },
157
+ {
158
+ "epoch": 7.0,
159
+ "grad_norm": 0.1160835325717926,
160
+ "learning_rate": 3.0200000000000003e-06,
161
+ "loss": 0.0023,
162
+ "step": 700
163
+ },
164
+ {
165
+ "epoch": 7.0,
166
+ "eval_accuracy": 0.91,
167
+ "eval_loss": 0.40690818428993225,
168
+ "eval_runtime": 17.0897,
169
+ "eval_samples_per_second": 23.406,
170
+ "eval_steps_per_second": 1.463,
171
+ "step": 700
172
+ },
173
+ {
174
+ "epoch": 7.5,
175
+ "grad_norm": 0.057445961982011795,
176
+ "learning_rate": 2.52e-06,
177
+ "loss": 0.002,
178
+ "step": 750
179
+ },
180
+ {
181
+ "epoch": 8.0,
182
+ "grad_norm": 0.07348606735467911,
183
+ "learning_rate": 2.02e-06,
184
+ "loss": 0.002,
185
+ "step": 800
186
+ },
187
+ {
188
+ "epoch": 8.0,
189
+ "eval_accuracy": 0.9125,
190
+ "eval_loss": 0.404008150100708,
191
+ "eval_runtime": 17.1756,
192
+ "eval_samples_per_second": 23.289,
193
+ "eval_steps_per_second": 1.456,
194
+ "step": 800
195
+ }
196
+ ],
197
+ "logging_steps": 50,
198
+ "max_steps": 1000,
199
+ "num_input_tokens_seen": 0,
200
+ "num_train_epochs": 10,
201
+ "save_steps": 500,
202
+ "stateful_callbacks": {
203
+ "TrainerControl": {
204
+ "args": {
205
+ "should_epoch_stop": false,
206
+ "should_evaluate": false,
207
+ "should_log": false,
208
+ "should_save": true,
209
+ "should_training_stop": false
210
+ },
211
+ "attributes": {}
212
+ }
213
+ },
214
+ "total_flos": 8.716843795611648e+17,
215
+ "train_batch_size": 16,
216
+ "trial_name": null,
217
+ "trial_params": null
218
+ }
output/checkpoint-800/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f68089c73da00e5426fbe1b7586cd81a39a15f1747aca4941237d2ea1255dd76
3
+ size 5240
test.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import TrainingArguments
2
+
3
+ from functions import prepare_datasets, make_trainer, get_model
4
+
5
+
6
+ def main():
7
+ output_dir = "./output/augmented_esc50"
8
+
9
+ test_ds, _ = prepare_datasets(apply_augmentation=False)
10
+
11
+ # Use same model & args as training
12
+ model = get_model("MIT/ast-finetuned-audioset-10-10-0.4593")
13
+
14
+ training_args = TrainingArguments(output_dir=output_dir)
15
+ trainer = make_trainer(model, None, None, training_args)
16
+
17
+ trainer.model = model.from_pretrained(output_dir)
18
+
19
+ pred_output = trainer.predict(test_ds)
20
+ trainer.save_metrics("test", pred_output.metrics)
21
+
22
+ if __name__ == "__main__":
23
+ main()
train.py ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import argparse
3
+ from transformers import TrainingArguments
4
+ from functions import (
5
+ prepare_datasets,
6
+ get_model,
7
+ make_trainer,
8
+ save_results
9
+ )
10
+ from dataset import get_latest_checkpoint, split_by_fold
11
+
12
+
13
+ def parse_args():
14
+ parser = argparse.ArgumentParser()
15
+ parser.add_argument('--model_name', default="MIT/ast-finetuned-audioset-10-10-0.4593")
16
+ parser.add_argument('--output_dir', default="./output")
17
+ parser.add_argument('--num_experiments', type=int, default=10)
18
+ parser.add_argument('--csv_path', default="./output/logs_results_augmented_esc50.csv")
19
+ return parser.parse_args()
20
+
21
+
22
+ def main():
23
+ args = parse_args()
24
+ os.makedirs(args.output_dir, exist_ok=True)
25
+
26
+ # Prepare data (augmented)
27
+ dataset, _ = prepare_datasets(apply_augmentation=True)
28
+
29
+ # Initialize model and Trainer args
30
+ model = get_model(args.model_name)
31
+ training_args = TrainingArguments(
32
+ output_dir=args.output_dir,
33
+ logging_dir=os.path.join(args.output_dir, "logs"),
34
+ logging_steps=50,
35
+ do_train=True,
36
+ do_eval=True,
37
+ eval_strategy='epoch',
38
+ per_device_train_batch_size=16,
39
+ per_device_eval_batch_size=16,
40
+ num_train_epochs=10,
41
+ learning_rate=1e-5,
42
+ weight_decay=0.01,
43
+ save_total_limit=1,
44
+ save_strategy='epoch',
45
+ fp16=True,
46
+ load_best_model_at_end=True,
47
+ metric_for_best_model="accuracy",
48
+ )
49
+
50
+ results = []
51
+ trainer = None
52
+ # Multiple experiments
53
+ for i in range(args.num_experiments):
54
+ print(f"=== Experiment {i+1} ===")
55
+ train_ds, eval_ds = split_by_fold(dataset)
56
+ trainer = make_trainer(model, train_ds, eval_ds, training_args)
57
+
58
+ ckpt = get_latest_checkpoint(args.output_dir)
59
+ if ckpt:
60
+ print(f"Resuming from {ckpt}")
61
+ train_out = trainer.train(resume_from_checkpoint=ckpt)
62
+ else:
63
+ train_out = trainer.train()
64
+
65
+ eval_out = trainer.evaluate()
66
+ stats = {f"train_{k}": v for k,v in train_out.metrics.items()}
67
+ stats.update({f"eval_{k}": v for k,v in eval_out.items()})
68
+ stats['experiment_id'] = i+1
69
+ results.append(stats)
70
+
71
+ # Save final model (best checkpoint)
72
+ trainer.save_model(os.path.join(args.output_dir, "augmented_esc50"))
73
+ save_results(results, args.csv_path)
74
+
75
+
76
+ if __name__ == "__main__":
77
+ main()