Comments (5)
Pushed a fix to master. Please feel free to reopen if the problem persists.
from nnsvs.
Hello, I have been consulted the same problem (https://pbs.twimg.com/media/FREU_d4UUAAxcxV?format=png&name=360x360). I'm not familiar with mathematics, but this problem seems to result from the inappropriate matrix(not positive-definite matrix) returned from build_poe in nnmnkwii/paramgen/_mlpg.py.
Can we use bandmat.linalg.solve instead of solveh when numpy.linalg.LinAlgError occurs? (In my understanding, solve is slower than solveh but has a looser restriction, right?)
- nnmnkwii/paramgen/_mlpg.py(L195-)
b, P = build_poe(bs, precisions, win_mats)
try:
y[:, d] = bla.solveh(P, b)
except numpy.linalg.LinAlgError:
y[:, d] = bla.solve(P, b)
from nnsvs.
Hi, thanks for looking into it. Your suggestion sounds reasonable.
Also, I highly suspect that this is a numerical stability issue that can be addressed differently. Looking into the attached features, I found that the generated variance contains a very small value.
> sigma = np.load("path/to/features/max_sigma_sq.npy")
> sigma.min(), sigma.max()
> (1.3833172716339162e-18, 142.80620706633766)
By clipping the sigma by np.clip(sigma, 1e-17, sigma.max())
, MLPG works good for me. We can clip sigma by a larger value like 1e-14
or similar.
Could you check if it works okay for you?
from nnsvs.
Thank you for your rapid response. I don't have the data which causes this error, but Mr. Minato(@M_C3O2) have checked this problem and clipping sigma seems to work ok[1].
- https://twitter.com/M_C3O2/status/1518527034246692865 (written in Japanese)
from nnsvs.
max_sigma_sq = np.maxinum(max_sigma_sq, 1e-14)
seem to be working fine, not sure how low it goes.
from nnsvs.
Related Issues (20)
- train_acoustic entry point missing from setup.py HOT 2
- Add DiffSinger configurations and recipes to reproduce experiments reported in NNSVS documentation HOT 6
- Diffusion-based acoustic models HOT 2
- from nnsvs.train_util import NpyFileSource HOT 1
- The combination of NPSSMDNMultistreamParametricModel and BiLSTMResF0NonAttentiveDecoder with use_mdn=True results in training failure HOT 4
- [suggeston] Add an warning for acoustic model config not matching feature generation
- Converting Enunu to NNSVS HOT 3
- A Question HOT 1
- Refactor svs.py to be more modular and extensible for ENUNU
- Remove the trainable post-filter functionality to make code simple
- A separate training script for F0 prediction model HOT 1
- Can nnsvs be run on AMD GPUs via ROCm? HOT 2
- Using Enunu english model on NNSVS HOT 3
- AttributeError: module 'matplotlib' has no attribute 'axes'
- Is it unnecessary to resample the audio which is not 48k to 48k? HOT 2
- !pip install nnsvs HOT 6
- Cannot install nnsvs HOT 2
- (suggestion) Ability to preface Gaussian Diffusion with a user-selectable acoustic model
- ModuleNotFoundError("No module named 'nnsvs.transformer'") HOT 1
- Adapting a dataset to nnsvs format
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 nnsvs.