Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Audio-WestlakeU/RVAE-EM
/ functions
Functions
102 in github.com/Audio-WestlakeU/RVAE-EM
⨍
Functions
102
◇
Types & classes
13
↓ 18 callers
Method
append
(self, matric, value)
utils/other.py:59
↓ 12 callers
Function
wav_path2txt
Function: save the path of .wavs in the root folder to index.txt Params: root: root folder
utils/utils.py:147
↓ 10 callers
Method
append
(self, matric, value)
DNSMOS/other.py:59
↓ 9 callers
Function
dict_to_namespace
Return: namespace Params: dict
utils/env.py:12
↓ 8 callers
Method
write
(self, message)
utils/utils.py:167
↓ 6 callers
Method
loss_ISD
Return: IS loss Params: output: magnitude spectrogram (>=0), output of RVAE decoder, shape of [bs,T,F] target
model/lossF.py:5
↓ 6 callers
Method
loss_KLD
Return: KL loss Params: zmean: mean of latent variables, output of RVAE encoder, shape of [bs,T,D] zlogvar: l
model/lossF.py:20
↓ 6 callers
Function
mean_std
(data)
utils/other.py:110
↓ 5 callers
Function
load_checkpoint
(filepath, device)
utils/utils.py:20
↓ 4 callers
Function
build_conv2d
Return: convolutional layer sequence Params: config: list of parameters, [input channel, output channel, kernel size, stride, padding
model/module.py:64
↓ 4 callers
Method
cal_KL_scale
Return: the scale of KL loss Params: cur_step: current training step beta: base scale (default: 1)
model/lossF.py:38
↓ 4 callers
Function
plot_spectrogram
(spectrogram)
utils/utils.py:83
↓ 3 callers
Function
build_GRU
Return: GRU module Params: dim_in: input layer dim dim_hidden: hidden layer dim num_layers: number of layers
model/module.py:151
↓ 3 callers
Function
build_env
Copy config.json to the folder Params: config 要保存的字典 config_name 要保存的文件名 path 要保存的文件夹
utils/env.py:26
↓ 3 callers
Function
mean_std
(data)
DNSMOS/other.py:110
↓ 3 callers
Function
wav_path2txt
(root)
prepare_data/utils.py:13
↓ 2 callers
Function
build_MLP
Return MLP and its feature dim of output Params: dim_in: input feature dim dense: list of layer dims activation_type:
model/module.py:36
↓ 2 callers
Function
istft
Func: iSTFT Params: same as stft
dataset/io.py:30
↓ 2 callers
Function
read_yaml
(config_path)
prepare_data/utils.py:6
↓ 2 callers
Function
save_checkpoint
(filepath, obj)
utils/utils.py:78
↓ 2 callers
Function
scan_checkpoint
(cp_dir, prefix="")
utils/utils.py:12
↓ 2 callers
Function
set_optimizer
设置优化器 :params params 优化的目标 config_optim: 配置 :ret optimizer
utils/utils.py:26
↓ 2 callers
Function
set_scheduler
(optim, config_lrscheduler)
utils/utils.py:48
↓ 2 callers
Function
si_sdr
(s, s_hat)
utils/other.py:71
↓ 2 callers
Function
si_sdr
(s, s_hat)
DNSMOS/other.py:71
↓ 2 callers
Function
stft
Func: STFT Params: nfft: nfft hop: hop size win: type of STFT analysis window, str, 'hann' or 'hamming'
dataset/io.py:6
↓ 1 callers
Method
EM
Func: EM algorithm
model/my_EM.py:34
↓ 1 callers
Method
__len__
(self)
dataset/mydataset.py:93
↓ 1 callers
Method
_get_valid_speech_list
( self, spch_filename_list, )
dataset/mydataset.py:66
↓ 1 callers
Method
_get_valid_speech_list
( self, spch_filename_list, )
prepare_data/gen_testset.py:62
↓ 1 callers
Function
activation_func
Return: activation function Params: type: 'relu', 'tanh', or 'leakyrelu'
model/module.py:19
↓ 1 callers
Method
audio_melspec
(self, audio, n_mels=120, frame_size=320, hop_length=160, sr=16000, to_db=True)
DNSMOS/dnsmos_local.py:27
↓ 1 callers
Method
decoder
(self, z)
model/RVAE.py:100
↓ 1 callers
Method
encoder
(self, x)
model/RVAE.py:61
↓ 1 callers
Function
eval_metrics
(a)
eval.py:19
↓ 1 callers
Function
gen_RIR
(room_sz, T60, pos_src, pos_rcv, fs)
prepare_data/gen_rirs.py:12
↓ 1 callers
Method
get_polyfit_val
(self, sig, bak, ovr, is_personalized_MOS)
DNSMOS/dnsmos_local.py:33
↓ 1 callers
Function
inference
(rank, a, c)
enhance.py:35
↓ 1 callers
Method
init_CTF_noi_var
Func: Initialize CTF filter and noise variance Params: Observed_data: observation, shape of [bs, F, T]
model/my_EM.py:84
↓ 1 callers
Function
main
()
eval.py:84
↓ 1 callers
Function
main
()
train_u.py:357
↓ 1 callers
Function
main
()
train_s.py:362
↓ 1 callers
Function
main
()
enhance.py:153
↓ 1 callers
Function
main
(args)
DNSMOS/dnsmos.py:25
↓ 1 callers
Function
main
(args)
DNSMOS/dnsmos_local.py:102
↓ 1 callers
Function
mean_conf_int
(data, confidence=0.95)
utils/other.py:41
↓ 1 callers
Function
mean_conf_int
(data, confidence=0.95)
DNSMOS/other.py:41
↓ 1 callers
Function
reparametrization
Return: sampled latent variables Params: mean: mean of latent variables logvar: log variance of latent variables
model/module.py:171
↓ 1 callers
Function
si_sdr_components
utils/other.py:14
↓ 1 callers
Function
si_sdr_components
DNSMOS/other.py:14
↓ 1 callers
Function
train
(rank, a, c)
train_u.py:49
↓ 1 callers
Function
train
(rank, a, c)
train_s.py:49
Function
EMoutput_woDC2audio_postprocess
Func: From EM output to audio Params: sptm_wo_DC: RVAE-EM output, complex spectrogram others: same as istft
dataset/io.py:99
Method
__call__
(self, fpath, sampling_rate, is_personalized_MOS)
DNSMOS/dnsmos_local.py:49
Method
__getitem__
读取音频
dataset/mydataset.py:97
Method
__getitem__
(self, index)
dataset/testdataset.py:25
Method
__getitem__
读取音频
prepare_data/gen_testset.py:93
Method
__init__
(self, filename="Default.log")
utils/utils.py:163
Method
__init__
(self, *args, **kwargs)
utils/env.py:7
Method
__init__
(self, name, base_dir, metrics)
utils/other.py:49
Method
__init__
Class: dataset for training and validating Params: spch_index_txt: clean speech path saved as .txt rir_index_
dataset/mydataset.py:11
Method
__init__
Class: testset Params: spch_dir: Reverberant speech folder path fs: sample frequency
dataset/testdataset.py:9
Method
__init__
(self, primary_model_path, p808_model_path)
DNSMOS/dnsmos_local.py:23
Method
__init__
(self, name, base_dir, metrics)
DNSMOS/other.py:49
Method
__init__
Class: EM algorithm Params: model: RVAE network EM kparams: parameter dict CTF_len: CTF filte
model/my_EM.py:10
Method
__init__
( self, dim_x: int, dim_z: int, gru_dim_x_enc: int, gru_dim_z_enc: int
model/RVAE.py:13
Method
__init__
Params: config: list of parameters, [[input channel, output channel, kernel size, stride, padding]] norm: use batch n
model/module.py:93
Method
__init__
spch_path: 存放干净语音文件名的txt文件地址 rir_path: 存放RIR文件名的txt文件地址 fs: 采样率Hz spch_len: 音频持续时间s norm_mode: 归一化方式
prepare_data/gen_testset.py:13
Method
__len__
(self)
dataset/testdataset.py:21
Method
__len__
(self)
prepare_data/gen_testset.py:89
Function
add_DC_and_save_wav
( spectrogram_no_DC, phase_no_DC, stft_config, dir_path, filename )
utils/utils.py:97
Function
aud2sptm_woDC
Func: from audio to magnitude spectrogram without DC component Return: magnitude and phase spectrograms Params: audio: audio [bs,
dataset/io.py:45
Function
audio2EMinput_woDC_preprocess
Func: from audio to RVAE-EM input Params: same as aud2sptm_woDC
dataset/io.py:83
Function
count_parameters
(model)
utils/utils.py:93
Method
default
(self, obj)
utils/env.py:47
Function
del_files_from_dir
(filepath)
utils/utils.py:131
Function
energy_ratios
utils/other.py:30
Function
energy_ratios
DNSMOS/other.py:30
Function
ensure_dir
(file_path)
utils/other.py:93
Function
ensure_dir
(file_path)
DNSMOS/other.py:93
Method
flush
(self)
utils/utils.py:171
Method
forward
(self, x)
model/RVAE.py:113
Method
forward
(self, x)
model/module.py:132
Function
get_filelist_from_txt
(filepath)
utils/utils.py:72
Method
get_mean_ci
(self, metric)
utils/other.py:62
Method
get_mean_ci
(self, metric)
DNSMOS/other.py:62
Function
hp_filter
(signal, cut_off=80, order=10, sr=16000)
utils/other.py:65
Function
hp_filter
(signal, cut_off=80, order=10, sr=16000)
DNSMOS/other.py:65
Function
init_weights
Initialize parameters in convolutional and transpose convolutional layers (zero-mean Gaussian) Params: mean: mean std: standa
model/module.py:7
Function
pad_spec
(Y)
utils/other.py:83
Function
pad_spec
(Y)
DNSMOS/other.py:83
Function
print_mean_std
(data, decimal=2)
utils/other.py:116
Function
print_mean_std
(data, decimal=2)
DNSMOS/other.py:116
Function
print_metrics
(x, y, x_hat_list, labels, sr=16000)
utils/other.py:99
Function
print_metrics
(x, y, x_hat_list, labels, sr=16000)
DNSMOS/other.py:99
Function
read_yaml
(config_path)
utils/utils.py:140
Function
snr_dB
(s,n)
utils/other.py:77
Function
snr_dB
(s,n)
DNSMOS/other.py:77
Function
sptm_woDC2aud
Func: from magnitude spectrogram without DC component to audio Return: Audio Params: mag_woDC: magnitude spectrogram phas
dataset/io.py:63
Method
update_CTF
Func: M-step, update CTF filter, shape of [P+1], complex Params: Observed_data: observation in single band [T], complex
model/my_EM.py:143
next →
1–100 of 102, ranked by callers