Skip to main content

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

Project description

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)

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

crm_tensorflow-0.1.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crm_tensorflow-0.1.6-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file crm_tensorflow-0.1.6.tar.gz.

File metadata

  • Download URL: crm_tensorflow-0.1.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for crm_tensorflow-0.1.6.tar.gz
Algorithm Hash digest
SHA256 1180f8ee96463d1fe6c251a7802a1dce747b1e4ff373e3334fdc35f3f043f70e
MD5 9dc5e0a61fc825f2a584cf472a05872f
BLAKE2b-256 92cbfa452351ec1fd63eb05070849c4a7604ac8b6e9f92ede721b80e2fe46bc2

See more details on using hashes here.

File details

Details for the file crm_tensorflow-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: crm_tensorflow-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for crm_tensorflow-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7eebb54340d9de8401f13021b17603f61273c4899dc5266d0c52863a6d346136
MD5 a32f158d14ed56b1e82e2e52cdb75667
BLAKE2b-256 4d5869d572390cdbb143cfc537a83e2cdce0dbddd4568c02f3328c0521db064f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page