generated from ashleve/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b585d10
commit 775d3ef
Showing
8 changed files
with
896 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
defaults: | ||
- model_checkpoint | ||
#- early_stopping | ||
- rich_progress_bar | ||
- _self_ | ||
|
||
model_checkpoint: | ||
dirpath: ${paths.output_dir}/checkpoints | ||
filename: "epoch_{epoch:03d}" | ||
monitor: "val/loss" | ||
mode: "min" | ||
save_last: True | ||
auto_insert_metric_name: False | ||
save_top_k: 5 # save k best models (determined by above metric) | ||
save_weights_only: True | ||
|
||
early_stopping: | ||
monitor: "val/loss" | ||
patience: 20 | ||
mode: "min" | ||
|
||
model_summary: | ||
max_depth: -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# @package _global_ | ||
|
||
# to execute this experiment run: | ||
# python train.py experiment=example | ||
|
||
defaults: | ||
- override /data: asvspoof_multiview | ||
- override /model: xlsr_aasist_var_multiview | ||
- override /callbacks: default_loss | ||
- override /trainer: default | ||
|
||
# all parameters below will be merged with parameters from default configurations set above | ||
# this allows you to overwrite only specified parameters | ||
|
||
tags: ["asvspoof_multiview", "xlsr_aasist_var_multiview"] | ||
|
||
seed: 1234 | ||
|
||
trainer: | ||
max_epochs: 100 | ||
gradient_clip_val: 0.0 | ||
accelerator: cuda | ||
|
||
model: | ||
optimizer: | ||
lr: 0.000001 | ||
weight_decay: 0.0001 | ||
net: null | ||
scheduler: null | ||
compile: true | ||
|
||
data: | ||
batch_size: 14 | ||
num_workers: 8 | ||
pin_memory: true | ||
args: | ||
padding_type: repeat | ||
random_start: False | ||
is_variable_multi_view: True | ||
top_k: 4 | ||
min_duration: 16000 | ||
max_duration: 64600 | ||
|
||
|
||
logger: | ||
wandb: | ||
tags: ${tags} | ||
group: "asvspoof_multiview" | ||
aim: | ||
experiment: "asvspoof_multiview" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
_target_: src.models.aasistssl_var_multiview_module.AASISTSSLLitModule | ||
|
||
optimizer: | ||
_target_: torch.optim.Adam | ||
_partial_: true | ||
lr: 0.0001 | ||
weight_decay: 0.0001 | ||
|
||
scheduler: null | ||
|
||
net: null | ||
|
||
ssl_pretrained_path: ${oc.env:XLSR_PRETRAINED_MODEL_PATH} | ||
cross_entropy_weight: [0.1, 0.9] # weight for cross entropy loss 0.1 for spoof and 0.9 for bonafide | ||
# compile model for faster training with pytorch 2.0 | ||
compile: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.