Skip to main content

A non-official implementation of the Complex Ratio Mask (CRM) technique as a Pytorch module.

Implementation of the the Complex Ratio Mask (CRM) technique used in "DCCRN: Deep Complex Convolution Recurrent Network for Phase-Aware Speech Enhancement".

Installlation

pip install CRM_pytorch

Usage

import torch
from CRM_pytorch import ComplexRatioMask

# Create instances of CRMLayer with every mode
crm = ComplexRatioMask(masking_mode='E') # Other modes include 'C' and 'R'. See paper for more information.

# Input parameters
batch_size = 32
time_steps = 100
freq_bins = 257

# Dummy input data (numpy first, then torch)
x_real = torch.randn(batch_size, time_steps, freq_bins, dtype=torch.float32)
x_imag = torch.randn(batch_size, time_steps, freq_bins, dtype=torch.float32)
mask_real = torch.ones(batch_size, time_steps, freq_bins, dtype=torch.float32)
mask_imag = torch.ones(batch_size, time_steps, freq_bins, dtype=torch.float32)

# Forward pass through the layer
estimated_speech = crm_layer_e(x_real, x_imag, mask_real, mask_imag)

Metadata

Release files for CRM-pytorch 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 CRM-pytorch 0.1.0
File Size Uploaded Provenance Actions
crm_pytorch-0.1.0.tar.gz 2.8 kB Without provenance Details for crm_pytorch-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for CRM-pytorch 0.1.0
File Interpreter ABI Platform Actions
crm_pytorch-0.1.0-py3-none-any.whl Python 3 none any Details for crm_pytorch-0.1.0-py3-none-any.whl

Total release size: 5.5 kB

Release files / crm_pytorch-0.1.0.tar.gz

Download URL crm_pytorch-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
77d526a12858d8ab9cfbdf6d50536441536e25626b1753efd642c0f1c3888194
BLAKE2b-256 checksum
How to use checksums
98fe2e7701dc102b460b814f33b5ccf23a8bec17a514d5726105767d4b655edb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

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

Download URL crm_pytorch-0.1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7c4f417a9121bc2bcf97c7a78b75bf84369a6e895b378e2f389988ddab37576
BLAKE2b-256 checksum
How to use checksums
569304ddd6c8cdfc9d04e3252eee601be2300dee5e76dfaab239bb74ffcea8fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for CRM-pytorch 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