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.5.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.5-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crm_tensorflow-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 f1b4af5f43f659cba4b40c11ecb0609014d33e80aa602bfac7fc1460b2bb34ed
MD5 d4bd0149ead4268881ffb399b81bc849
BLAKE2b-256 27ed03b930e9f96bf8d0f69e3252530a72f77489866ff69a2ddce9bd34822482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: crm_tensorflow-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 626d68bc44c6af2bf34beeb59a8e3c5dc97bb5ea200a330498fb6a95c8750875
MD5 456f927c262996f0048bce923ff1ac4c
BLAKE2b-256 c9a25ec858981938af3bcce8ea931dd32266a3ce873481bd5a4a71d5240c6e4c

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