Skip to content

Commit

Permalink
[Scripts] Remove fixed seed for adding noise (#11401)
Browse files Browse the repository at this point in the history
* Remove fixed seed for adding noise

Signed-off-by: Ante Jukić <[email protected]>

* Apply isort and black reformatting

Signed-off-by: anteju <[email protected]>

---------

Signed-off-by: Ante Jukić <[email protected]>
Signed-off-by: anteju <[email protected]>
Co-authored-by: anteju <[email protected]>
  • Loading branch information
anteju and anteju authored Dec 3, 2024
1 parent 6099683 commit 9abd81b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/dataset_processing/add_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,15 @@ def add_noise(infile, snrs, noise_manifest, out_dir, num_workers=1):
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
"--input_manifest", type=str, required=True, help="clean test set",
"--input_manifest",
type=str,
required=True,
help="clean test set",
)
parser.add_argument("--noise_manifest", type=str, required=True, help="path to noise manifest file")
parser.add_argument("--out_dir", type=str, required=True, help="destination directory for audio and manifests")
parser.add_argument("--snrs", type=int, nargs="+", default=[0, 10, 20, 30])
parser.add_argument("--seed", type=int, default=42)
parser.add_argument("--seed", type=int, default=None)
parser.add_argument("--num_workers", default=1, type=int)
parser.add_argument("--sample_rate", default=16000, type=int)
parser.add_argument(
Expand Down

0 comments on commit 9abd81b

Please sign in to comment.