Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZFTurbo/Music-Source-Separation-Training
/ functions
Functions
993 in github.com/ZFTurbo/Music-Source-Separation-Training
⨍
Functions
993
◇
Types & classes
292
↓ 1 callers
Method
get_stem
(self, *, stem: str, identifier)
models/bandit/core/data/musdb/dataset.py:37
↓ 1 callers
Function
get_track_set_length
(params)
utils/dataset.py:184
↓ 1 callers
Method
init_group
(self, group: ParamGroup, **kwargs)
utils/muon.py:132
↓ 1 callers
Method
init_group
(self, group: ParamGroup, **kwargs)
utils/muon.py:326
↓ 1 callers
Method
init_group
(self, group: ParamGroup, **kwargs)
utils/muon.py:523
↓ 1 callers
Method
init_group
(self, group: ParamGroup, **kwargs)
utils/muon.py:721
↓ 1 callers
Function
initialize_device
Initialize device based on the provided arguments. Args: args (argparse.Namespace): Parsed arguments. Returns: str: Dev
scripts/stream.py:65
↓ 1 callers
Function
initialize_environment
Initialize runtime environment settings. Sets random seeds for reproducibility, adjusts PyTorch cuDNN behavior, configures multiprocessi
utils/settings.py:485
↓ 1 callers
Function
initialize_model_and_device
Move a model to the correct computation device and wrap with DataParallel if needed. Selects GPU(s) if CUDA is available; otherwise defaults
utils/model_utils.py:223
↓ 1 callers
Method
inject_custom_css
(self)
gui/gui-wx.py:609
↓ 1 callers
Method
instantiate_bandsplit
( self, in_channels: int, band_type: str = "musical", n_bands: int = 64,
models/bandit_v2/bandit.py:131
↓ 1 callers
Method
instantiate_mask_estim
( self, in_channels: int, stems: List[str], emb_dim: int, mlp_dim: int
models/bandit_v2/bandit.py:316
↓ 1 callers
Method
instantiate_tf_modelling
( self, n_sqm_modules: int = 12, emb_dim: int = 128, rnn_dim: int = 256,
models/bandit_v2/bandit.py:160
↓ 1 callers
Method
instantitate_spectral
( self, n_fft: int = 2048, win_length: Optional[int] = 2048, hop_length: int =
models/bandit_v2/bandit.py:87
↓ 1 callers
Method
inverse
(self, x)
models/upernet_swin_transformers.py:32
↓ 1 callers
Method
inverse
(self, x)
models/mdx23c_tfc_tdf_v3.py:31
↓ 1 callers
Method
inverse
(self, x)
models/torchseg_models.py:31
↓ 1 callers
Method
inverse
(self, x)
models/segm_models.py:31
↓ 1 callers
Function
k_sdr
Normalize SDR value using bounded logarithmic scaling.
utils/metrics.py:37
↓ 1 callers
Function
l1_snr_db_loss
L1-SNR loss with dB-scale level regularization. Extends L1-SNR with adaptive level-matching regularization in dB scale. From torch-l1-sn
utils/losses.py:210
↓ 1 callers
Function
l1_snr_loss
L1-SNR loss in time domain. L1-based signal-to-noise ratio loss (without additional regularization). From torch-l1-snr package. Arg
utils/losses.py:191
↓ 1 callers
Function
lambda_max
(arr, axis=None, key=None, keepdims=False)
ensemble.py:47
↓ 1 callers
Method
load_class_balanced_aligned
1) Randomly choose instrument (class) 2) Randomly choose track containing this instrument 3) Load aligned chunk from this tra
utils/dataset.py:454
↓ 1 callers
Function
load_lora_weights
Load LoRA weights into a model. This function updates the given model with LoRA-specific weights from the specified checkpoint file. It d
utils/model_utils.py:567
↓ 1 callers
Function
load_model
Load the model and configuration from the given arguments. Args: args (argparse.Namespace): Parsed arguments. device (str):
scripts/stream.py:83
↓ 1 callers
Method
load_random_mix
(self)
utils/dataset.py:920
↓ 1 callers
Method
load_settings
(self)
gui/gui-wx.py:517
↓ 1 callers
Function
log_model_info
Log comprehensive model information
utils/model_utils.py:730
↓ 1 callers
Function
main
()
scripts/watch_all_metrics.py:16
↓ 1 callers
Function
main
(args: Optional[argparse.Namespace] = None)
scripts/moises_to_musdb.py:300
↓ 1 callers
Function
main
()
scripts/print_list_of_model_layers.py:20
↓ 1 callers
Method
mask
(self, x, m)
models/bandit_v2/bandit.py:188
↓ 1 callers
Method
merging
(self, x: torch.Tensor, rest: int)
models/bandit/core/metrics/_squim.py:163
↓ 1 callers
Function
modify_configs
Updates configuration files in the `configs` directory for use with test data. This function processes configuration files defined in the gl
tests/admin_test.py:103
↓ 1 callers
Function
multi_l1_snr_db_loss
Combined time + STFT domain L1-SNR loss. Balances time-domain and spectral-domain L1-SNR with optional regularization. This is the recom
utils/losses.py:248
↓ 1 callers
Function
multi_loss
(y_pred: Any, y_true: Any, x: Optional[Any] = None)
utils/losses.py:390
↓ 1 callers
Function
multistft_loss
Compute a (multi-resolution) STFT-based loss on waveforms. Reshapes inputs to (B, C*T, L) when needed and delegates to a provided multi-
utils/losses.py:12
↓ 1 callers
Function
normalize_batch
Apply mean-variance normalization to a pair of tensors. Computes the mean and standard deviation from `x` and normalizes both `x` and `y
utils/model_utils.py:360
↓ 1 callers
Function
once
(fn)
models/bs_roformer/attend.py:24
↓ 1 callers
Function
once
(fn)
models/bs_mamba2_code/attend_mamba.py:28
↓ 1 callers
Function
open_store_folder
(folder_path)
gui/gui-wx.py:41
↓ 1 callers
Function
output_to_speakers
Stream the output audio to the speakers. Args: waveforms_orig (Dict[str, np.ndarray]): Dictionary containing the separat
scripts/stream.py:270
↓ 1 callers
Function
pack_one
(t, pattern)
models/bs_roformer/bs_roformer.py:38
↓ 1 callers
Function
pack_one
(t, pattern)
models/bs_roformer/mel_band_conformer.py:33
↓ 1 callers
Function
pack_one
(t, pattern)
models/bs_roformer/mel_band_roformer.py:40
↓ 1 callers
Function
pack_one
(t, pattern)
models/bs_roformer/bs_conformer.py:31
↓ 1 callers
Function
pack_one
(t, pattern)
models/bs_roformer/mel_band_roformer_experimental.py:34
↓ 1 callers
Function
pack_one
(t, pattern)
models/bs_roformer/bs_roformer_experimental.py:31
↓ 1 callers
Function
pack_one
(t, pattern)
models/scnet_unofficial/scnet.py:31
↓ 1 callers
Function
pack_one
(t, pattern)
models/bs_mamba2_code/bs_mamba2.py:49
↓ 1 callers
Method
pad_chunk
(self, x: torch.Tensor)
models/bandit/core/metrics/_squim.py:143
↓ 1 callers
Function
parse_args
Parse command-line arguments for configuring the model, dataset, and training parameters. Args: dict_args: Dict of command-line argu
scripts/redact_config.py:74
↓ 1 callers
Function
parse_args
()
scripts/watch_all_metrics.py:9
↓ 1 callers
Function
parse_args
Parse command-line arguments. Args: dict_args (Union[Dict[str, Any], None]): Optional dictionary of arguments
scripts/stream.py:28
↓ 1 callers
Function
parse_args
Parse command-line arguments for configuring the model, dataset, and training parameters. Args: dict_args: Dict of command-line argu
scripts/moises_to_musdb.py:265
↓ 1 callers
Function
parse_args
Parse command-line arguments for configuring the model, dataset, and training parameters. Args: dict_args: Dict of command-line argu
scripts/valid_to_inference.py:7
↓ 1 callers
Function
parse_args
()
scripts/print_list_of_model_layers.py:9
↓ 1 callers
Function
parse_args
Parse command-line arguments for configuring the model, dataset, and training parameters. Args: dict_args: Dict of command-line argu
scripts/trim.py:10
↓ 1 callers
Function
parse_args
(dict_args)
tests/test.py:30
↓ 1 callers
Function
parse_args_inference
Parse command-line arguments for inference configuration. Builds the CLI for model selection, configuration path, input/output handling,
utils/settings.py:182
↓ 1 callers
Function
parse_loss
(name: str, kwargs: Dict[str, Any])
models/bandit/core/loss/_multistem.py:11
↓ 1 callers
Function
parse_loss_config
(config: ConfigDict)
models/bandit/core/__init__.py:125
↓ 1 callers
Function
parse_model_config
(config: ConfigDict)
models/bandit/core/__init__.py:103
↓ 1 callers
Function
parse_optimizer_config
( config: OptimizerSchedulerConfigDict, parameters: Iterator[nn.Parameter] )
models/bandit/core/__init__.py:73
↓ 1 callers
Function
plot_waveform_basic
(waveform, samplerate, output_path=None, theme='dark')
utils/audio_utils.py:350
↓ 1 callers
Function
pretty_metrics
( all_time_all_metrics: Dict[str, Any], *, precision: int = 4,
scripts/watch_all_metrics.py:34
↓ 1 callers
Function
process_audio
Process the recorded audio using the model and save the output. Args: audio_data (bytes): The recorded audio data.
scripts/stream.py:202
↓ 1 callers
Function
process_folder
Processes a folder containing audio tracks, copying and combining necessary files into the target structure. Parameters: - src_folder (st
scripts/moises_to_musdb.py:60
↓ 1 callers
Function
record_and_process_audio
Continuously record audio from the input stream, process it using the model, and stream the output to the speakers in real-time.
scripts/stream.py:280
↓ 1 callers
Function
record_audio
Record audio from the input stream until the user presses 'S' to stop. Args: stream_input (pyaudio.Stream): The input au
scripts/stream.py:164
↓ 1 callers
Method
reshape_output
(self, mb)
models/bandit_v2/maskestim.py:81
↓ 1 callers
Function
run_folder
Process a folder of audio files for source separation. Parameters: ---------- model : torch.nn.Module Pre-trained model for
inference.py:29
↓ 1 callers
Function
run_parallel_validation
Run parallel validation using multiple processes. Each process handles a subset of the mixture files and computes the metrics. The results
valid.py:591
↓ 1 callers
Function
run_tests
Executes validation tests for all configurations. This function updates configurations, generates random dummy data for testing, and run
tests/admin_test.py:131
↓ 1 callers
Function
save_config
Save a configuration object (ConfigDict or OmegaConf) to a file. Parameters: ---------- config : Union[ConfigDict, OmegaConf]
scripts/redact_config.py:10
↓ 1 callers
Function
save_last_weights
Save the latest training checkpoint for continuation or recovery. The checkpoint is always written to: {args.results_path}/last_{arg
utils/model_utils.py:865
↓ 1 callers
Method
separate
(self, batch)
models/bandit_v2/bandit.py:235
↓ 1 callers
Function
setup_ddp
Initialize a Distributed Data Parallel (DDP) process group. Configures environment variables for the DDP master node, attempts to initia
utils/settings.py:605
↓ 1 callers
Function
si_sdr
Compute Scale-Invariant Signal-to-Distortion Ratio (SI-SDR) for one or more audio tracks. SI-SDR is a variant of the SDR metric that is inva
utils/metrics.py:43
↓ 1 callers
Method
spec_band_split
(self, input)
models/look2hear/models/apollo.py:268
↓ 1 callers
Function
spec_masked_loss
Quantile-masked MSE in the complex STFT domain. Computes a complex STFT for prediction and target, forms an elementwise MSE in the spect
utils/losses.py:128
↓ 1 callers
Function
spec_rmse_loss
RMSE in the complex STFT domain. Computes STFT for prediction and target, represents complex values as real+imag pairs, and applies RMSE
utils/losses.py:83
↓ 1 callers
Function
squim_objective_base
Build :class:`torchaudio.prototype.models.SquimObjective` model with default arguments.
models/bandit/core/metrics/_squim.py:319
↓ 1 callers
Function
squim_objective_model
Build a custome :class:`torchaudio.prototype.models.SquimObjective` model. Args: feat_dim (int, optional): The feature dimension after En
models/bandit/core/metrics/_squim.py:281
↓ 1 callers
Method
ssd
(self, x, A, B, C)
models/ex_bi_mamba2.py:108
↓ 1 callers
Function
stft
(wave, nfft, hl)
ensemble.py:11
↓ 1 callers
Function
stft_l1_snr_db_loss
L1-SNR loss in multi-resolution STFT domain. Applies L1-SNR to complex STFT (real/imaginary) across multiple resolutions. From torch-l1-
utils/losses.py:229
↓ 1 callers
Function
train_model
(args)
train_accelerate.py:91
↓ 1 callers
Function
train_model_ddp
(args=None)
train_ddp.py:30
↓ 1 callers
Function
train_one_epoch
Train the model for one epoch. Args: world_size: scheduler: model: The model to train. config: Configuration
train.py:42
↓ 1 callers
Method
transform
(self, *, signal: torch.Tensor)
models/mdx23c_tfc_tdf_v3_with_STHT.py:27
↓ 1 callers
Function
transform_wb_pesq_range
The metric defined by ITU-T P.862 is often called 'PESQ score', which is defined for narrow-band signals and has a value range of [-0.5, 4.5] exac
models/bandit/core/metrics/_squim.py:13
↓ 1 callers
Function
trim_wav
(input_file: str, output_file: str, start_sec: float, end_sec: float, codec: str)
scripts/trim.py:46
↓ 1 callers
Function
type_1_main
Main function for type 1 script, which records audio, processes it, and saves the output. Args: args (argparse.Namespace): Parsed ar
scripts/stream.py:152
↓ 1 callers
Function
type_2_main
Main function for type 2 script, which continuously records audio, processes it, and streams the output in real-time. Args: args
scripts/stream.py:241
↓ 1 callers
Function
unfold
( padded_audio: torch.Tensor, original_batch_size: int, n_channel: int, chunk_
models/bandit/core/utils/audio.py:33
↓ 1 callers
Function
unpack_one
(t, ps, pattern)
models/bs_roformer/bs_roformer.py:42
↓ 1 callers
Function
unpack_one
(t, ps, pattern)
models/bs_roformer/mel_band_conformer.py:37
↓ 1 callers
Function
unpack_one
(t, ps, pattern)
models/bs_roformer/mel_band_roformer.py:44
↓ 1 callers
Function
unpack_one
(t, ps, pattern)
models/bs_roformer/bs_conformer.py:35
← previous
next →
301–400 of 993, ranked by callers