MCPcopy Create free account

hub / github.com/Audio-WestlakeU/RVAE-EM / functions

Functions102 in github.com/Audio-WestlakeU/RVAE-EM

↓ 18 callersMethodappend
(self, matric, value)
utils/other.py:59
↓ 12 callersFunctionwav_path2txt
Function: save the path of .wavs in the root folder to index.txt Params: root: root folder
utils/utils.py:147
↓ 10 callersMethodappend
(self, matric, value)
DNSMOS/other.py:59
↓ 9 callersFunctiondict_to_namespace
Return: namespace Params: dict
utils/env.py:12
↓ 8 callersMethodwrite
(self, message)
utils/utils.py:167
↓ 6 callersMethodloss_ISD
Return: IS loss Params: output: magnitude spectrogram (>=0), output of RVAE decoder, shape of [bs,T,F] target
model/lossF.py:5
↓ 6 callersMethodloss_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 callersFunctionmean_std
(data)
utils/other.py:110
↓ 5 callersFunctionload_checkpoint
(filepath, device)
utils/utils.py:20
↓ 4 callersFunctionbuild_conv2d
Return: convolutional layer sequence Params: config: list of parameters, [input channel, output channel, kernel size, stride, padding
model/module.py:64
↓ 4 callersMethodcal_KL_scale
Return: the scale of KL loss Params: cur_step: current training step beta: base scale (default: 1)
model/lossF.py:38
↓ 4 callersFunctionplot_spectrogram
(spectrogram)
utils/utils.py:83
↓ 3 callersFunctionbuild_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 callersFunctionbuild_env
Copy config.json to the folder Params: config 要保存的字典 config_name 要保存的文件名 path 要保存的文件夹
utils/env.py:26
↓ 3 callersFunctionmean_std
(data)
DNSMOS/other.py:110
↓ 3 callersFunctionwav_path2txt
(root)
prepare_data/utils.py:13
↓ 2 callersFunctionbuild_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 callersFunctionistft
Func: iSTFT Params: same as stft
dataset/io.py:30
↓ 2 callersFunctionread_yaml
(config_path)
prepare_data/utils.py:6
↓ 2 callersFunctionsave_checkpoint
(filepath, obj)
utils/utils.py:78
↓ 2 callersFunctionscan_checkpoint
(cp_dir, prefix="")
utils/utils.py:12
↓ 2 callersFunctionset_optimizer
设置优化器 :params params 优化的目标 config_optim: 配置 :ret optimizer
utils/utils.py:26
↓ 2 callersFunctionset_scheduler
(optim, config_lrscheduler)
utils/utils.py:48
↓ 2 callersFunctionsi_sdr
(s, s_hat)
utils/other.py:71
↓ 2 callersFunctionsi_sdr
(s, s_hat)
DNSMOS/other.py:71
↓ 2 callersFunctionstft
Func: STFT Params: nfft: nfft hop: hop size win: type of STFT analysis window, str, 'hann' or 'hamming'
dataset/io.py:6
↓ 1 callersMethodEM
Func: EM algorithm
model/my_EM.py:34
↓ 1 callersMethod__len__
(self)
dataset/mydataset.py:93
↓ 1 callersMethod_get_valid_speech_list
( self, spch_filename_list, )
dataset/mydataset.py:66
↓ 1 callersMethod_get_valid_speech_list
( self, spch_filename_list, )
prepare_data/gen_testset.py:62
↓ 1 callersFunctionactivation_func
Return: activation function Params: type: 'relu', 'tanh', or 'leakyrelu'
model/module.py:19
↓ 1 callersMethodaudio_melspec
(self, audio, n_mels=120, frame_size=320, hop_length=160, sr=16000, to_db=True)
DNSMOS/dnsmos_local.py:27
↓ 1 callersMethoddecoder
(self, z)
model/RVAE.py:100
↓ 1 callersMethodencoder
(self, x)
model/RVAE.py:61
↓ 1 callersFunctioneval_metrics
(a)
eval.py:19
↓ 1 callersFunctiongen_RIR
(room_sz, T60, pos_src, pos_rcv, fs)
prepare_data/gen_rirs.py:12
↓ 1 callersMethodget_polyfit_val
(self, sig, bak, ovr, is_personalized_MOS)
DNSMOS/dnsmos_local.py:33
↓ 1 callersFunctioninference
(rank, a, c)
enhance.py:35
↓ 1 callersMethodinit_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 callersFunctionmain
()
eval.py:84
↓ 1 callersFunctionmain
()
train_u.py:357
↓ 1 callersFunctionmain
()
train_s.py:362
↓ 1 callersFunctionmain
()
enhance.py:153
↓ 1 callersFunctionmain
(args)
DNSMOS/dnsmos.py:25
↓ 1 callersFunctionmain
(args)
DNSMOS/dnsmos_local.py:102
↓ 1 callersFunctionmean_conf_int
(data, confidence=0.95)
utils/other.py:41
↓ 1 callersFunctionmean_conf_int
(data, confidence=0.95)
DNSMOS/other.py:41
↓ 1 callersFunctionreparametrization
Return: sampled latent variables Params: mean: mean of latent variables logvar: log variance of latent variables
model/module.py:171
↓ 1 callersFunctionsi_sdr_components
utils/other.py:14
↓ 1 callersFunctionsi_sdr_components
DNSMOS/other.py:14
↓ 1 callersFunctiontrain
(rank, a, c)
train_u.py:49
↓ 1 callersFunctiontrain
(rank, a, c)
train_s.py:49
FunctionEMoutput_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
Functionadd_DC_and_save_wav
( spectrogram_no_DC, phase_no_DC, stft_config, dir_path, filename )
utils/utils.py:97
Functionaud2sptm_woDC
Func: from audio to magnitude spectrogram without DC component Return: magnitude and phase spectrograms Params: audio: audio [bs,
dataset/io.py:45
Functionaudio2EMinput_woDC_preprocess
Func: from audio to RVAE-EM input Params: same as aud2sptm_woDC
dataset/io.py:83
Functioncount_parameters
(model)
utils/utils.py:93
Methoddefault
(self, obj)
utils/env.py:47
Functiondel_files_from_dir
(filepath)
utils/utils.py:131
Functionenergy_ratios
utils/other.py:30
Functionenergy_ratios
DNSMOS/other.py:30
Functionensure_dir
(file_path)
utils/other.py:93
Functionensure_dir
(file_path)
DNSMOS/other.py:93
Methodflush
(self)
utils/utils.py:171
Methodforward
(self, x)
model/RVAE.py:113
Methodforward
(self, x)
model/module.py:132
Functionget_filelist_from_txt
(filepath)
utils/utils.py:72
Methodget_mean_ci
(self, metric)
utils/other.py:62
Methodget_mean_ci
(self, metric)
DNSMOS/other.py:62
Functionhp_filter
(signal, cut_off=80, order=10, sr=16000)
utils/other.py:65
Functionhp_filter
(signal, cut_off=80, order=10, sr=16000)
DNSMOS/other.py:65
Functioninit_weights
Initialize parameters in convolutional and transpose convolutional layers (zero-mean Gaussian) Params: mean: mean std: standa
model/module.py:7
Functionpad_spec
(Y)
utils/other.py:83
Functionpad_spec
(Y)
DNSMOS/other.py:83
Functionprint_mean_std
(data, decimal=2)
utils/other.py:116
Functionprint_mean_std
(data, decimal=2)
DNSMOS/other.py:116
Functionprint_metrics
(x, y, x_hat_list, labels, sr=16000)
utils/other.py:99
Functionprint_metrics
(x, y, x_hat_list, labels, sr=16000)
DNSMOS/other.py:99
Functionread_yaml
(config_path)
utils/utils.py:140
Functionsnr_dB
(s,n)
utils/other.py:77
Functionsnr_dB
(s,n)
DNSMOS/other.py:77
Functionsptm_woDC2aud
Func: from magnitude spectrogram without DC component to audio Return: Audio Params: mag_woDC: magnitude spectrogram phas
dataset/io.py:63
Methodupdate_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