Comments (8)
Specifically, I'm trying to generate my own embedded_text and use that instead of the one generated from the input audio. This might be related to #57.
from mellotron.
More specifically, it seems I'm not able to match some matrix dimensions. I'm not sure what I need to pad.
/data/mellotron/model.py in forward(self, attention_hidden_state, memory, processed_memory, attention_weights_cat, mask, attention_weights)
94
95 attention_weights = F.softmax(alignment, dim=1)
---> 96 attention_context = torch.bmm(attention_weights.unsqueeze(1), memory)
97 attention_context = attention_context.squeeze(1)
98
RuntimeError: invalid argument 6: wrong matrix size at /pytorch/aten/src/THC/generic/THCTensorMathBlas.cu:534
from mellotron.
@astricks
What you're asking for is slight madness 😄
Try inputting text of the same length as the original text and see what happens.
from mellotron.
I got something to work. Seems like the word "en-han-ces" doesn't play well with the dictionary, removed that change and it worked.
@CookiePPP could you expand a bit on the madness part? 😄 What I want to do is generate sentences spoken in the style of reference sentence. My understanding is that Tacotron does prosody transfer, and mellotron will give me rhythmic transfer as well.
from mellotron.
@astricks
The source rhythm is an attention map that is ran over the text (encoder_outputs).
I don't expect you to be able to change the input and have it still sound natural, though it would work for same length inputs.
Also f0 would be teacher forced so I'd expect that to also effect the naturalness when changing the text.
If you try it (with same length inputs), can you upload the audio file you generate as well as the original and updated texts?
I'm curious what it sounds like
from mellotron.
@CookiePPP
I used the source example sentence and changed the text a little to generate audio below.
Source text: "exploring the expanses of space to keep our planet safe"
Modified text: "exploding the expanses of grace to keep our planet sane"
https://drive.google.com/open?id=1w-i_T9hzwzgXOVVouXVP039YuD02ROP3
Not a bad transfer, the sentences are very similar though.
from mellotron.
@astricks
Sounds pretty good, now I wonder how far it can be changed? 😄
from mellotron.
Not too much, even if i try to keep the same number of syllables. I think I can close this bug as resolved. Thanks the help @CookiePPP!
from mellotron.
Related Issues (20)
- NoneType' object is not iterable
- Mismatch model volume
- Training on a different language HOT 1
- Inference without rhythm and pitch
- parse_output error with Blizzard2013 data
- Training on EmovDB HOT 2
- Voice synthesis by model is not the same as the voice with speaker ID HOT 1
- Try to train some new words
- inference speed on CPU
- Training time
- Two key points of training multispeaker mellotron
- how to train?
- colab demo for inferenece
- How to generate .musicxml files like the examples in `/data`? HOT 1
- Synthesize own text without style transfer gives poor audio results HOT 1
- Here's some code to start mellotron inference by calling a .py file from CLI [Docs]
- What is the reason of filtering "_" and "~" symbols?
- Something wrong with text padding HOT 5
- Can I use TensorRT to speed up model inference?
- colab error HOT 2
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 mellotron.