Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Audio-AGI/AudioSep
/ functions
Functions
370 in github.com/Audio-AGI/AudioSep
⨍
Functions
370
◇
Types & classes
62
Method
forward
(self, x: torch.Tensor)
models/CLAP/open_clip/model.py:90
Method
forward
(self, x)
models/CLAP/open_clip/model.py:120
Method
forward
(self, x)
models/CLAP/open_clip/model.py:233
Method
forward
(self, x: torch.Tensor)
models/CLAP/open_clip/model.py:247
Method
forward
(self, x: torch.Tensor)
models/CLAP/open_clip/model.py:255
Method
forward
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
models/CLAP/open_clip/model.py:279
Method
forward
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
models/CLAP/open_clip/model.py:299
Method
forward
(self, x: torch.Tensor)
models/CLAP/open_clip/model.py:346
Method
forward
Forward audio and text into the CLAP Parameters ---------- audio: torch.Tensor (batch_size, audio_length) the tim
models/CLAP/open_clip/model.py:682
Function
get_acc
(pred, target)
models/CLAP/open_clip/loss.py:343
Function
get_audioset632_id_to_lb
r"""Get AudioSet 632 classes ID to label mapping.
utils.py:75
Function
get_csv_dataset
(args, preprocess_fn, is_train)
models/CLAP/training/data.py:849
Function
get_data_from_log
Output dictionary from out.txt log file
models/CLAP/open_clip/utils.py:240
Function
get_imagenet
(args, preprocess_fns, split)
models/CLAP/training/data.py:310
Method
get_logit_scale
(self)
models/CLAP/open_clip/model.py:729
Function
get_map
(pred, target)
models/CLAP/open_clip/loss.py:337
Function
get_mauc
(pred, target)
models/CLAP/open_clip/loss.py:349
Method
get_median_metrics
(stats_dict, metric_type)
evaluation/evaluate_audioset.py:150
Function
get_ss_model
r"""Load trained universal source separation model. Args: configs (Dict) checkpoint_path (str): path of the checkpoint to load
utils.py:326
Function
get_tar_path_from_txts
Get tar path from txt path
models/CLAP/open_clip/utils.py:129
Function
get_toy_dataset
(args, model_cfg, is_train)
models/CLAP/training/data.py:878
Function
get_wds_dataset
Get a dataset for wdsdataloader.
models/CLAP/training/data.py:676
Function
ids_to_hots
(ids, classes_num, device)
utils.py:141
Function
init_embedding
Initialize a Linear or Convolutional layer.
models/base.py:24
Function
init_gru
Initialize a GRU layer.
models/base.py:33
Function
int16_to_float32
(x: int)
utils.py:57
Function
is_using_horovod
()
models/CLAP/training/distributed.py:24
Function
l1_wav
(output_dict, target_dict)
losses.py:8
Function
lecun_normal_
(tensor)
models/CLAP/open_clip/htsat.py:314
Function
linear_warm_up
r"""Get linear warm up scheduler for LambdaLR. Args: step (int): global step warm_up_steps (int): steps for warm up reduc
optimizers/lr_schedulers.py:5
Function
list_pretrained
returns list of pretrained models Returns a tuple (model_name, pretrain_tag) by default or 'name:tag' if as_str == True
models/CLAP/open_clip/pretrained.py:78
Function
list_pretrained_model_tags
return all pretrain tags for the specified model architecture
models/CLAP/open_clip/pretrained.py:98
Function
load_pretrained_panns
r"""Load pretrained pretrained audio neural networks (PANNs). Args: model_type: str, e.g., "Cnn14" checkpoint_path, str, e.g., "C
utils.py:89
Method
lock
lock modules Args: unlocked_groups (int): leave last n layer groups unlocked (default: 0)
models/CLAP/open_clip/timm_model.py:76
Method
lock
(self, unlocked_groups=0, freeze_bn_stats=False)
models/CLAP/open_clip/model.py:214
Method
lock
(self, unlocked_groups=0, freeze_bn_stats=False)
models/CLAP/open_clip/model.py:339
Function
log_and_continue
Call in an exception handler to ignore any exception, isssue a warning, and continue.
models/CLAP/training/data.py:371
Function
loudness
Loudness normalize a signal. Normalize an input signal to a user loudness in dB LKFS. Params ------- data : torch.Tensor
utils.py:293
Function
magnitude_to_db
(x)
utils.py:132
Method
no_weight_decay
(self)
models/CLAP/open_clip/htsat.py:1005
Method
no_weight_decay_keywords
(self)
models/CLAP/open_clip/htsat.py:1009
Method
on_train_batch_end
r"""Save a checkpoint every N steps.
callbacks/base.py:23
Function
pad_framewise_output
Pad framewise_output to the same length as input frames. The pad value is the same as the value of the last frame. Args: framewise_outpu
models/CLAP/open_clip/utils.py:202
Function
parse
(x)
models/CLAP/open_clip/htsat.py:31
Method
predict
Run a single prediction on the model
predict.py:20
Method
prepare_data
(self)
data/datamodules.py:38
Function
preprocess
Preprocess a single sample for wdsdataloader.
models/CLAP/training/data.py:566
Function
preprocess_txt
(text)
models/CLAP/training/data.py:253
Function
process_ipc
(index_path, classes_num, filename)
models/CLAP/open_clip/utils.py:220
Function
random_loudness_norm
(audio, lower_db=-35, higher_db=-15, sr=32000)
data/waveform_mixers.py:112
Function
random_seed
(seed=42, rank=0)
models/CLAP/training/lp_main.py:130
Function
random_seed
(seed=42, rank=0)
models/CLAP/training/main.py:124
Function
remove_silence
r"""Remove silent frames.
utils.py:233
Function
repeat_to_length
r"""Repeat audio to length.
utils.py:265
Method
repeat_wat2img
(self, x, cur_pos)
models/CLAP/open_clip/htsat.py:1106
Function
save_json
(data, name="data.json")
models/CLAP/open_clip/utils.py:304
Function
save_p
(obj, filename)
models/CLAP/open_clip/utils.py:278
Method
setup
Load the model into memory to make running multiple predictions efficient
predict.py:11
Method
setup
r"""called on every device.
data/datamodules.py:43
Method
spectrogram_to_wav
Spectrogram to waveform. Args: input: (batch_size, segment_samples, channels_num) spectrogram: (batch_size, channels_num,
models/base.py:133
Method
teardown
(self)
data/datamodules.py:79
Method
test_dataloader
(self)
data/datamodules.py:74
Method
test_step
(self, batch, batch_idx)
models/audiosep.py:115
Method
time_shifting
(self, x)
models/CLAP/training/data.py:114
Method
train_dataloader
r"""Get train loader.
data/datamodules.py:55
Method
training_step
r"""Forward a mini-batch data to model, calculate loss function, and train for one step. A mini-batch data is evenly distributed to multiple
models/audiosep.py:52
Method
val_dataloader
(self)
data/datamodules.py:69
Method
wav_to_spectrogram
Waveform to spectrogram. Args: input: (batch_size, segment_samples, channels_num) Outputs: output: (batch_size,
models/base.py:115
Function
wds_batch_list2dict
Return a dictionary of the batch, with keys as the names of the fields.
models/CLAP/training/data.py:827
Function
zero_shot_eval
(model, data, epoch, args)
models/CLAP/training/zero_shot.py:67
← previous
301–370 of 370, ranked by callers