Skip to main content

Interface Design for Self-Supervised Speech Models


LICENSE STAR ISSUE PR

Links: arXiv

Interface module for Self-supervised Speech Models

Install

  1. First clone the repo
    git clone git@github.com:atosystem/SSL_Interface.git
    
  2. install the repo
    cd SSL_Interface
    pip install -e .
    

Usage

import torch
import SSL_Interface
import SSL_Interface.configs
import SSL_Interface.interfaces


WS_Interface = SSL_Interface.interfaces.WeightSumInterface(
    SSL_Interface.configs.WeightedSumInterfaceConfig(
        upstream_feat_dim=768,
        upstream_layer_num=13,
        normalize=False,
    )
)

HConv_Interface = SSL_Interface.interfaces.HierarchicalConvInterface(
    SSL_Interface.configs.HierarchicalConvInterfaceConfig(
        upstream_feat_dim=768,
        upstream_layer_num=13,
        normalize=False,
        conv_kernel_size=5,
        conv_kernel_stride=3,
        output_dim=768
    )
)



layer, batch_size, seq_len, hidden_size = 13,8,100,768

feats = torch.randn(layer, batch_size, seq_len, hidden_size)

feats = feats.cuda()
WS_Interface = WS_Interface.cuda()
HConv_Interface = HConv_Interface.cuda()

out = WS_Interface(feats)
print(out.shape)
# torch.Size([8, 100, 768])

out = HConv_Interface(feats)
print(out.shape)
# torch.Size([8, 100, 768])

Reference Repositories

s3prl

Citation

@article{shih_interface_2024,
  title={Interface Design for Self-Supervised Speech Models},
  author={Yi-Jen Shih and David Harwath},
  journal={Interspeech},
  year={2024},
  publisher={IEEE}
}

Metadata

Release files for SSL-Interface 0.1.0

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

Source distribution (sdist)

Source distribution for SSL-Interface 0.1.0
File Size Uploaded Provenance Actions
ssl_interface-0.1.0.tar.gz 6.5 kB Without provenance Details for ssl_interface-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SSL-Interface 0.1.0
File Interpreter ABI Platform Actions
SSL_Interface-0.1.0-py3-none-any.whl Python 3 none any Details for SSL_Interface-0.1.0-py3-none-any.whl

Total release size: 13.8 kB

Release files / ssl_interface-0.1.0.tar.gz

Download URL ssl_interface-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bd8a894a6dd96a3f8a0631f7469e2a7779a63ba39ffc768275cd7bd1fc843ff2
BLAKE2b-256 checksum
How to use checksums
9d9bf48019943590c4ce98f7af37126c4ac639c2e984400ca19b384552c9ee6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / SSL_Interface-0.1.0-py3-none-any.whl

Download URL SSL_Interface-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
172f2744d2887c54ed87d0f73fba20bd963b4cfadd2f288c6943b42648ba67cb
BLAKE2b-256 checksum
How to use checksums
05852e35377c80e7e225867826a8c810b457213f486ba8ada2da5e8a6fd8bfa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Security for SSL-Interface 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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