You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to change the depth of the transformer while finetuning the model. I am using the following command (inspired from ESC50) :
python3 ex_dcase.py with models.net.s_patchout_t=10 models.net.s_patchout_f=5 basedataset.fold=1 -p
I have already prepared the ex_dcase.py and dataset.py files for DCASE2020 dataset (inspired from ESC50 file provided by you). I have already been able to finetune the whole model once. Now I want to add a depth parameter to the commandline to run finetune script, so that I can control how many block I want to finetune on the architecture.
Currently I change the depth by changing the depth variable of the desired architecture here.
Suggest the required changes I need to make so that I can execute a command in the commandline and only finetune selective layers.
The text was updated successfully, but these errors were encountered:
There are two options, you can either make a new function similar to passt_s_kd_p16_128_ap486 and make the depth a parameter to the function and add it as a parameter to get_model method. In that case, you can change it directly from the command line usind sacred syntax:
python ex_audioset.py with models.net.depth=x -p
However, if you are loading a pretrained model this may break the loading, since now the model now have different weights.
I recommend using lighten_model method (as used in passt-L) which will:
remove alternating layers after loading the pre-trained model (remove every n layer): if (cut_depth=-n) < 0.
remove the last n layers after loading the pre-trained model: if cut_depth=n > 0.
example:
python ex_audioset.py with models.net.depth=x models.net.cut_depth=-2 -p
will remove every other layer from the pre-trained model to reduce the depth
I want to change the depth of the transformer while finetuning the model. I am using the following command (inspired from ESC50) :
python3 ex_dcase.py with models.net.s_patchout_t=10 models.net.s_patchout_f=5 basedataset.fold=1 -p
I have already prepared the ex_dcase.py and dataset.py files for DCASE2020 dataset (inspired from ESC50 file provided by you). I have already been able to finetune the whole model once. Now I want to add a depth parameter to the commandline to run finetune script, so that I can control how many block I want to finetune on the architecture.
Currently I change the depth by changing the depth variable of the desired architecture here.
Suggest the required changes I need to make so that I can execute a command in the commandline and only finetune selective layers.
The text was updated successfully, but these errors were encountered: