Skip to main content

npvcc2016: Python loader of npVCC2016 speech corpus

Project description

npvcc2016 - Python loader of npVCC2016Corpus

PyPI version Python Versions

npvcc2016 is a Python package for loader of npVCC2016 non-parallel speech corpus.
For machine learning, corpus/dataset is indispensable - but troublesome - part.
We need portable & flexible loader for streamline development.
npvcc2016 is the one!!



pip install npvcc2016
from npvcc2016.PyTorch.dataset.waveform import NpVCC2016_wave

dataset = NpVCC2016(train=True, download=True)

for datum in dataset:
    print("Yeah, data is acquired with only two line of code!!")
    print(datum) # (datum, label) tuple provided

npvcc2016 transparently downloads corpus, structures the data and provides standarized datasets.
What you have to do is only instantiating the class!


Current npvcc2016 support PyTorch.
As interface, PyTorch's Dataset and PyTorch-Lightning's DataModule are provided.
npVCC2016 corpus is speech corpus, so we provide waveform dataset and spectrogram dataset for both interfaces.

  • PyTorch
    • (pure PyTorch) dataset
      • waveform: NpVCC2016_wave
      • spectrogram: NpVCC2016_spec
    • PyTorch-Lightning
      • waveform: NpVCC2016_wave_DataModule
      • spectrogram: NpVCC2016_spec_DataModule

Dependency Notes

PyTorch version

PyTorch version: PyTorch v1.6 is working (We checked with v1.6.0).

For dependency resolution, we do NOT explicitly specify the compatible versions.
PyTorch have several distributions for various environment (e.g. compatible CUDA version.)
Unfortunately it make dependency version management complicated for dependency management system.
In our case, the system poetry cannot handle cuda variant string (e.g. torch>=1.6.0 cannot accept 1.6.0+cu101.)
In order to resolve this problem, we use torch==*, it is equal to no version specification. could resolve this problem (e.g. torchaudio's, but we will not bet our effort to this hacky method.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npvcc2016-3.0.0.tar.gz (9.5 kB view hashes)

Uploaded source

Built Distribution

npvcc2016-3.0.0-py3-none-any.whl (13.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page