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

run_segan+_clean.sh with cuda have error #12

Open
qinxiaoyi opened this issue Jul 3, 2019 · 1 comment
Open

run_segan+_clean.sh with cuda have error #12

qinxiaoyi opened this issue Jul 3, 2019 · 1 comment

Comments

@qinxiaoyi
Copy link

When i run run_segan+_clean.sh and set cuda, but got the following error.

RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #2 'weight'

@ukemamaster
Copy link

I had the same problem and i solved it.
In script clean.py, replace line 72 by c_wav, g_c = self.segan.generate(pwav, device=device).
Do not forget to define device: device = torch.device('cuda')

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