Comments (3)
Do you mean by "your own spectrogram" a mel-spectrogram from another speaker? Trained WaveGrad can take any mel-spectrogram as input: it should be of type 'torch.Tensor' and it should match STFT parameters, which were used to train WaveGrad. Generally, the output quality can depend on a speaker you are trying to feed the model with. I haven't tested WaveGrad on unseen speakers, but I believe it should perform well.
from wavegrad.
Thanks! No, I meant feeding WaveGrad a .npy of a TTS trained on the same speaker, instead of running inference on the test set, because I didn't see it anywhere on the notebook (or I just missed it). I guess I pass it as a mel instead of iterating over a batch?
from wavegrad.
Yeah, if you have your mel of type np.array
saved on a disk, than just load it and convert it into torch.Tensor
. For conversion you can use classical torch.from_numpy(your_numpy_mel)
or just torch.FloatTensor(your_numpy_mel)
. Finally, make sure that your mel has batch dimension, e.g. 1 x n_mels x n_frames
and is on the same device as WaveGrad (CPU or GPU). Then, you can feed it as input to the forward
method.
from wavegrad.
Related Issues (20)
- ValueError: low >= high HOT 2
- inference.py seems not loading the specified checkpoint HOT 1
- Exponents calculation in positional encoding HOT 9
- Were your `generated_samples` generated using a model trained with AMP? HOT 2
- predict_start_from_noise HOT 2
- best noise schedule HOT 1
- schedules model for other dataset and different sample rate HOT 4
- TTS without Text? HOT 2
- Training so slow HOT 3
- How to make it work with TPU? HOT 2
- Audio quality improvements HOT 6
- The order of upsampling_dilations HOT 1
- Interpolation and Conv order in Upsample module HOT 1
- slow training in single GPU HOT 1
- Using NVIDIA RTX 3090 GPU?
- Static Noise with f_max = 10000
- Poor Synthesis Quality on 44k Sample Rate HOT 1
- Evaluation tools
- Unable to load the pre-trained parameters for inference HOT 2
- Matplotlib API change & NaNs for short clips & new hop_length HOT 27
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 wavegrad.