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.
Add env example, adaptive weighted view, improve training performance
- Loading branch information
1 parent
fce3f22
commit 9265dd7
Showing
9 changed files
with
161 additions
and
17 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
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,22 @@ | ||
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) | ||
|
||
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
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,42 @@ | ||
# @package _global_ | ||
|
||
# to execute this experiment run: | ||
# python train.py experiment=example | ||
|
||
defaults: | ||
- override /data: asvspoof_multiview | ||
- override /model: xlsr_aasist_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_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 | ||
|
||
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,42 @@ | ||
# @package _global_ | ||
|
||
# to execute this experiment run: | ||
# python train.py experiment=example | ||
|
||
defaults: | ||
- override /data: asvspoof_multiview | ||
- override /model: xlsr_aasist_multiview | ||
- override /callbacks: default | ||
- 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_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: false | ||
adaptive_weights: true | ||
|
||
data: | ||
batch_size: 8 | ||
num_workers: 8 | ||
|
||
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
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
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