Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

Commit 7048628

Browse files
committed
initial commit
1 parent 3fa1259 commit 7048628

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.pyc
44
*.DS_Store
55
pretrained_models/ensemble/*
6+
pretrained_models/load_pretrained_model_internal.py
67
pretrained_models/legal_pretrained_mdl/*
78
src/convert_model.py
89
src/convert_model2.py

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ cd ast/egs/audioset
131131
(local user) ./run.sh
132132
```
133133
You should get a model achieves `0.448 mAP` (without weight averaging) and `0.459` (with weight averaging). This is the best **single** model reported in the paper.
134-
The result of each epoch is saved in `ast/egs/audioset/exp/yourexpname/result.csv` in format `[mAP, mAUC, average_precision, average_recall, d_prime, train_loss, valid_loss, cum_mAP, cum_mAUC, lr]`
135-
, where `cum_` results are the checkpoint ensemble results (i.e., averaging the prediction of checkpoint models of each epoch, please check our [PSLA paper](https://arxiv.org/abs/2102.01243) for details).
134+
The result of each epoch is saved in `ast/egs/audioset/exp/yourexpname/result.csv` in format `[mAP, mAUC, precision, recall, d_prime, train_loss, valid_loss, cum_mAP, cum_mAUC, lr]`
135+
, where `cum_` results are the checkpoint ensemble results (i.e., averaging the prediction of checkpoint models of each epoch, please check our [PSLA paper](https://arxiv.org/abs/2102.01243) for details). The result of weighted averaged model is saved in `wa_result.csv` in format `[mAP, AUC, precision, recall, d-prime]`. We attached our log file in `ast/egs/audioset/test-full-f10-t10-pTrue-b12-lr1e-5/`, the model achieves `0.459` mAP.
136136

137-
In order to reproduce ensembe results of `0.475 mAP` and `0.485 mAP`, please train 3 models use the same setting (i.e., repeat above three times) and train 6 models with different `tstride` and `fstride`, and average the output of the models. Please refer to `ast/egs/audioset/ensemble.py`. We attached our ensemble log in `/ast/egs/audioset/exp/ensemble-s.log` and `ensemble-m.log`.
137+
In order to reproduce ensembe results of `0.475 mAP` and `0.485 mAP`, please train 3 models use the same setting (i.e., repeat above three times) and train 6 models with different `tstride` and `fstride`, and average the output of the models. Please refer to `ast/egs/audioset/ensemble.py`. We attached our ensemble log in `/ast/egs/audioset/exp/ensemble-s.log` and `ensemble-m.log`. You can use our pretrained models (see below) to test ensemble result.
138138

139139
## Pretrained Models
140140
We provide full AudioSet pretrained models.

‎egs/audioset/run.sh‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
2-
##SBATCH -p sm
3-
##SBATCH -x sls-sm-1,sls-2080-[1,3],sls-1080-3,sls-sm-5
4-
#SBATCH -p gpu
5-
#SBATCH -x sls-titan-[0-2]
2+
#SBATCH -p sm
3+
#SBATCH -x sls-sm-1,sls-2080-[1,3],sls-1080-3,sls-sm-5
4+
##SBATCH -p gpu
5+
##SBATCH -x sls-titan-[0-2]
66
#SBATCH --gres=gpu:4
77
#SBATCH -c 4
88
#SBATCH -n 1
@@ -41,7 +41,7 @@ mixup=0.5
4141
fstride=10
4242
tstride=10
4343
batch_size=12
44-
exp_dir=./exp/test-${set}-f$fstride-t$tstride-p$imagenetpretrain-b$batch_size-lr${lr}
44+
exp_dir=./exp/test-${set}-f$fstride-t$tstride-p$imagenetpretrain-b$batch_size-lr${lr}-demo
4545
if [ -d $exp_dir ]; then
4646
echo 'exp exist'
4747
exit
71 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)