-
Notifications
You must be signed in to change notification settings - Fork 48
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
Running in CPU #6
Comments
I removed all CUDA specific code from glow.py and inference.py , it runs now but the wave file generated is full of NULL , so no speech in it.
|
ok i was able to solve it , |
Thank you so much for your attention to our work, and you are right, if you want to run it on CPU, you need to delete all .cuda(), and change all Cuda tensors to normal tensors. |
@alokprasad I made the changes as per the https://github.com/alokprasad/binaries/blob/master/squeezewave.diff removed all references to cuda ..however am still unable to run the model using this command python inference.py -f <(ls mel_spectrograms/*.pt) -w L64_large_pretrain -o . --is_fp16 -s 0.6 File "inference.py", line 92, in How did u solve it ? did i miss anything ? |
@varungujjar you can use this repo , have put all the changes there https://github.com/alokprasad/fastspeech_squeezewave |
@alokprasad great ... also just refered to your page i'll be trying this on a RPI4 4gb and get back to you with the timing .. :) |
Looks like Apex library needs CUDA, when i without cuda , getting below error. any idea.
File "inference.py", line 48, in main
squeezewave, _ = amp.initialize(squeezewave, [], opt_level="O3")
File "/usr/local/lib/python3.6/dist-packages/apex-0.1-py3.6.egg/apex/amp/frontend.py", line 358, in initialize
return _initialize(models, optimizers, _amp_state.opt_properties, num_losses, cast_model_outputs)
File "/usr/local/lib/python3.6/dist-packages/apex-0.1-py3.6.egg/apex/amp/_initialize.py", line 171, in _initialize
check_params_fp32(models)
File "/usr/local/lib/python3.6/dist-packages/apex-0.1-py3.6.egg/apex/amp/_initialize.py", line 93, in check_params_fp32
name, param.type()))
File "/usr/local/lib/python3.6/dist-packages/apex-0.1-py3.6.egg/apex/amp/_amp_state.py", line 32, in warn_or_err
raise RuntimeError(msg)
RuntimeError: Found param WN.0.in_layers.0.0.weight with type torch.FloatTensor, expected torch.cuda.FloatTensor.
When using amp.initialize, you need to provide a model with parameters
located on a CUDA device before passing it no matter what optimization level
you chose. Use model.to('cuda') to use the default device.
The text was updated successfully, but these errors were encountered: