File size: 39,776 Bytes
04040e2
 
 
 
7fe10b3
04040e2
 
 
 
7fe10b3
04040e2
 
 
 
7fe10b3
04040e2
 
 
 
 
 
 
 
 
 
 
 
 
 
7fe10b3
04040e2
 
 
 
7fe10b3
04040e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7fe10b3
04040e2
 
 
 
7fe10b3
04040e2
 
 
 
 
 
 
 
7fe10b3
04040e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7fe10b3
04040e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7fe10b3
04040e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
 
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
 
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
 
7fe10b3
04040e2
7fe10b3
04040e2
 
7fe10b3
04040e2
 
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
7fe10b3
04040e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7fe10b3
04040e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7fe10b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
04040e2
85cc060
04040e2
 
 
 
7fe10b3
04040e2
 
 
 
7fe10b3
04040e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "cd7ca034-54d2-434d-9ba8-9e1877e7a7c9",
   "metadata": {},
   "outputs": [],
   "source": [
    "!unzip -q '/workspace/EfficientAT-main.zip' -d './train'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "2f674532-597d-4471-aef8-53c6f2b3ce7f",
   "metadata": {},
   "outputs": [],
   "source": [
    "!unzip -q '/workspace/HDF5_file.zip' -d '/workspace/train/EfficientAT-main/datasets'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c7595bbe-a43b-4e08-a7de-1e27206a782b",
   "metadata": {},
   "outputs": [],
   "source": [
    "#Please change the dataset_config (filename hdf5) in \"audioset.py\" or \"emotion_dataset.py\" in \"EfficientAT-main/datasets\" "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "7dd14b84-3451-423f-bc07-16fddddc2a07",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Collecting av (from -r /workspace/train/EfficientAT-main/requirements.txt (line 1))\n",
      "  Downloading av-15.0.0-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (4.6 kB)\n",
      "Collecting h5py (from -r /workspace/train/EfficientAT-main/requirements.txt (line 2))\n",
      "  Downloading h5py-3.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.7 kB)\n",
      "Collecting librosa (from -r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading librosa-0.11.0-py3-none-any.whl.metadata (8.7 kB)\n",
      "Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from -r /workspace/train/EfficientAT-main/requirements.txt (line 4)) (1.24.1)\n",
      "Collecting scikit_learn (from -r /workspace/train/EfficientAT-main/requirements.txt (line 5))\n",
      "  Downloading scikit_learn-1.7.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (11 kB)\n",
      "Requirement already satisfied: torch in /usr/local/lib/python3.10/dist-packages (from -r /workspace/train/EfficientAT-main/requirements.txt (line 6)) (2.1.0+cu118)\n",
      "Requirement already satisfied: torchaudio in /usr/local/lib/python3.10/dist-packages (from -r /workspace/train/EfficientAT-main/requirements.txt (line 7)) (2.1.0+cu118)\n",
      "Requirement already satisfied: torchvision in /usr/local/lib/python3.10/dist-packages (from -r /workspace/train/EfficientAT-main/requirements.txt (line 8)) (0.16.0+cu118)\n",
      "Collecting tqdm (from -r /workspace/train/EfficientAT-main/requirements.txt (line 9))\n",
      "  Downloading tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)\n",
      "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m57.7/57.7 kB\u001b[0m \u001b[31m2.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hCollecting wandb (from -r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading wandb-0.21.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)\n",
      "Collecting pandas (from -r /workspace/train/EfficientAT-main/requirements.txt (line 11))\n",
      "  Downloading pandas-2.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (91 kB)\n",
      "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m91.2/91.2 kB\u001b[0m \u001b[31m21.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hCollecting seaborn (from -r /workspace/train/EfficientAT-main/requirements.txt (line 12))\n",
      "  Downloading seaborn-0.13.2-py3-none-any.whl.metadata (5.4 kB)\n",
      "Collecting audioread>=2.1.9 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading audioread-3.0.1-py3-none-any.whl.metadata (8.4 kB)\n",
      "Collecting numba>=0.51.0 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading numba-0.61.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (2.8 kB)\n",
      "Collecting scipy>=1.6.0 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading scipy-1.15.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)\n",
      "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m62.0/62.0 kB\u001b[0m \u001b[31m7.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hCollecting joblib>=1.0 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading joblib-1.5.1-py3-none-any.whl.metadata (5.6 kB)\n",
      "Requirement already satisfied: decorator>=4.3.0 in /usr/local/lib/python3.10/dist-packages (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3)) (5.1.1)\n",
      "Collecting soundfile>=0.12.1 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading soundfile-0.13.1-py2.py3-none-manylinux_2_28_x86_64.whl.metadata (16 kB)\n",
      "Collecting pooch>=1.1 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading pooch-1.8.2-py3-none-any.whl.metadata (10 kB)\n",
      "Collecting soxr>=0.3.2 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading soxr-0.5.0.post1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)\n",
      "Requirement already satisfied: typing_extensions>=4.1.1 in /usr/local/lib/python3.10/dist-packages (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3)) (4.4.0)\n",
      "Collecting lazy_loader>=0.1 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading lazy_loader-0.4-py3-none-any.whl.metadata (7.6 kB)\n",
      "Collecting msgpack>=1.0 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading msgpack-1.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.4 kB)\n",
      "Collecting threadpoolctl>=3.1.0 (from scikit_learn->-r /workspace/train/EfficientAT-main/requirements.txt (line 5))\n",
      "  Downloading threadpoolctl-3.6.0-py3-none-any.whl.metadata (13 kB)\n",
      "Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch->-r /workspace/train/EfficientAT-main/requirements.txt (line 6)) (3.9.0)\n",
      "Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch->-r /workspace/train/EfficientAT-main/requirements.txt (line 6)) (1.12)\n",
      "Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch->-r /workspace/train/EfficientAT-main/requirements.txt (line 6)) (3.0)\n",
      "Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch->-r /workspace/train/EfficientAT-main/requirements.txt (line 6)) (3.1.2)\n",
      "Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch->-r /workspace/train/EfficientAT-main/requirements.txt (line 6)) (2023.4.0)\n",
      "Requirement already satisfied: triton==2.1.0 in /usr/local/lib/python3.10/dist-packages (from torch->-r /workspace/train/EfficientAT-main/requirements.txt (line 6)) (2.1.0)\n",
      "Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from torchvision->-r /workspace/train/EfficientAT-main/requirements.txt (line 8)) (2.31.0)\n",
      "Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/local/lib/python3.10/dist-packages (from torchvision->-r /workspace/train/EfficientAT-main/requirements.txt (line 8)) (9.3.0)\n",
      "Collecting click!=8.0.0,>=7.1 (from wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading click-8.2.1-py3-none-any.whl.metadata (2.5 kB)\n",
      "Collecting gitpython!=3.1.29,>=1.0.0 (from wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading gitpython-3.1.45-py3-none-any.whl.metadata (13 kB)\n",
      "Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10)) (23.2)\n",
      "Requirement already satisfied: platformdirs in /usr/local/lib/python3.10/dist-packages (from wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10)) (3.11.0)\n",
      "Collecting protobuf!=4.21.0,!=5.28.0,<7,>=3.19.0 (from wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading protobuf-6.32.0-cp39-abi3-manylinux2014_x86_64.whl.metadata (593 bytes)\n",
      "Collecting pydantic<3 (from wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading pydantic-2.11.7-py3-none-any.whl.metadata (67 kB)\n",
      "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m68.0/68.0 kB\u001b[0m \u001b[31m15.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hRequirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10)) (6.0.1)\n",
      "Collecting sentry-sdk>=2.0.0 (from wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading sentry_sdk-2.35.0-py2.py3-none-any.whl.metadata (10 kB)\n",
      "Collecting typing_extensions>=4.1.1 (from librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading typing_extensions-4.14.1-py3-none-any.whl.metadata (3.0 kB)\n",
      "Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.10/dist-packages (from pandas->-r /workspace/train/EfficientAT-main/requirements.txt (line 11)) (2.8.2)\n",
      "Collecting pytz>=2020.1 (from pandas->-r /workspace/train/EfficientAT-main/requirements.txt (line 11))\n",
      "  Downloading pytz-2025.2-py2.py3-none-any.whl.metadata (22 kB)\n",
      "Collecting tzdata>=2022.7 (from pandas->-r /workspace/train/EfficientAT-main/requirements.txt (line 11))\n",
      "  Downloading tzdata-2025.2-py2.py3-none-any.whl.metadata (1.4 kB)\n",
      "Collecting matplotlib!=3.6.1,>=3.4 (from seaborn->-r /workspace/train/EfficientAT-main/requirements.txt (line 12))\n",
      "  Downloading matplotlib-3.10.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (11 kB)\n",
      "Collecting gitdb<5,>=4.0.1 (from gitpython!=3.1.29,>=1.0.0->wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading gitdb-4.0.12-py3-none-any.whl.metadata (1.2 kB)\n",
      "Collecting contourpy>=1.0.1 (from matplotlib!=3.6.1,>=3.4->seaborn->-r /workspace/train/EfficientAT-main/requirements.txt (line 12))\n",
      "  Downloading contourpy-1.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.5 kB)\n",
      "Collecting cycler>=0.10 (from matplotlib!=3.6.1,>=3.4->seaborn->-r /workspace/train/EfficientAT-main/requirements.txt (line 12))\n",
      "  Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)\n",
      "Collecting fonttools>=4.22.0 (from matplotlib!=3.6.1,>=3.4->seaborn->-r /workspace/train/EfficientAT-main/requirements.txt (line 12))\n",
      "  Downloading fonttools-4.59.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (108 kB)\n",
      "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m108.9/108.9 kB\u001b[0m \u001b[31m39.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hCollecting kiwisolver>=1.3.1 (from matplotlib!=3.6.1,>=3.4->seaborn->-r /workspace/train/EfficientAT-main/requirements.txt (line 12))\n",
      "  Downloading kiwisolver-1.4.9-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (6.3 kB)\n",
      "Requirement already satisfied: pyparsing>=2.3.1 in /usr/lib/python3/dist-packages (from matplotlib!=3.6.1,>=3.4->seaborn->-r /workspace/train/EfficientAT-main/requirements.txt (line 12)) (2.4.7)\n",
      "Collecting llvmlite<0.45,>=0.44.0dev0 (from numba>=0.51.0->librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3))\n",
      "  Downloading llvmlite-0.44.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.8 kB)\n",
      "Collecting annotated-types>=0.6.0 (from pydantic<3->wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)\n",
      "Collecting pydantic-core==2.33.2 (from pydantic<3->wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.8 kB)\n",
      "Collecting typing-inspection>=0.4.0 (from pydantic<3->wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading typing_inspection-0.4.1-py3-none-any.whl.metadata (2.6 kB)\n",
      "Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.2->pandas->-r /workspace/train/EfficientAT-main/requirements.txt (line 11)) (1.16.0)\n",
      "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision->-r /workspace/train/EfficientAT-main/requirements.txt (line 8)) (2.1.1)\n",
      "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision->-r /workspace/train/EfficientAT-main/requirements.txt (line 8)) (3.4)\n",
      "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision->-r /workspace/train/EfficientAT-main/requirements.txt (line 8)) (1.26.13)\n",
      "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision->-r /workspace/train/EfficientAT-main/requirements.txt (line 8)) (2022.12.7)\n",
      "Requirement already satisfied: cffi>=1.0 in /usr/local/lib/python3.10/dist-packages (from soundfile>=0.12.1->librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3)) (1.16.0)\n",
      "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch->-r /workspace/train/EfficientAT-main/requirements.txt (line 6)) (2.1.2)\n",
      "Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.10/dist-packages (from sympy->torch->-r /workspace/train/EfficientAT-main/requirements.txt (line 6)) (1.3.0)\n",
      "Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from cffi>=1.0->soundfile>=0.12.1->librosa->-r /workspace/train/EfficientAT-main/requirements.txt (line 3)) (2.21)\n",
      "Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython!=3.1.29,>=1.0.0->wandb->-r /workspace/train/EfficientAT-main/requirements.txt (line 10))\n",
      "  Downloading smmap-5.0.2-py3-none-any.whl.metadata (4.3 kB)\n",
      "Downloading av-15.0.0-cp310-cp310-manylinux_2_28_x86_64.whl (39.2 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m39.2/39.2 MB\u001b[0m \u001b[31m110.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",
      "\u001b[?25hDownloading h5py-3.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.6/4.6 MB\u001b[0m \u001b[31m50.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0mm\n",
      "\u001b[?25hDownloading librosa-0.11.0-py3-none-any.whl (260 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m260.7/260.7 kB\u001b[0m \u001b[31m86.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading scikit_learn-1.7.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (9.7 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m9.7/9.7 MB\u001b[0m \u001b[31m145.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
      "\u001b[?25hDownloading tqdm-4.67.1-py3-none-any.whl (78 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m78.5/78.5 kB\u001b[0m \u001b[31m34.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading wandb-0.21.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.4 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m22.4/22.4 MB\u001b[0m \u001b[31m86.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n",
      "\u001b[?25hDownloading pandas-2.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.3/12.3 MB\u001b[0m \u001b[31m127.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
      "\u001b[?25hDownloading seaborn-0.13.2-py3-none-any.whl (294 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m294.9/294.9 kB\u001b[0m \u001b[31m76.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading audioread-3.0.1-py3-none-any.whl (23 kB)\n",
      "Downloading click-8.2.1-py3-none-any.whl (102 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m102.2/102.2 kB\u001b[0m \u001b[31m37.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading gitpython-3.1.45-py3-none-any.whl (208 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m208.2/208.2 kB\u001b[0m \u001b[31m76.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading joblib-1.5.1-py3-none-any.whl (307 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m307.7/307.7 kB\u001b[0m \u001b[31m96.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading lazy_loader-0.4-py3-none-any.whl (12 kB)\n",
      "Downloading matplotlib-3.10.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.7 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m8.7/8.7 MB\u001b[0m \u001b[31m147.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
      "\u001b[?25hDownloading msgpack-1.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (408 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m408.6/408.6 kB\u001b[0m \u001b[31m111.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading numba-0.61.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.8 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.8/3.8 MB\u001b[0m \u001b[31m97.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m\n",
      "\u001b[?25hDownloading pooch-1.8.2-py3-none-any.whl (64 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m64.6/64.6 kB\u001b[0m \u001b[31m1.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0meta \u001b[36m0:00:01\u001b[0m\n",
      "\u001b[?25hDownloading protobuf-6.32.0-cp39-abi3-manylinux2014_x86_64.whl (322 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m322.0/322.0 kB\u001b[0m \u001b[31m67.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading pydantic-2.11.7-py3-none-any.whl (444 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m444.8/444.8 kB\u001b[0m \u001b[31m105.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.0/2.0 MB\u001b[0m \u001b[31m162.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading pytz-2025.2-py2.py3-none-any.whl (509 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m509.2/509.2 kB\u001b[0m \u001b[31m121.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading scipy-1.15.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (37.7 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m37.7/37.7 MB\u001b[0m \u001b[31m110.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",
      "\u001b[?25hDownloading sentry_sdk-2.35.0-py2.py3-none-any.whl (363 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m363.8/363.8 kB\u001b[0m \u001b[31m101.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading soundfile-0.13.1-py2.py3-none-manylinux_2_28_x86_64.whl (1.3 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.3/1.3 MB\u001b[0m \u001b[31m153.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading soxr-0.5.0.post1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m252.8/252.8 kB\u001b[0m \u001b[31m86.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading threadpoolctl-3.6.0-py3-none-any.whl (18 kB)\n",
      "Downloading typing_extensions-4.14.1-py3-none-any.whl (43 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m43.9/43.9 kB\u001b[0m \u001b[31m16.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading tzdata-2025.2-py2.py3-none-any.whl (347 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m347.8/347.8 kB\u001b[0m \u001b[31m99.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading annotated_types-0.7.0-py3-none-any.whl (13 kB)\n",
      "Downloading contourpy-1.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (325 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m325.0/325.0 kB\u001b[0m \u001b[31m97.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading cycler-0.12.1-py3-none-any.whl (8.3 kB)\n",
      "Downloading fonttools-4.59.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (4.8 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.8/4.8 MB\u001b[0m \u001b[31m129.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m\n",
      "\u001b[?25hDownloading gitdb-4.0.12-py3-none-any.whl (62 kB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m62.8/62.8 kB\u001b[0m \u001b[31m24.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading kiwisolver-1.4.9-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.6/1.6 MB\u001b[0m \u001b[31m150.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hDownloading llvmlite-0.44.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (42.4 MB)\n",
      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m42.4/42.4 MB\u001b[0m \u001b[31m83.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n",
      "\u001b[?25hDownloading typing_inspection-0.4.1-py3-none-any.whl (14 kB)\n",
      "Downloading smmap-5.0.2-py3-none-any.whl (24 kB)\n",
      "Installing collected packages: pytz, tzdata, typing_extensions, tqdm, threadpoolctl, soxr, smmap, sentry-sdk, scipy, protobuf, msgpack, llvmlite, lazy_loader, kiwisolver, joblib, h5py, fonttools, cycler, contourpy, click, av, audioread, annotated-types, typing-inspection, soundfile, scikit_learn, pydantic-core, pooch, pandas, numba, matplotlib, gitdb, seaborn, pydantic, librosa, gitpython, wandb\n",
      "  Attempting uninstall: typing_extensions\n",
      "    Found existing installation: typing_extensions 4.4.0\n",
      "    Uninstalling typing_extensions-4.4.0:\n",
      "      Successfully uninstalled typing_extensions-4.4.0\n",
      "Successfully installed annotated-types-0.7.0 audioread-3.0.1 av-15.0.0 click-8.2.1 contourpy-1.3.2 cycler-0.12.1 fonttools-4.59.1 gitdb-4.0.12 gitpython-3.1.45 h5py-3.14.0 joblib-1.5.1 kiwisolver-1.4.9 lazy_loader-0.4 librosa-0.11.0 llvmlite-0.44.0 matplotlib-3.10.5 msgpack-1.1.1 numba-0.61.2 pandas-2.3.1 pooch-1.8.2 protobuf-6.32.0 pydantic-2.11.7 pydantic-core-2.33.2 pytz-2025.2 scikit_learn-1.7.1 scipy-1.15.3 seaborn-0.13.2 sentry-sdk-2.35.0 smmap-5.0.2 soundfile-0.13.1 soxr-0.5.0.post1 threadpoolctl-3.6.0 tqdm-4.67.1 typing-inspection-0.4.1 typing_extensions-4.14.1 tzdata-2025.2 wandb-0.21.1\n",
      "\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n",
      "\u001b[0m\n",
      "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.3.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.2\u001b[0m\n",
      "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpython -m pip install --upgrade pip\u001b[0m\n"
     ]
    }
   ],
   "source": [
    "!pip install -r /workspace/train/EfficientAT-main/requirements.txt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "5a7a42e9-3f79-4f63-a6ea-98db2206ca96",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "/workspace/train/EfficientAT-main\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/usr/local/lib/python3.10/dist-packages/IPython/core/magics/osm.py:417: UserWarning: using dhist requires you to install the `pickleshare` library.\n",
      "  self.shell.db['dhist'] = compress_dhist(dhist)[-100:]\n"
     ]
    }
   ],
   "source": [
    "%cd /workspace/train/EfficientAT-main"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d0abf14b-46a1-4f92-9f70-e0de40dff46a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Epoch 9/200: 100%|███████████| 145/145 [01:00<00:00,  2.38it/s, train_loss=1.09]\n",
      "Validating: 100%|███████████████████████████████| 37/37 [00:08<00:00,  4.14it/s]\n",
      "Confusion Matrix:\n",
      "[[ 189    1    0  539  540   11    0]\n",
      " [   2   13    0  129  711   27    0]\n",
      " [   1    0    7   86  297   31    0]\n",
      " [   4    0    0 1111  699    7    0]\n",
      " [   1    0    0   67 2995    2    0]\n",
      " [   4    0    0  257  982  218    0]\n",
      " [   4    0    0   53  269    4    0]]\n",
      "Epoch 9/200, Train Loss: 1.0852, Validation Loss: 1.8843, Validation Accuracy: 0.4895, LR: 0.001000, Time: 69.80s\n",
      "Epoch 10/200:   0%|                                     | 0/145 [00:00<?, ?it/s]Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Setting temperature for attention over kernels to 21.0\n",
      "Epoch 10/200: 100%|██████████| 145/145 [01:00<00:00,  2.38it/s, train_loss=1.05]\n",
      "Validating: 100%|███████████████████████████████| 37/37 [00:08<00:00,  4.16it/s]\n",
      "Confusion Matrix:\n",
      "[[ 177    1    0  697  377   28    0]\n",
      " [   2  176    0  130  553   21    0]\n",
      " [   8    0    4   65  271   74    0]\n",
      " [   3    1    0 1031  740   46    0]\n",
      " [  10    0    0   63 2985    7    0]\n",
      " [  18    0    0  171  883  389    0]\n",
      " [  11   10    0   86  216    6    1]]\n",
      "Epoch 10/200, Train Loss: 1.0541, Validation Loss: 1.9365, Validation Accuracy: 0.5143, LR: 0.001000, Time: 69.76s\n",
      "Epoch 11/200:   0%|                                     | 0/145 [00:00<?, ?it/s]Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Setting temperature for attention over kernels to 20.0\n",
      "Epoch 11/200:   1%|▏           | 2/145 [00:03<03:30,  1.47s/it, train_loss=2.47]"
     ]
    }
   ],
   "source": [
    "!python ex_train_audio_classification_mode.py --cuda --train --pretrained --n_epochs=200 --model_name=dymn04_im --batch_size=256 --max_lr=0.001 --pretrain_final_temp=30 --adamw"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "d3b0a027-1774-4725-9e29-0112001369fe",
   "metadata": {},
   "outputs": [],
   "source": [
    "!rm -rf '/workspace/train/EfficientAT-main/training_results_dymn04_im_20250816_072418'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "fe6df804-8e48-41fc-9dab-5c409d591379",
   "metadata": {},
   "outputs": [],
   "source": [
    "!python inference_classification.py --cuda --pre_trained_model_path='/workspace/main/EfficientAT-main/output_model/best_checkpoint/dymn04_im04_acc_0.8923.pt' --audio_path=\"/workspace/main/EfficientAT-main/03-01-01-01-02-01-24.mp3\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3c8074fe-eedf-4cf6-8ab3-1815e733e6b9",
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import shutil\n",
    "\n",
    "# Mount Google Drive nếu cần\n",
    "\n",
    "# Đường dẫn tới thư mục cần zip\n",
    "folder_to_zip = '/workspace/main/EfficientAT-main'\n",
    "output_zip = '/workspace/main/EfficientAT-main.zip'\n",
    "\n",
    "# Tạo file zip\n",
    "shutil.make_archive(output_zip.replace('.zip', ''), 'zip', folder_to_zip)\n",
    "\n",
    "print(f'Thư mục đã được nén thành công thành file zip: {output_zip}')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "3c819525-cde6-4c3b-a24d-0bfb5e5c2b01",
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f3edf2d9-07d7-4472-86ec-81b800dcecbd",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}