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.
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
online mix noise audio data in training step #2622
base: master
Are you sure you want to change the base?
online mix noise audio data in training step #2622
Changes from 6 commits
681f470
421243d
d08efad
b0a14b5
ba1a587
aebd08d
d255c3f
ec25136
484134e
4f24f08
1f57ece
66cc7c4
b7eb0f4
ccae7cc
8cc95f9
9e2648a
2269514
0b8147c
42bc45b
289722d
9334e79
25736e0
40b431b
f7d1279
7792226
c4c3ced
c151b1d
c089b7f
491a4b0
735cbbb
2fa91e8
6b820bb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This approach has a disadvantage:
Results of the augmentation will now get part of the cache. Therefore we miss the opportunity to get them re-augmented differently with every training loop (which could help avoiding over-fit).
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.
The noise dataset has been
.shuffle() + .repeat()
, if thedataset = dataset.cache(cache_path)
doesn't execute, it should mix the different noise on same speech file with every loop.I have double-checked it, using tf.Print to inspect the speech/noise filenames for each epoch, and make sure that the noises were selected randomly.
If we review the audio on tensorboard, we will notice that the same noise file is always picked, which is due to the random seed, try changing the
random_seed
to get a different result.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.
Yes, but how about caching training samples and noise separately?
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.
I didn't plan to cache noise, because mixing audio happens in
entry_to_features()
then converted to features, caching audio could cost 10 times memory than caching features, which should be less practical and should not speed up the training too much, so I madeenable_cache=False
whenFLAG.train_augmentation_files
is not null like other augmentation does.