mirror of https://github.com/coqui-ai/TTS.git
bug fix
This commit is contained in:
parent
030e942396
commit
f629a91d27
3
train.py
3
train.py
|
@ -102,7 +102,8 @@ def train(model, criterion, criterion_st, data_loader, optimizer, epoch):
|
||||||
linear_spec = linear_spec.cuda()
|
linear_spec = linear_spec.cuda()
|
||||||
stop_target = stop_target.cuda()
|
stop_target = stop_target.cuda()
|
||||||
|
|
||||||
stop_target = stop_target.view(B, stop_target.size(1) // c.r, -1)
|
stop_target = stop_target.view(c.batch_size, stop_target.size(1) // c.r, -1)
|
||||||
|
import ipdb; ipdb.set_trace()
|
||||||
stop_target = (stop_target.sum(1) > 0.0).long()
|
stop_target = (stop_target.sum(1) > 0.0).long()
|
||||||
|
|
||||||
# create attention mask
|
# create attention mask
|
||||||
|
|
Loading…
Reference in New Issue