-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESPnet-Spk part 3 - inference every epoch using EER #5314
Merged
Merged
Changes from 37 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
e884009
add epoch wise inference using EER
Jungjee 363b844
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f8dc909
Merge branch 'master' into speaker2
Jungjee e5c4a6c
make dummy test trial for ci
Jungjee c1b9937
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 91a777f
make test_python work
Jungjee 6316eed
Merge branch 'speaker2' of https://github.com/Jungjee/espnet into spe…
Jungjee d4238e4
Merge branch 'master' into speaker2
sw005320 447eb83
make test_integration2 work
Jungjee 1833acb
Merge branch 'speaker2' of https://github.com/Jungjee/espnet into spe…
Jungjee 04bb321
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f0bacaa
Merge branch 'master' into speaker2
Jungjee e91c0e3
Add data augmentation for speaker taks
Emrys365 5586713
Merge branch 'speaker2' of github.com:Jungjee/espnet into speaker2
Emrys365 3708b6f
revoke undoed patch
Jungjee 9cbf911
revoke undoed commit, make no da work
Jungjee 0767537
undo revoked edits
Jungjee 640f02d
Support mixing with variable number of noises
Emrys365 0cf57da
Merge branch 'speaker2' of https://github.com/Jungjee/espnet into spe…
Jungjee deebddf
fix minor bug in da
Jungjee 323aceb
add arg
Jungjee a714aa4
add making scp files for DA
Jungjee 1751ecd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 779cf76
reflects comments
Jungjee 5672580
make symlink conf
Jungjee c51c773
add comment for speech2
Jungjee 920b51c
Merge branch 'master' into speaker2
Jungjee dd51257
Add unit tests
Emrys365 b1088c1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 37f4ab4
Fix a bug in SPK preprocessor
Emrys365 19a09e0
Merge branch 'master' into speaker2
Jungjee ba66a76
fix minor bug, make ci model smaller
Jungjee 9470be5
Update espnet2/spk/loss/aamsoftmax.py
Jungjee 19d5d81
Update espnet2/train/spk_trainer.py
Jungjee 267bfb4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e5297a1
reflect @Emrys365 comments
Jungjee caa2a73
Merge branch 'master' into speaker2
Jungjee 12fea27
reflect local changes
Jungjee 9790e6d
Merge branch 'speaker2' of https://github.com/Jungjee/espnet into spe…
Jungjee 9aaad7c
Merge branch 'master' into speaker2
Jungjee 249bf6e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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 @@ | ||
# RawNet3 reproduce recipe configuration. | ||
frontend: raw | ||
|
||
encoder: rawnet3 | ||
encoder_conf: | ||
model_scale: 4 | ||
ndim: 16 | ||
|
||
pooling: chn_attn_stat | ||
pooling_conf: | ||
input_size: 24 | ||
|
||
projector: rawnet3 | ||
projector_conf: | ||
input_size: 48 | ||
output_size: 8 | ||
|
||
preprocessor: spk | ||
preprocessor_conf: | ||
target_duration: 3.0 # seconds | ||
sample_rate: 16000 | ||
num_eval: 1 | ||
rir_scp: data/train_nodev/rirs.scp | ||
rir_apply_prob: 1.0 | ||
noise_info: | ||
- [0.4, "data/train_nodev/noises.scp", [1, 1], [0, 10]] | ||
- [0.5, "data/train_nodev/noises.scp", [1, 2], [10, 20]] | ||
noise_apply_prob: 1.0 | ||
short_noise_thres: 0.5 | ||
|
||
model_conf: | ||
extract_feats_in_collect_stats: false | ||
|
||
loss: aamsoftmax | ||
loss_conf: | ||
nout: 8 | ||
nclasses: 10 | ||
margin: 0.3 | ||
scale: 15 | ||
|
||
optim: adam | ||
num_att_plot: 0 |
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,14 @@ | ||
import os | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
with open(sys.argv[1]) as f: | ||
lines = f.readlines() | ||
|
||
joint_key = lines[0].strip().split(" ")[0] + "*" + lines[1].strip().split(" ")[0] | ||
with open(os.path.join(sys.argv[2], "trial.scp"), "w") as f: | ||
f.write(joint_key + " " + " ".join(lines[0].strip().split(" ")[1:]) + "\n") | ||
with open(os.path.join(sys.argv[2], "trial2.scp"), "w") as f: | ||
f.write(joint_key + " " + " ".join(lines[1].strip().split(" ")[1:]) + "\n") | ||
with open(os.path.join(sys.argv[2], "trial_label"), "w") as f: | ||
f.write(joint_key + " 0\n") |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tuning/train_RawNet3_sgdr_bs.yaml |
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,45 @@ | ||
# RawNet3 reproduce recipe configuration. | ||
|
||
frontend: raw | ||
|
||
encoder: rawnet3 | ||
encoder_conf: | ||
model_scale: 8 | ||
ndim: 1024 | ||
sinc_stride: 16 | ||
|
||
pooling: chn_attn_stat | ||
pooling_conf: | ||
input_size: 1536 # 1.5 * ndim of RawNet3 encoder | ||
|
||
projector: rawnet3 | ||
projector_conf: | ||
input_size: 3072 # 2 * input_size of pooling | ||
output_size: 256 | ||
|
||
preprocessor: spk | ||
preprocessor_conf: | ||
target_duration: 3.0 | ||
sr: 16000 | ||
num_eval: 5 | ||
|
||
model_conf: | ||
extract_feats_in_collect_stats: false | ||
|
||
loss: aamsoftmax | ||
loss_conf: | ||
nout: 256 | ||
nclasses: 7205 | ||
margin: 0.2 | ||
scale: 15 | ||
|
||
optim: adam | ||
max_epoch: 40 | ||
num_att_plot: 0 | ||
num_workers: 6 | ||
cudnn_deterministic: False | ||
cudnn_benchmark: True | ||
batch_size: 32 | ||
iterator_type: sequence | ||
shuffle_within_batch: True | ||
log_interval: 50 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's better to rename
trial.scp
totrial1.scp
to make them more consistent.