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

about model input #2

Open
enhancer12 opened this issue Dec 5, 2020 · 1 comment
Open

about model input #2

enhancer12 opened this issue Dec 5, 2020 · 1 comment

Comments

@enhancer12
Copy link

Hello Tsun-An, I have read your paper "IMPROVING PERCEPTUAL QUALITY BY PHONE-FORTIFIED PERCEPTUAL LOSS FOR SPEECH ENHANCEMENT", which was actually well written. And I have a question about your code in 'dataset.py' L41&L42: why do you use a constant, 16384, to constrain the input length? Or does this constant have any special meaning? Thank you~

start = torch.randint(0, length - 16384 - 1, (1, ))

end = start + 16384

@aleXiehta
Copy link
Owner

Hi, we are grateful to know that you are interested in our work!
The input is truncated due to the limitation of VRAM because DCU-Net20 is quite large.
To generate an output with an identical length as its input, we need the input to be 2^n, and therefore we choose the length of 16384, which is about 1 second long.

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

2 participants