MCPcopy Create free account

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

Functions370 in github.com/Audio-AGI/AudioSep

↓ 1 callersFunctionconfig_lp_optimizer
(model, data, args)
models/CLAP/training/lp_main.py:136
↓ 1 callersFunctionconvert_weights_to_fp16
Convert applicable model parameters to fp16
models/CLAP/open_clip/model.py:842
↓ 1 callersFunctioncopy_codebase
(args)
models/CLAP/training/lp_main.py:649
↓ 1 callersFunctioncopy_codebase
(args)
models/CLAP/training/main.py:575
↓ 1 callersMethodcreate_film_modules
(self, film_meta, ancestor_names)
models/resunet.py:21
↓ 1 callersFunctioncreate_htsat_model
(audio_cfg, enable_fusion=False, fusion_type="None")
models/CLAP/open_clip/htsat.py:1253
↓ 1 callersFunctioncreate_logging
(log_dir, filemode)
utils.py:26
↓ 1 callersFunctioncreate_pann_model
(audio_cfg, enable_fusion=False, fusion_type="None")
models/CLAP/open_clip/pann_model.py:686
↓ 1 callersFunctiondefault_bpe
()
models/CLAP/open_clip/tokenizer.py:17
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created for Ef
models/CLAP/open_clip/htsat.py:46
↓ 1 callersMethodencode
(self, text)
models/CLAP/open_clip/tokenizer.py:144
↓ 1 callersFunctionevaluate_clotho_audiocaps
Adapted from https://github.com/XinhaoMei/audio-text_retrieval/blob/main/tools/utils.py. 1. for text-to-audio retrieval, do 5 times and avera
models/CLAP/training/train.py:596
↓ 1 callersMethodevaluate_mertics
(self, pred, target)
models/CLAP/open_clip/loss.py:372
↓ 1 callersMethodfeature_maps_to_wav
r"""Convert feature maps to waveform. Args: input_tensor: (batch_size, target_sources_num * output_channels * self.K, time_steps,
models/resunet.py:436
↓ 1 callersMethodflush
(self)
utils.py:221
↓ 1 callersFunctionget_active_frames
r"""Get active frames.
utils.py:250
↓ 1 callersFunctionget_data_module
r"""Create data_module. Mini-batch data can be obtained by: code-block:: python data_module.setup() for batch_data_dict in data
train.py:87
↓ 1 callersFunctionget_dataset_size
(shards, sizefilepath_=None, is_local=True)
models/CLAP/training/data.py:257
↓ 1 callersFunctionget_default_params
(model_name)
models/CLAP/training/params.py:4
↓ 1 callersFunctionget_dirs
r"""Get directories and paths. Args: workspace (str): directory of workspace filename (str): filename of current .py file.
train.py:20
↓ 1 callersFunctionget_energy_ratio
(segment1, segment2)
data/waveform_mixers.py:76
↓ 1 callersFunctionget_film_meta
(module)
models/resunet.py:598
↓ 1 callersFunctionget_loss_function
(loss_type)
losses.py:12
↓ 1 callersFunctionget_lr_lambda
r"""Get learning scheduler. Args: lr_lambda_type (str), e.g., "constant_warm_up" | "linear_warm_up" Returns: lr_lambda_func
optimizers/lr_schedulers.py:70
↓ 1 callersMethodget_metric
(self, name)
models/CLAP/open_clip/loss.py:362
↓ 1 callersFunctionget_mix_lambda
(mixup_alpha, batch_size)
models/CLAP/open_clip/utils.py:164
↓ 1 callersFunctionignore_warnings
()
utils.py:15
↓ 1 callersFunctioninfer_audio
()
models/CLAP/training/infer_demo.py:60
↓ 1 callersFunctioninfer_text
()
models/CLAP/training/infer_demo.py:33
↓ 1 callersMethodinit_parameters
(self)
models/CLAP/open_clip/model.py:201
↓ 1 callersMethodinit_text_branch_parameters
(self)
models/CLAP/open_clip/model.py:578
↓ 1 callersMethodinit_weight
(self)
models/CLAP/open_clip/pann_model.py:61
↓ 1 callersMethodinit_weight
(self)
models/CLAP/open_clip/pann_model.py:104
↓ 1 callersMethodinit_weight
(self)
models/CLAP/open_clip/pann_model.py:275
↓ 1 callersMethodinit_weight
(self)
models/CLAP/open_clip/pann_model.py:499
↓ 1 callersMethodinit_weight
(self)
models/CLAP/open_clip/pann_model.py:627
↓ 1 callersMethodinit_weights
r"""Initialize weights.
models/resunet.py:137
↓ 1 callersMethodinit_weights
r"""Initialize weights.
models/resunet.py:235
↓ 1 callersMethodinit_weights
(self)
models/resunet.py:431
↓ 1 callersMethodinit_weights
(self)
models/CLAP/open_clip/pann_model.py:152
↓ 1 callersFunctionis_global_master
(args)
models/CLAP/training/distributed.py:12
↓ 1 callersFunctionis_local_master
(args)
models/CLAP/training/distributed.py:16
↓ 1 callersFunctionis_using_distributed
()
models/CLAP/training/distributed.py:37
↓ 1 callersFunctionl1
(output, target)
losses.py:4
↓ 1 callersFunctionlist_openai_models
Returns the names of available CLIP models
models/CLAP/open_clip/openai.py:22
↓ 1 callersFunctionlist_pretrained_tag_models
return all models having the specified pretrain tag
models/CLAP/open_clip/pretrained.py:89
↓ 1 callersFunctionload_json
(name)
models/CLAP/open_clip/utils.py:312
↓ 1 callersFunctionload_openai_model
Load a CLIP model, preserve its text pretrained part, and set in the CLAP model Parameters ---------- name : str A model name lis
models/CLAP/open_clip/openai.py:27
↓ 1 callersFunctionload_p
(filename)
models/CLAP/open_clip/utils.py:296
↓ 1 callersFunctionload_state_dict
(checkpoint_path: str, map_location="cpu", skip_params=True)
models/CLAP/open_clip/factory.py:54
↓ 1 callersFunctionlp_gather_features
(pred, target, world_size=1, use_horovod=False)
models/CLAP/open_clip/loss.py:319
↓ 1 callersFunctionmain
()
models/CLAP/training/lp_main.py:316
↓ 1 callersFunctionmain
()
models/CLAP/training/main.py:130
↓ 1 callersFunctionmaintain_ckpts
(args, startidx, all_idx_len)
models/CLAP/training/lp_main.py:47
↓ 1 callersFunctionmaintain_ckpts
(args, startidx, all_idx_len)
models/CLAP/training/main.py:41
↓ 1 callersMethodnonlinear_transform
(self, x)
models/CLAP/open_clip/pann_model.py:164
↓ 1 callersFunctionnumpy_to_torch
Convert a NumPy array to a PyTorch tensor.
data/waveform_mixers.py:103
↓ 1 callersMethodprompt_text
(self, target)
models/CLAP/training/data.py:137
↓ 1 callersFunctionrescale_to_match_energy
(segment1, segment2)
data/waveform_mixers.py:65
↓ 1 callersFunctionsample_prop
Sample a proportion of the data.
models/CLAP/training/data.py:383
↓ 1 callersFunctionsave_to_dict
(s, o_={})
models/CLAP/open_clip/utils.py:234
↓ 1 callersFunctionselect_top_metric_clotho_audiocaps
(metrics, val_metrics_per_dataset, args)
models/CLAP/training/train.py:799
↓ 1 callersFunctionseparate_audio
(model, audio_file, text, output_file, device='cuda', use_chunk=False)
pipeline.py:20
↓ 1 callersMethodspectrogram
(self, input, eps=0.)
models/base.py:79
↓ 1 callersMethodspectrogram_phase
(self, input, eps=0.)
models/base.py:83
↓ 1 callersMethodstem
(self, x)
models/CLAP/open_clip/model.py:223
↓ 1 callersFunctiontokenizer
(text)
models/CLAP/training/infer_demo.py:18
↓ 1 callersMethodtokenizer
(self, text)
models/clap_encoder.py:108
↓ 1 callersFunctiontorch_to_numpy
Convert a PyTorch tensor to a NumPy array.
data/waveform_mixers.py:95
↓ 1 callersFunctiontrain
r"""Train, evaluate, and save checkpoints. Args: workspace: str, directory of workspace gpus: int, number of GPUs to train
train.py:139
↓ 1 callersFunctiontrain_one_epoch
( model, data, epoch, optimizer, scaler, scheduler, args, tb_writer=None )
models/CLAP/training/train.py:48
↓ 1 callersFunctiontrain_one_epoch
( model, data, epoch, optimizer, scaler, scheduler, args, tb_writer=None,
models/CLAP/training/lp_train.py:49
↓ 1 callersFunctionupdate_top_k_performance
Record the top-k performance of the current epoch. current_top_k_metrics is a dictionary of the form: {1: top_1_ckpt_measure, 2: top_2_ckpt_m
models/CLAP/training/lp_main.py:61
↓ 1 callersFunctionupdate_top_k_performance
Record the top-k performance of the current epoch. current_top_k_metrics is a dictionary of the form: {1: top_1_ckpt_measure, 2: top_2_ckpt_m
models/CLAP/training/main.py:55
↓ 1 callersFunctionvariance_scaling_
(tensor, scale=1.0, mode="fan_in", distribution="normal")
models/CLAP/open_clip/htsat.py:291
↓ 1 callersMethodwav_to_spectrogram_phase
Waveform to spectrogram. Args: input: (batch_size, segment_samples, channels_num) Outputs: output: (batch_size,
models/base.py:91
↓ 1 callersFunctionwhitespace_clean
(text)
models/CLAP/open_clip/tokenizer.py:68
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
models/CLAP/open_clip/htsat.py:334
↓ 1 callersFunctionzero_shot_classifier
(model, classnames, templates, args)
models/CLAP/training/zero_shot.py:13
FunctionRoberta_embeddings
(text)
models/CLAP/open_clip/bert.py:22
Method__call__
(self, waveforms)
data/waveform_mixers.py:19
Method__call__
r"""Evalute.
evaluation/evaluate_audioset.py:61
Method__call__
r"""Evalute.
evaluation/evaluate_clotho.py:45
Method__call__
r"""Evalute.
evaluation/evaluate_vggsound.py:48
Method__call__
r"""Evalute.
evaluation/evaluate_audiocaps.py:50
Method__call__
r"""Evalute.
evaluation/evaluate_esc50.py:46
Method__call__
r"""Evalute.
evaluation/evaluate_music.py:53
Method__getitem__
(self, index)
data/audiotext_dataset.py:66
Method__getitem__
Load waveform, text, and target of an audio clip Parameters ---------- index: int the index number
models/CLAP/training/data.py:143
Method__getitem__
(self, idx)
models/CLAP/training/data.py:241
Method__init__
(self, statistics_path)
utils.py:204
Method__init__
r"""Save a checkpoint every N steps. Args: checkpoints_dir (str): directory to save checkpoints save_step_frequency (
callbacks/base.py:7
Method__init__
(self, max_mix_num, lower_db, higher_db)
data/waveform_mixers.py:10
Method__init__
( self, datafiles=[''], sampling_rate=32000, max_clip_len=5, )
data/audiotext_dataset.py:14
Method__init__
r"""Data module. To get one batch of data: code-block:: python data_module.setup() for batch_data_dict in data_modu
data/datamodules.py:9
Method__init__
r"""Pytorch Lightning wrapper of PyTorch model, including forward, optimization of model, etc. Args: ss_model: nn.Module
models/audiosep.py:15
Method__init__
(self)
models/base.py:76
Method__init__
r"""Residual block.
models/resunet.py:85
Method__init__
r"""Encoder block, contains 8 convolutional layers.
models/resunet.py:169
Method__init__
r"""Decoder block, contains 1 transposed convolutional and 8 convolutional layers.
models/resunet.py:202
← previousnext →101–200 of 370, ranked by callers