MCPcopy Index your code

hub / github.com/ZFTurbo/Music-Source-Separation-Training / functions

Functions993 in github.com/ZFTurbo/Music-Source-Separation-Training

↓ 30 callersMethodget_band_specs_with_bandwidth
( self, start_index, end_index, bandwidth_hz )
models/bandit/core/model/bsrnn/utils.py:73
↓ 30 callersMethodget_band_specs_with_bandwidth
(self, start_index, end_index, bandwidth_hz)
models/bandit_v2/utils.py:72
↓ 22 callersMethodupdate
(self, *args, **kwargs)
models/bandit/core/metrics/snr.py:14
↓ 15 callersFunctionprefer_target_instrument
Return the list of target instruments based on the configuration. If a specific target instrument is specified in the configuration,
utils/model_utils.py:474
↓ 12 callersMethod__init__
(self, dim)
models/scnet/scnet_tran.py:47
↓ 12 callersFunctionnorm
(c, norm_type)
models/mdx23c_tfc_tdf_v3.py:47
↓ 11 callersMethod__init__
(self, nfft: int, fs: int)
models/bandit/core/model/bsrnn/utils.py:45
↓ 11 callersMethod__init__
(self, dim)
models/bs_roformer/mel_band_conformer.py:58
↓ 11 callersMethod__init__
(self, dim)
models/bs_roformer/bs_conformer.py:56
↓ 11 callersMethodget_band_specs
(self)
models/bandit/core/model/bsrnn/utils.py:92
↓ 11 callersMethodload_state_dict
( self, state_dict: Mapping[str, Any], strict: bool = False )
models/bandit/core/__init__.py:712
↓ 10 callersMethod__init__
(self, **kwargs)
models/bandit/core/model/bsrnn/wrapper.py:132
↓ 9 callersMethodadd_browse_control
(self, panel, sizer, label, is_folder=False, is_config=False, is_checkpoint=False)
gui/gui-wx.py:348
↓ 9 callersFunctionload_chunk
Returns array with shape (target_channels, chunk_size)
utils/dataset.py:142
↓ 8 callersMethod__init__
(self)
models/bandit/core/model/bsrnn/core.py:21
↓ 8 callersMethod__init__
(self, dim)
models/bs_mamba2_code/bs_mamba2.py:58
↓ 8 callersFunctionget_model_from_config
Load and instantiate a model using a configuration file. Given a `model_type` and a path to a configuration, this function loads the con
utils/settings.py:281
↓ 8 callersMethodhertz_to_index
(self, hz: float, round: bool = True)
models/bandit/core/model/bsrnn/utils.py:65
↓ 8 callersMethodhertz_to_index
(self, hz: float, round: bool = True)
models/bandit_v2/utils.py:64
↓ 7 callersMethod__init__
(self, nfft: int, fs: int)
models/bandit_v2/utils.py:44
↓ 7 callersMethod__init__
(self, dim)
models/bs_roformer/bs_roformer.py:53
↓ 7 callersMethod__init__
(self, dim)
models/bs_roformer/mel_band_roformer.py:61
↓ 7 callersMethod__init__
(self, dim)
models/bs_roformer/mel_band_roformer_experimental.py:55
↓ 7 callersMethod__init__
(self, dim)
models/bs_roformer/bs_roformer_experimental.py:46
↓ 6 callersMethod__init__
(self, d_model: int, # model dimension (D) n_layer: int = 24, # number of Mamba-2 layers in
models/ex_bi_mamba2.py:25
↓ 6 callersMethod__init__
( self, emb_dim: int, rnn_dim: int, bidirectional: bool = True
models/bandit/core/model/bsrnn/tfmodel.py:17
↓ 6 callersMethod__init__
(self, in_channel, kernel=7, causal=False)
models/look2hear/models/apollo.py:188
↓ 6 callersFunctioncombine_audio_files
Combines multiple audio files into one by overlaying them. Parameters: - files (List[str]): List of file paths to be combined. Return
scripts/moises_to_musdb.py:12
↓ 6 callersMethodcreate_styled_button
(self, parent, label, handler)
gui/gui-wx.py:186
↓ 6 callersFunctiondefault
(v, d)
models/bs_roformer/mel_band_roformer_experimental.py:30
↓ 6 callersFunctiondefault
(v, d)
models/bs_roformer/bs_roformer_experimental.py:27
↓ 6 callersFunctiondemix
Perform audio source separation with a given model. Supports both Demucs-specific and generic processing modes, including overlapping ch
utils/model_utils.py:70
↓ 6 callersFunctionnorm
(c, norm_type)
models/upernet_swin_transformers.py:54
↓ 6 callersFunctionnorm
(c, norm_type)
models/mdx23c_tfc_tdf_v3_with_STHT.py:99
↓ 6 callersFunctionvalid_multi_gpu
Validate a separator model across multiple GPUs with a unified API. Runs validation either in Distributed Data Parallel (DDP) mode—detect
valid.py:696
↓ 5 callersMethod__init__
(self, **kwargs)
models/bandit/core/metrics/snr.py:11
↓ 5 callersMethod__init__
( self, feat_dim: int = 64, hidden_dim: int = 128, num_blocks: int = 6,
models/bandit/core/metrics/_squim.py:113
↓ 5 callersMethod__init__
( self, emb_dim: int, mlp_dim: int, bandwidth: int,
models/bandit/core/model/bsrnn/maskestim.py:48
↓ 5 callersMethod__init__
(self, sources=['drums', 'bass', 'other', 'vocals'], audio_channels=2,
models/scnet/scnet.py:253
↓ 5 callersMethod__init__
(self, sources=['drums', 'bass', 'other', 'vocals'], audio_channels=2,
models/scnet/scnet_masked.py:253
↓ 5 callersFunctionexists
(val)
models/bs_roformer/mel_band_roformer_experimental.py:26
↓ 5 callersFunctionexists
(val)
models/bs_roformer/bs_roformer_experimental.py:23
↓ 5 callersMethodget_freq_weights
(self)
models/bandit/core/model/bsrnn/utils.py:334
↓ 5 callersFunctionload_start_checkpoint
Load an initial checkpoint into `model`. For `type_ == "train"`, performs a tolerant load using `old_model` (a state dict or a checkpoin
utils/model_utils.py:611
↓ 5 callersMethodlog_dict_with_prefix
( self, dict_: Dict[str, torch.Tensor], prefix: str, batch_siz
models/bandit/core/__init__.py:731
↓ 5 callersMethodstep
(self, closure: Closure = None)
utils/muon.py:154
↓ 4 callersMethod__init__
(self)
gui/gui-wx.py:116
↓ 4 callersMethod__init__
(self, config)
models/upernet_swin_transformers.py:8
↓ 4 callersMethod__init__
(self, config)
models/mdx23c_tfc_tdf_v3.py:7
↓ 4 callersMethod__init__
(self, input_size, hidden_size)
models/ts_bs_mamba2.py:48
↓ 4 callersMethod__init__
( self, data_root: str, split: str, stems: Optional[List[str]]
models/bandit/core/data/dnr/dataset.py:89
↓ 4 callersMethod__init__
( self, emb_dim: int, mlp_dim: int, bandwidth: int, in_channels: Optio
models/bandit_v2/maskestim.py:46
↓ 4 callersMethod__init__
(self, dim)
models/scnet_unofficial/modules/dualpath_rnn.py:6
↓ 4 callersFunctionapply_tta
Enhance source separation results using Test-Time Augmentation (TTA). Applies augmentations such as channel reversal and polarity inversion
utils/model_utils.py:384
↓ 4 callersMethodaugm_data
(self, source, instr)
utils/dataset.py:1058
↓ 4 callersFunctionexists
(val)
models/bs_roformer/bs_roformer.py:30
↓ 4 callersFunctionexists
(val)
models/bs_roformer/mel_band_roformer.py:32
↓ 4 callersFunctionget_adjusted_lr
r"""Get the adjust learning rate.
utils/muon.py:15
↓ 4 callersFunctionget_band_specs
(band_specs, n_fft, fs, n_bands=None)
models/bandit/core/model/bsrnn/wrapper.py:25
↓ 4 callersFunctionistft
(spec, hl, length)
ensemble.py:20
↓ 4 callersFunctionlogging
Print a log message and optionally append it to an in-memory list. In Distributed Data Parallel (DDP) contexts, the message is printed only
utils/settings.py:414
↓ 3 callersMethod__init__
( self, params: Parameters, lr: float = 2e-2, momentum: float = 0.95,
utils/muon.py:80
↓ 3 callersMethod__init__
(self, dim)
models/mel_band_conformer.py:24
↓ 3 callersMethod__init__
(self, in_c, out_c, scale, norm, act)
models/mdx23c_tfc_tdf_v3_with_STHT.py:126
↓ 3 callersMethod__init__
( self, data_root: str, split: str, target_stem: str,
models/bandit/core/data/musdb/dataset.py:126
↓ 3 callersMethod__init__
( self, time_weight: float = 1.0, freq_weight: float = 1.0, tk
models/bandit/core/loss/_timefreq.py:44
↓ 3 callersMethod__init__
(self, dim0: int, dim1: int)
models/bandit_v2/tfmodel.py:68
↓ 3 callersMethod__init__
Initializes SDLayer with subband interval, input dimension, output dimension, downsample stride, number of convolutional modules, ker
models/scnet_unofficial/modules/sd_encoder.py:162
↓ 3 callersMethod__init__
Initializes SULayer with input dimension, output dimension, upsample stride, subband shape, and subband interval.
models/scnet_unofficial/modules/su_decoder.py:136
↓ 3 callersFunction_create_branch
Create branch module after DPRNN model for predicting metric score. Args: d_model (int): The number of expected features in the input.
models/bandit/core/metrics/_squim.py:249
↓ 3 callersMethod_ispec
(self, z, length=None, scale=0)
models/demucs4ht.py:449
↓ 3 callersMethod_precompute_and_cache_chunks
Precompute all chunks and save to cache with config
utils/dataset.py:577
↓ 3 callersMethodattach_fader
(self, force_reattach=False)
models/bandit/core/__init__.py:725
↓ 3 callersFunctioncheck_no_gap
(band_specs)
models/bandit/core/model/bsrnn/utils.py:33
↓ 3 callersFunctioncheck_no_gap
(band_specs)
models/bandit_v2/utils.py:32
↓ 3 callersFunctioncheck_nonzero_bandwidth
(band_specs)
models/bandit/core/model/bsrnn/utils.py:19
↓ 3 callersFunctioncheck_nonzero_bandwidth
(band_specs)
models/bandit_v2/utils.py:18
↓ 3 callersFunctioncompute_metric_avg
Compute average metrics across instruments (DDP-aware) and optionally log to file. For each metric, computes the mean value per instrumen
valid.py:386
↓ 3 callersMethodcompute_metrics
(self, mode: str="dev")
models/bandit/core/__init__.py:284
↓ 3 callersFunctioncreate_intervals
Create intervals based on splits provided. Args: - splits (List[Union[float, int]]): List of floats or integers representing splits.
models/scnet_unofficial/utils.py:12
↓ 3 callersFunctionexists
(val)
models/bs_roformer/mel_band_conformer.py:25
↓ 3 callersFunctionexists
(val)
models/bs_roformer/bs_conformer.py:23
↓ 3 callersFunctionexists
(val)
models/bs_mamba2_code/bs_mamba2.py:41
↓ 3 callersMethodget_audio
(self, identifier: Dict[str, Any])
models/bandit/core/data/base.py:49
↓ 3 callersMethodget_band_specs
(self)
models/bandit_v2/utils.py:86
↓ 3 callersMethodget_identifier
(self, index)
models/bandit/core/data/dnr/dataset.py:78
↓ 3 callersMethodinstantiate_bandsplit
(self, in_channel: int, band_specs: List[Tuple[fl
models/bandit/core/model/bsrnn/core.py:140
↓ 3 callersMethodinstantiate_mask_estim
(self, in_channel: int, stems: List[str],
models/bandit/core/model/bsrnn/core.py:59
↓ 3 callersFunctionload_config
Load a model configuration from a file. Based on `model_type`, returns either an OmegaConf (e.g., for 'htdemucs') or a YAML-parsed Confi
utils/settings.py:249
↓ 3 callersFunctionmanual_seed
Initialize random seeds for reproducibility. Sets the seed across Python's `random`, NumPy, and PyTorch (CPU and CUDA) libraries, and up
utils/settings.py:460
↓ 3 callersMethodmask
(self, x, m)
models/bandit/core/model/bsrnn/core.py:495
↓ 3 callersMethodpredtest_step
( self, batch: BatchedDataDict, batch_idx: int = -1, dataloade
models/bandit/core/__init__.py:435
↓ 3 callersMethodprepare
(self, audio)
models/bandit/core/utils/audio.py:176
↓ 3 callersFunctionprocess_audio_files
Run source separation on a list of mixtures and collect evaluation metrics. Performs optional resampling and normalization, demixes each
valid.py:184
↓ 3 callersFunctionread_audio_transposed
Read an audio file and return transposed waveform data with channels first. Loads the audio file from `path`, converts mono signals to 2D fo
utils/audio_utils.py:11
↓ 3 callersMethodread_from_metadata_cache
(self, track_paths, instr=None)
utils/dataset.py:727
↓ 3 callersFunctionredact_config
(args)
scripts/redact_config.py:108
↓ 3 callersMethodreset_metrics
(self, test_mode: bool = False)
models/bandit/core/__init__.py:304
↓ 3 callersMethodreshape_output
(self, mb)
models/bandit/core/model/bsrnn/maskestim.py:78
↓ 3 callersMethodsave_settings
(self)
gui/gui-wx.py:496
next →1–100 of 993, ranked by callers