Skip to main content

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

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_tensorflow

Usage

import tensorflow as tf 
from CRM_tensorflow import ComplexRatioMask

# Input parameters
time_dim = 100
freq_dim = 257
batch_size = 100

# Define layer
crm_layer = ComplexRatioMask(masking_mode='E') # Other modes include 'C' and 'R'. See paper for more information.

# Random noisy signal split in real and imag. components
random_spectrogram_real = tf.random.normal((batch_size,time_dim, freq_dim))
random_spectrogram_imag = tf.random.normal((batch_size,time_dim, freq_dim))

# Random complex mask split in real and imag. components
random_mask_real = tf.random.normal((batch_size,time_dim, freq_dim))
random_mask_imag = tf.random.normal((batch_size,time_dim, freq_dim))

enhanced_speech_signal = crm_layer(random_spectrogram_real, random_spectrogram_imag, random_mask_real, random_mask_imag)

Metadata

Release files for CRM-tensorflow 0.1.6

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-tensorflow 0.1.6
File Size Uploaded Provenance Actions
crm_tensorflow-0.1.6.tar.gz 3.9 kB Without provenance Details for crm_tensorflow-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for CRM-tensorflow 0.1.6
File Interpreter ABI Platform Actions
crm_tensorflow-0.1.6-py3-none-any.whl Python 3 none any Details for crm_tensorflow-0.1.6-py3-none-any.whl

Total release size: 7.8 kB

Release files / crm_tensorflow-0.1.6.tar.gz

Download URL crm_tensorflow-0.1.6.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1180f8ee96463d1fe6c251a7802a1dce747b1e4ff373e3334fdc35f3f043f70e
BLAKE2b-256 checksum
How to use checksums
92cbfa452351ec1fd63eb05070849c4a7604ac8b6e9f92ede721b80e2fe46bc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / crm_tensorflow-0.1.6-py3-none-any.whl

Download URL crm_tensorflow-0.1.6-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7eebb54340d9de8401f13021b17603f61273c4899dc5266d0c52863a6d346136
BLAKE2b-256 checksum
How to use checksums
4d5869d572390cdbb143cfc537a83e2cdce0dbddd4568c02f3328c0521db064f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for CRM-tensorflow 0.1.6

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.

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