Skip to content
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

Reproducible script for training GSEGAN? #35

Open
ws-choi opened this issue Dec 15, 2021 · 1 comment
Open

Reproducible script for training GSEGAN? #35

ws-choi opened this issue Dec 15, 2021 · 1 comment

Comments

@ws-choi
Copy link

ws-choi commented Dec 15, 2021

Hi @santi-pdp, thank you for open-sourcing this amazing project.

I am trying to reproduce training GSEGAN [1] from scratch.
However, I could not have found a reproducible script for it.
Could you let me know such a train script?

Since there are a lot of parameters and scripts, I am not sure which options I must select to reproduce it.
For example, I don't know which dataset I must select.

dset = SEOnlineDataset(opts.data_root,
distorteds=opts.distorted_roots,
distorted_p=opts.distorted_p,
noises_dir=opts.noises_dir,
chunker=chunker,
nsamples=opts.data_samples,
transform=trans,
utt2class=opts.utt2class,
lab_transform=aco_transform,
lab_folder=opts.lab_folder)
"""
else:
# create Dataset(s) and Dataloader(s)
assert opts.noisy_data_root is not None
# a contaminated dataset is specified, use ChunkerSEDataset
dset = RandomChunkSEDataset(opts.data_root,
opts.noisy_data_root,
opts.preemph,
slice_size=opts.slice_size,
transform=aco_transform)
dloader = DataLoader(dset, batch_size=opts.batch_size,
shuffle=True, num_workers=opts.num_workers,
pin_memory=CUDA)

Could you let me know such a train script, similar to this one (for GSEGAN)?

python train.py --save_path ckpt_segan+ --batch_size 300 \
		--clean_trainset data/clean_trainset \
		--noisy_trainset data/noisy_trainset \
		--cache_dir data/cache

Best,
Woosung Choi
[1] Pascual, Santiago, Joan Serrà, and Antonio Bonafonte. "Towards generalized speech enhancement with generative adversarial networks." arXiv preprint arXiv:1904.03418 (2019). Interspeech

@ws-choi
Copy link
Author

ws-choi commented Dec 15, 2021

Also, can you let me know how I can reproduce the evaluation for GSEGAN?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant