Skip to main content

Torchopenl3

Please cite the following TorchOpenL3 in your work:
[1]Gyanendra Das, Humair Raj Khan, Joseph Turian (2021). torchopenl3 (version 1.0.1). DOI 10.5281/zenodo.5168808, https://github.com/torchopenl3/torchopenl3.

TorchopenL3 is a pytorch port of the OpenL3 Python library for computing deep audio embeddings.
PyPI Maintenance Ask Me Anything ! GitHub version License

Contributors

GitHub Contributors Image

Please refer to the Openl3 Library for keras version.

Comparison

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 torchopenl3

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.

Model Weights License

The model weights are made available under License

Metadata

Release files for torchopenl3 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torchopenl3 1.0.1
File Size Uploaded
torchopenl3-1.0.1.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for torchopenl3 1.0.1
File Interpreter ABI Platform
torchopenl3-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 36.8 kB

Release files / torchopenl3-1.0.1.tar.gz

Download URL torchopenl3-1.0.1.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2037e7f3f2ec796d5f458c55b04bd68301d9ecb8768152778676617931d07dda
BLAKE2b-256 checksum
How to use checksums
41c0e3ac80fd082801636b23af390dd804aef63439359264b21f8cea4078e3b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/59.5.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

Release files / torchopenl3-1.0.1-py2.py3-none-any.whl

Download URL torchopenl3-1.0.1-py2.py3-none-any.whl
Size 18.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
65fcb335ce35499887d6d163c5d8b1448d25c6118535ef0c10d7b7d535c21e46
BLAKE2b-256 checksum
How to use checksums
ecb30401265683d0bec328cd2448ce7fdd9c68faa278ea05906988ffd9803816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/59.5.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page