MCPcopy Create free account

hub / github.com/Audio-AGI/AudioSep / functions

Functions370 in github.com/Audio-AGI/AudioSep

↓ 82 callersMethodappend
(self, steps, statistics, split, flush=True)
utils.py:214
↓ 28 callersFunctionis_master
(args, local=False)
models/CLAP/training/distributed.py:20
↓ 16 callersMethodupdate
(self, val, n=1)
models/CLAP/training/train.py:34
↓ 13 callersFunctioncalculate_sdr
r"""Calculate SDR between reference and estimation. Args: ref (np.ndarray), reference signal est (np.ndarray), estimated signal
utils.py:148
↓ 11 callersFunctioninit_layer
Initialize a Linear or Convolutional layer.
models/CLAP/open_clip/pann_model.py:18
↓ 8 callersMethodget_query_embed
(self, modality, audio=None, text=None, use_text_ratio=0.5, device=None)
models/clap_encoder.py:93
↓ 8 callersFunctiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
models/CLAP/open_clip/tokenizer.py:167
↓ 7 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
models/CLAP/open_clip/htsat.py:207
↓ 7 callersMethod__init__
( self, embed_dim: int, audio_cfg: CLAPAudioCfp, text_cfg: CLAPTextCfg,
models/CLAP/open_clip/model.py:423
↓ 7 callersFunctioncalculate_sisdr
r"""Calculate SDR between reference and estimation. Args: ref (np.ndarray), reference signal est (np.ndarray), estimated signal
utils.py:172
↓ 7 callersFunctionget_optimizer
(params, lr, betas, eps, momentum, optimizer_name)
models/CLAP/open_clip/utils.py:352
↓ 7 callersFunctioninit_bn
Initialize a Batchnorm layer.
models/CLAP/open_clip/pann_model.py:27
↓ 7 callersFunctioninit_layer
Initialize a Linear or Convolutional layer.
models/base.py:9
↓ 7 callersMethodupdate
(self, val, n=1)
models/CLAP/training/lp_train.py:35
↓ 6 callersFunctioncosine_lr
(optimizer, base_lr, warmup_length, steps)
models/CLAP/training/scheduler.py:13
↓ 6 callersFunctioncreate_model
( amodel_name: str, tmodel_name: str, pretrained: str = "", precision: str = "fp32", devic
models/CLAP/open_clip/factory.py:70
↓ 6 callersFunctiondo_mixup
Args: x: (batch_size , ...) mixup_lambda: (batch_size,) Returns: out: (batch_size, ...)
models/CLAP/open_clip/utils.py:171
↓ 6 callersMethodencode_audio
(self, audio, device)
models/CLAP/open_clip/model.py:616
↓ 5 callersMethod__init__
(self, film_meta, condition_size)
models/resunet.py:11
↓ 5 callersMethod__init__
( self, sample_rate, window_size, hop_size, mel_bins, fmin,
models/CLAP/open_clip/pann_model.py:430
↓ 5 callersMethodencode_text
(self, text, device)
models/CLAP/open_clip/model.py:631
↓ 5 callersFunctioninterpolate
Interpolate data in time domain. This is used to compensate the resolution reduction in downsampling of a CNN. Args: x: (batch_size, ti
models/CLAP/open_clip/utils.py:186
↓ 5 callersFunctionparse_yaml
r"""Parse yaml file. Args: config_yaml (str): config yaml path Returns: yaml_dict (Dict): parsed yaml file
utils.py:61
↓ 5 callersFunctiontokenizer
(text)
models/CLAP/training/data.py:46
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
models/CLAP/open_clip/model.py:192
↓ 4 callersFunction_ntuple
(n)
models/CLAP/open_clip/htsat.py:30
↓ 4 callersMethoddecode
(self, tokens)
models/CLAP/open_clip/tokenizer.py:154
↓ 4 callersFunctiongather_features
( audio_features, text_features, audio_features_mlp=None, text_features_mlp=None, local_lo
models/CLAP/open_clip/loss.py:15
↓ 4 callersFunctioninit_bn
Initialize a Batchnorm layer.
models/base.py:18
↓ 4 callersFunctionis_pretrained_params
(n)
models/CLAP/training/lp_main.py:120
↓ 4 callersFunctionis_pretrained_params
(n)
models/CLAP/training/main.py:114
↓ 4 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
models/CLAP/open_clip/htsat.py:270
↓ 4 callersFunctionworld_info_from_env
()
models/CLAP/training/distributed.py:45
↓ 3 callersFunctionevaluate
(model, data, epoch, args, tb_writer=None)
models/CLAP/training/train.py:267
↓ 3 callersFunctionevaluate
(model, data, epoch, args, tb_writer=None, extra_suffix="")
models/CLAP/training/lp_train.py:209
↓ 3 callersFunctionfreeze_batch_norm_2d
Converts all `BatchNorm2d` and `SyncBatchNorm` layers of provided module into `FrozenBatchNorm2d`. If `module` is itself an instance of eithe
models/CLAP/open_clip/utils.py:42
↓ 3 callersMethodgenerate_queue
(self)
models/CLAP/training/data.py:120
↓ 3 callersFunctionget_audio_features
Calculate and add audio features to sample. Sample: a dict containing all the data of current sample. audio_data: a tensor of shape (T) c
models/CLAP/training/data.py:451
↓ 3 callersFunctionget_mel
(audio_data, audio_cfg)
models/CLAP/training/data.py:413
↓ 3 callersFunctionget_model_class
(model_type)
models/audiosep.py:148
↓ 3 callersFunctionget_pretrained_url
(model: str, tag: str)
models/CLAP/open_clip/pretrained.py:106
↓ 3 callersFunctionint16_to_float32
(x)
models/CLAP/training/data.py:71
↓ 3 callersMethodreset
(self)
models/CLAP/training/train.py:28
↓ 3 callersMethodreset
(self)
models/CLAP/training/lp_train.py:29
↓ 2 callersMethod__init__
(self)
models/CLAP/open_clip/feature_fusion.py:16
↓ 2 callersFunction_concat_init
(tensor, init_funcs)
models/base.py:36
↓ 2 callersMethod_get_audio_embed
(self, batch)
models/clap_encoder.py:50
↓ 2 callersMethod_get_text_embed
(self, batch)
models/clap_encoder.py:78
↓ 2 callersFunction_rescan_model_configs
()
models/CLAP/open_clip/factory.py:24
↓ 2 callersFunctionbuild_audiosep
(config_yaml, checkpoint_path, device)
pipeline.py:10
↓ 2 callersFunctionbuild_model_from_openai_state_dict
( state_dict: dict, model_cfg, enable_fusion: bool = False, fusion_type: str = "None" )
models/CLAP/open_clip/model.py:872
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
models/CLAP/open_clip/tokenizer.py:24
↓ 2 callersFunctioncalculate_selection_performance_clotho_audiocaps
Calculate performance for Clotho+AudioCaps for model selection.
models/CLAP/training/train.py:785
↓ 2 callersFunctiondownload_pretrained
(url: str, root: str = os.path.expanduser("~/.cache/clip"))
models/CLAP/open_clip/pretrained.py:115
↓ 2 callersFunctiondynamic_loudnorm
(audio, reference, lower_db=-10, higher_db=10)
data/waveform_mixers.py:85
↓ 2 callersFunctioneval
(checkpoint_path, config_yaml='config/audiosep_base.yaml')
benchmark.py:20
↓ 2 callersFunctionfloat32_to_int16
(x)
models/CLAP/training/data.py:75
↓ 2 callersMethodforward_features
(self, x, longer_idx=None)
models/CLAP/open_clip/htsat.py:1012
↓ 2 callersMethodget_audio_embedding
Get the audio embedding from the model Parameters ---------- data: a list of dict the audio input dict list from
models/CLAP/open_clip/model.py:754
↓ 2 callersFunctionget_data
(args, model_cfg)
models/CLAP/training/data.py:927
↓ 2 callersFunctionget_dataset_fn
(data_path, dataset_type)
models/CLAP/training/data.py:906
↓ 2 callersFunctionget_energy
(x)
data/waveform_mixers.py:72
↓ 2 callersFunctionget_mean_sdr_from_dict
(sdris_dict)
utils.py:228
↓ 2 callersFunctionget_metrics
( audio_features, text_features, logit_scale_a, audio_features_mlp=None, text_features_mlp
models/CLAP/training/train.py:519
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
models/CLAP/open_clip/tokenizer.py:50
↓ 2 callersFunctionget_tar_path_from_dataset_name
Get tar path from dataset name and type
models/CLAP/open_clip/utils.py:93
↓ 2 callersMethodget_text_embedding
Get the text embedding from the model Parameters ---------- data: torch.Tensor a tensor of text embedding
models/CLAP/open_clip/model.py:732
↓ 2 callersFunctionimage_transform
( image_size: int, is_train: bool, mean=(0.48145466, 0.4578275, 0.40821073), std=(0.26862954,
models/CLAP/open_clip/transform.py:16
↓ 2 callersFunctioninit_distributed_device
(args)
models/CLAP/training/distributed.py:70
↓ 2 callersFunctionlist_models
enumerate available model architectures based on config files
models/CLAP/open_clip/factory.py:267
↓ 2 callersFunctionload_class_label
(path)
models/CLAP/open_clip/utils.py:325
↓ 2 callersFunctionload_ss_model
r"""Load trained universal source separation model. Args: configs (Dict) checkpoint_path (str): path of the checkpoint to load
utils.py:356
↓ 2 callersFunctionnorm_cdf
(x)
models/CLAP/open_clip/htsat.py:235
↓ 2 callersFunctionparse_args
()
models/CLAP/training/params.py:13
↓ 2 callersFunctionpatch_device
(module)
models/CLAP/open_clip/openai.py:103
↓ 2 callersFunctionpatch_float
(module)
models/CLAP/open_clip/openai.py:131
↓ 2 callersMethodreshape_wav2img
(self, x)
models/CLAP/open_clip/htsat.py:1076
↓ 2 callersFunctionrun
(model, classifier, dataloader, args)
models/CLAP/training/zero_shot.py:39
↓ 2 callersFunctionsetup_logging
(log_file, level, include_host=False)
models/CLAP/training/logger.py:4
↓ 2 callersFunctiontrace_model
(model, batch_size=256, device=torch.device("cpu"))
models/CLAP/open_clip/model.py:919
↓ 2 callersFunctionunwrap_model
(model)
models/CLAP/training/train.py:41
↓ 2 callersFunctionunwrap_model
(model)
models/CLAP/training/lp_train.py:42
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
models/CLAP/open_clip/htsat.py:318
↓ 1 callersMethod__init__
(self, loss_name)
models/CLAP/open_clip/loss.py:385
↓ 1 callersMethod_cut_or_randomcrop
(self, waveform)
data/audiotext_dataset.py:33
↓ 1 callersMethod_get_audio_names
r"""Get evaluation audio names.
evaluation/evaluate_audioset.py:134
↓ 1 callersFunction_natural_key
(string_)
models/CLAP/open_clip/factory.py:20
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
models/CLAP/open_clip/htsat.py:232
↓ 1 callersMethod_read_audio
(self, index)
data/audiotext_dataset.py:49
↓ 1 callersFunction_warmup_lr
(base_lr, warmup_length, step)
models/CLAP/training/scheduler.py:9
↓ 1 callersFunctionaccuracy
(output, target, topk=(1,))
models/CLAP/training/zero_shot.py:30
↓ 1 callersMethodadd_film_layer_to_module
(self, num_features, unique_module_name)
models/resunet.py:51
↓ 1 callersFunctionassign_learning_rate
(optimizer, new_lr)
models/CLAP/training/scheduler.py:4
↓ 1 callersMethodattention
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
models/CLAP/open_clip/model.py:276
↓ 1 callersFunctionbasic_clean
(text)
models/CLAP/open_clip/tokenizer.py:62
↓ 1 callersMethodbatch_to_list
(self, batch)
models/clap_encoder.py:44
↓ 1 callersMethodbpe
(self, token)
models/CLAP/open_clip/tokenizer.py:103
↓ 1 callersMethodbuild_attention_mask
(self)
models/CLAP/open_clip/model.py:608
↓ 1 callersMethodcalculate_film_data
(self, conditions, modules)
models/resunet.py:68
↓ 1 callersMethodchunk_inference
(self, input_dict)
models/resunet.py:656
next →1–100 of 370, ranked by callers