raiseNotImplementedError(f"Directory format {format} unknown!")
...
...
@@ -93,7 +96,7 @@ class SpecsDataModule(pl.LightningDataModule):
@staticmethod
defadd_argparse_args(parser):
parser.add_argument("--base_dir",type=str,required=True,help="The base directory of the dataset. Should contain `train`, `valid` and `test` subdirectories, each of which contain `clean` and `noisy` subdirectories.")
parser.add_argument("--format",type=str,choices=("default","dns"),default="default",help="Read file paths according to file naming format.")
parser.add_argument("--format",type=str,choices=("default","reverb"),default="default",help="Read file paths according to file naming format.")
parser.add_argument("--batch_size",type=int,default=8,help="The batch size. 8 by default.")
parser.add_argument("--n_fft",type=int,default=510,help="Number of FFT bins. 510 by default.")# to assure 256 freq bins
parser.add_argument("--hop_length",type=int,default=128,help="Window hop length. 128 by default.")