Comments (4)
Hi there,
The norm stats are just the mean/std of the dataset, we calculate it using this script. Note that when we calculate the stats, the impact of mixup, SpecAug has already been considered, so you can see we input the audio_conf
to the dataloader, which contains mixup, SpecAug information.
-Yuan
from ast.
Thanks for your quick reply. I have understand how to do.
Another question: audio_conf I used should be the same as it used in pretrained model ? I use the pretrained model as follows: https://www.dropbox.com/s/cv4knew8mvbrnvq/audioset_0.4593.pth?dl=1
from ast.
Hi there,
Only num_mel_bins
of audio_conf
needs to be the same as the pretrained model.
num_mel_bins
: must be 128 to use the pretrained model.
target_length
: no need/ should not be the same with the pretrained model, it should be the temporal frame length of your dataset, e.g., if your audios are 1s, target_length
should be 100.
freqm
and timem
: no need/should not be same with the pretrained model, we suggest to mask a reasonable portion, but not all your data, e.g., if your target_length
is 100, we suggest to set timem
with 24.
mixup
: no need/should not be the same with the pretrained model, depend if you want to use mixup for your training.
dataset
: should not be the same as the pretrained model, but notice this is used here and there in traintest.py
and run.py
for loss function/evaluation strategy flags, please take a look and make modifications.
mean
and std
: better to use the stats of your dataset, but it might be OK to just reuse the AudioSet stats.
noise
: depends on if you want to augment noise during training.
By the way, it is highly recommended to set audioset_pretrain=True
and set input_tdim
as your input length (in frames) when you initialize the AST model to use the pretrained model rather than manually use load_state_dict
because the first will automatically adjust the positional embeddings for your input length, which is important.
-Yuan
from ast.
Thanks, I have a try by your good advice.
from ast.
Related Issues (20)
- seq2seq classification with AST HOT 2
- After fine-tune a 3-class dataset, how to load its fine-tuned weighted to update pre-trained ast model? HOT 7
- CPU memory increase while training HOT 6
- Fine tuning AST model to Music Emotion Classification Overfit HOT 3
- How can I adapt the pretrained AST model to fit my own dataset HOT 6
- ESC-50-master zip file location has changed HOT 2
- Installing requirements issues HOT 1
- When I download the pretrained model with stride=16, I need to change `fstride` and `tstride` in the source code from 10 to 16. Besides these changes, what else do I need to adjust?
- Different audio sample size for fine-tuning the model gives overfitting issue HOT 1
- training MAP HOT 2
- One question regarding the linear projection of AST. HOT 1
- Inquiry Regarding Audio Spectrogram Transformer HOT 2
- self-contained Google Colab script error HOT 2
- Ask for help HOT 1
- some questions when reproducing your results HOT 2
- csv error HOT 1
- AssertionError: choose a window size 400 that is [2, 1] HOT 2
- Discrepancy in Model Performance Using HuggingFace Pipeline Utility HOT 5
- AttributeError: module 'numpy.typing' has no attribute 'NDArray' HOT 3
- How to incrementally fine-tune AST model with the new data?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ast.