Skip to main content

Deep audio and image embeddings, based on Look, Listen, and Learn approach Pytorch

Project description

Torchopenl3

TorchopenL3 is an open-source Python library Pytorch Support for computing deep audio embeddings.

PyPI Build Status Maintenance Ask Me Anything ! GitHub version License

Contributors

GitHub Contributors Image

Please refer to the Openl3 Library for keras version.

The audio and image embedding models provided here are published as part of [1], and are based on the Look, Listen and Learn approach [2]. For details about the embedding models and how they were trained, please see:

Look, Listen and Learn More: Design Choices for Deep Audio Embeddings
Jason Cramer, Ho-Hsiang Wu, Justin Salamon, and Juan Pablo Bello.
IEEE Int. Conf. on Acoustics, Speech and Signal Processing (ICASSP), pages 3852–3856, Brighton, UK, May 2019.

Comparasion

We run torchopenl3 over 100 audio files and compare with openl3 embeddings. Below is the MAE (Mean Absolute Error) Table

Content_type Input_repr Emd_size MAE
Env Linear 512 1.1522600237867664e-06
Env Linear 6144 1.027089645617707e-06
Env Mel128 512 1.2094695046016568e-06
Env Mel128 6144 1.0968088741947213e-06
Env Mel256 512 1.1641358707947802e-06
Env Mel256 6144 1.0069775197507625e-06
Music Linear 512 1.173499645119591e-06
Music Linear 6144 1.048712784381678e-06
Music Mel128 512 1.1837427564387327e-06
Music Mel128 6144 1.0497348176841115e-06
Music Mel256 512 1.1619711483490392e-06
Music Mel256 6144 9.881532906774738e-07

Installation

PyPI
Install via pip

pip install git+https://github.com/turian/torchopenl3.git

Install the package with all dev libraries (i.e. tensorflow openl3)

git clone https://github.com/turian/torchopenl3.git
pip3 install -e ".[dev]"

Install Docker and work within the Docker environment. Unfortunately this Docker image is quite big (about 4 GB) because

docker pull turian/torchopenl3
# Or, build the docker yourself
#docker build -t turian/torchopenl3 .

Using TorchpenL3

Open In Colab

To help you get started with TorchopenL3 please go through the colab file.

Acknowledge

Special Thank you to Joseph Turian for his help

[1] Look, Listen and Learn More: Design Choices for Deep Audio Embeddings
Jason Cramer, Ho-Hsiang Wu, Justin Salamon, and Juan Pablo Bello.
IEEE Int. Conf. on Acoustics, Speech and Signal Processing (ICASSP), pages 3852–3856, Brighton, UK, May 2019.

[2] Look, Listen and Learn
Relja Arandjelović and Andrew Zisserman
IEEE International Conference on Computer Vision (ICCV), Venice, Italy, Oct. 2017.

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

torchopenl3-1.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

torchopenl3-1.0.0-py2.py3-none-any.whl (14.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file torchopenl3-1.0.0.tar.gz.

File metadata

  • Download URL: torchopenl3-1.0.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for torchopenl3-1.0.0.tar.gz
Algorithm Hash digest
SHA256 93c69c547f7d6c53e8484eb753e9cd95192a3ac7f3edcad6b38ad04041a9d63f
MD5 689802550cd0b553d6f0f669bb4814be
BLAKE2b-256 7466163041657d7784f13a3aa65b97a18660fd5509d08f5b6830097182a58e97

See more details on using hashes here.

File details

Details for the file torchopenl3-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: torchopenl3-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for torchopenl3-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eae1f4311100e4fb16982f896f355fc70e3bcad9c72928093b336371840867d3
MD5 d96b0aee17052168e9fc7cdf0d41e09d
BLAKE2b-256 b97f17b0e5fa68a48dde62ae6879a165ef1c586f6d86bc4dc79b6086fd301c05

See more details on using hashes here.

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