Comments (6)
Hello, getting the same error, torch==1.5.0
I see that we have
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
# FIXME: currently, the gradient is None if loss_device is cuda
loss_device = torch.device("cpu")
after that if we are using clip_grad_norm_ from torch, it performs operation on all of the parameters, two of which are on cpu, and the rest on cuda:0
total_norm = torch.norm(torch.stack([torch.norm(p.grad.detach(), norm_type) for p in parameters]), norm_type)
which throws the error.
Could it be that the torch version is incorrect? I'm using 1.5.0
[UPDATE]
Reinstalled torch and it started training!
pip uninstall torch # you might need to ran it twice, check with
pip list | grep torch # that you don't have torch left
pip install torch # or pip install torch==1.5.0 to ensure the version
from multi-tacotron-voice-cloning.
Hello. use
python encoder_train.py my_run --clean_data_root D:\Datasets\SV2TTS\encoder
from multi-tacotron-voice-cloning.
not enough video memory. Reduce the Batch size
from multi-tacotron-voice-cloning.
Hello @vlomme
Thank for your support,
When I used python encoder_train.py my_run --clean_data_root D:\Datasets\SV2TTS\encoder,
The result is
File "encoder_train.py", line 46, in
train(**vars(args))
File "D:\SV2TTS\encoder\train.py", line 87, in train
model.do_gradient_ops()
File "D:\SV2TTS\encoder\model.py", line 39, in do_gradient_ops
clip_grad_norm_(self.parameters(), 3, norm_type=2)
File "C:\Users\Admin\anaconda3\envs[Test_Voice]\lib\site-packages\torch\nn\utils\clip_grad.py", line 30, in clip_grad_norm_
total_norm = torch.norm(torch.stack([torch.norm(p.grad.detach(), norm_type) for p in parameters]), norm_type)
RuntimeError: All input tensors must be on the same device. Received cpu and cuda:0
from multi-tacotron-voice-cloning.
Hello,
When I trained vocoder (run python vocoder_train.py my_run D:\Datasets), I encountered an error:
+------------+--------+--------------+
| Batch size | LR | Sequence Len |
+------------+--------+--------------+
| 60 | 0.0001 | 1000 |
+------------+--------+--------------+
RuntimeError: CUDA out of memory. Tried to allocate 118.00 MiB (GPU 0; 4.00 GiB total capacity; 2.87 GiB already allocated; 10.61 MiB free; 32.29 MiB cached)
how can i solve this error ?
from multi-tacotron-voice-cloning.
Thank @vlomme
from multi-tacotron-voice-cloning.
Related Issues (20)
- No module named 'tensorflow.contrib' HOT 6
- pretrained model HOT 4
- Speech2Speech вместо Text2Speech HOT 2
- Вопрос по поводу поддержки HOT 31
- Не работает. HOT 31
- Multi-Language Training HOT 3
- use tacotron2 trained on russian? HOT 1
- Could not find a version HOT 1
- Training encoder HOT 2
- Обучение нейронки HOT 8
- Обучение сети для одного голоса.
- Твоя версия лучше чем Real-Time-Voice-Cloning? HOT 3
- Есть альтернативные модели клонирующие лучше чем эта?(оригинальная английская модель не в счет)
- Training for other language other than Russian? English -> Other Language?
- Use of language embedding
- Could not find a version that satisfies the requirement PyQt5 HOT 1
- How to run on new voices? HOT 1
- При запуске вне коллаба ошибка HOT 1
- Не видит dataset HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multi-tacotron-voice-cloning.