A non-official implementation of the BandSplit technique as a TensorFlow layer.
Project description
Non-official BandSplit implementation as a TF 2.0 layer
Implementation of the BandSplit technique used in "Music Source Separation with Band-split RNN".
Installlation
pip install bandsplit_tensorflow
Usage
import tensorflow as tf
from bandsplit_tensorflow import BandSplitLayer
# Input parameters
input_time_dim = 100
input_freq_dim = 257
batch_size = 100
sr = 16000
# Hyperparameters
sub_band_feature_dim = 128
# Define layer
band_split_layer = BandSplitLayer(input_freq_dim=input_freq_dim, sr=sr, sub_band_feature_dim=sub_band_feature_dim)
# Use layer
random_spectrogram = tf.random.normal((batch_size, input_time_dim, input_freq_dim))
result = band_split_layer(random_spectrogram)
print(result)
Notes:
- The implementation is only designed for a sample rate of 16 kHz
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bandsplit_tensorflow-0.1.2.tar.gz
.
File metadata
- Download URL: bandsplit_tensorflow-0.1.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d872f4648223366a6cbceff66ea2d29b4e4cfa2dbda98a6cb4cd493462d872da |
|
MD5 | d0d389a6b722693625030a1b08033b2e |
|
BLAKE2b-256 | c8e64ff26d0a5e4d1e113d457e8c9a6ed0e72cb087502c06a7918451d4074a47 |
File details
Details for the file bandsplit_tensorflow-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: bandsplit_tensorflow-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ed379b029b695825834024d490745f2df4e2a0996ea4cece3b54f4a61ddce3 |
|
MD5 | 1be0801bc0afea7a343e73bd7e74c594 |
|
BLAKE2b-256 | 49956f605d3c0f4c5d5d9dfe9cf8234f30c60e3b7b3b96ba9b8e5a5a113b462b |