Git Product home page Git Product logo

mg's Introduction

MG Training (Maximum Gaussianality Training)

A Pytorch implementations of MG training, This is a general Gaussian distribution training method and can be used in any task that requires Gaussian distribution in latent space.

Datasets

trainingset:Voxceleb 
testset: SITW, CNCeleb

Following this link to download the dataset (extraction code:8xwe)

Run DNF with ML training (original DNF model )

./run_ML.sh

Run DNF with MG training

./run_MG.sh

The evaluation and scoring will be performed automatically during the training process.

Other instructions

score.py is a python implementations of the standard kaldi consine scoring, you can also use kaldi to do the plda scoring
tsne.py can be used to draw the distribution of latent space 

mg's People

Contributors

caiyq2019 avatar

Stargazers

 avatar  avatar Whhhhhh avatar ZhangYuxin avatar  avatar zengchang233 avatar Hui Zhang avatar kiritostudent avatar

Watchers

 avatar

mg's Issues

something wrong

saving model to ./chkpt/model_epoch70.pt
do evaluation ......

do scoring ......

epoch = 70 cosine eer% = 99.95%

Drawing tsne of latent space ......
select speakers with utts large than 250
n_samples=6403, n_dim=(512,), n_labels=22
Computing t-SNE embedding epoch
Traceback (most recent call last):
File "train.py", line 294, in
tsne.main(path0,epoch)
File "/MG-master/tsne.py", line 70, in main
result = tsne.fit_transform(data)
File "/pytorch/lib64/python3.6/site-packages/sklearn/manifold/_t_sne.py", line 932, in fit_transform
embedding = self._fit(X)
File "/pytorch/lib64/python3.6/site-packages/sklearn/manifold/_t_sne.py", line 704, in _fit
dtype=[np.float32, np.float64])
File "/pytorch/lib64/python3.6/site-packages/sklearn/base.py", line 421, in _validate_data
X = check_array(X, **check_params)
File "/pytorch/lib64/python3.6/site-packages/sklearn/utils/validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "/pytorch/lib64/python3.6/site-packages/sklearn/utils/validation.py", line 664, in check_array
allow_nan=force_all_finite == 'allow-nan')
File "/pytorch/lib64/python3.6/site-packages/sklearn/utils/validation.py", line 106, in _assert_all_finite
msg_dtype if msg_dtype is not None else X.dtype)
ValueError: Input contains NaN, infinity or a value too large for dtype('float32').

input data have NaN? why? can you help to fix it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.