MCPcopy Create free account

hub / github.com/Stability-AI/stable-audio-tools / functions

Functions1,182 in github.com/Stability-AI/stable-audio-tools

Methodforward
Generate psychoacoustically shaped noise x: [B, C, T] input audio Returns: [B, C, T] shaped noise
stable_audio_tools/models/psychoacoustics.py:350
Methodforward
(self, sequence: torch.Tensor, #[batch, seq_len, prepend_cond=None, #[batch, seq, cha
stable_audio_tools/models/lm.py:61
Methodforward
(self, x: Tensor, mapping: Optional[Tensor] = None)
stable_audio_tools/models/adp.py:30
Methodforward
(self, x: Tensor, causal=False)
stable_audio_tools/models/adp.py:151
Methodforward
( self, x: Tensor, scale_shift: Optional[Tuple[Tensor, Tensor]] = None, causal=False )
stable_audio_tools/models/adp.py:245
Methodforward
(self, mapping: Tensor)
stable_audio_tools/models/adp.py:269
Methodforward
(self, x: Tensor, mapping: Optional[Tensor] = None, causal=False)
stable_audio_tools/models/adp.py:322
Methodforward
(self, x: Tensor, mapping: Optional[Tensor] = None, causal=False)
stable_audio_tools/models/adp.py:357
Methodforward
(self, x: Tensor, mapping: Optional[Tensor] = None, causal=False)
stable_audio_tools/models/adp.py:383
Methodforward
( self, q: Tensor, k: Tensor, v: Tensor, mask: Optional[Tensor] = None, is_causal: bool = False )
stable_audio_tools/models/adp.py:449
Methodforward
( self, x: Tensor, # [b, n, c] context: Optional[Tensor] = None, # [b, m, d] c
stable_audio_tools/models/adp.py:508
Methodforward
(self, x: Tensor, *, context: Optional[Tensor] = None, context_mask: Optional[Tensor] = None, causal: Optional
stable_audio_tools/models/adp.py:575
Methodforward
(self, x: Tensor, *, context: Optional[Tensor] = None, context_mask: Optional[Tensor] = None, causal=False)
stable_audio_tools/models/adp.py:632
Methodforward
(self, x: Tensor)
stable_audio_tools/models/adp.py:650
Methodforward
(self, x: Tensor)
stable_audio_tools/models/adp.py:667
Methodforward
( self, x: Tensor, *, mapping: Optional[Tensor] = None, channels: Opti
stable_audio_tools/models/adp.py:765
Methodforward
( self, x: Tensor, *, skips: Optional[List[Tensor]] = None, mapping: O
stable_audio_tools/models/adp.py:884
Methodforward
( self, x: Tensor, *, mapping: Optional[Tensor] = None, embedding: Opt
stable_audio_tools/models/adp.py:966
Methodforward
( self, x: Tensor, time: Optional[Tensor] = None, *, features: Optiona
stable_audio_tools/models/adp.py:1194
Methodforward
(self, x: Tensor)
stable_audio_tools/models/adp.py:1244
Methodforward
( # type: ignore self, x: Tensor, time: Tensor, *, embedding: Tensor,
stable_audio_tools/models/adp.py:1295
Methodforward
( # type: ignore self, x: Tensor, time: Tensor, *, channels_list: Seq
stable_audio_tools/models/adp.py:1398
Methodforward
(self, *args, **kwargs)
stable_audio_tools/models/adp.py:1440
Methodforward
(self, x: Union[List[float], Tensor])
stable_audio_tools/models/adp.py:1470
Methodforward
( self, x, t, cross_attn_cond=None, cross_attn_cond_mask=None,
stable_audio_tools/models/dit.py:345
Methodforward
(self, X)
stable_audio_tools/models/lora/model.py:241
Methodfrom_conv1d
(cls, layer, rank=4, lora_dropout_p=0.0, lora_alpha=1, svd_bases=None, **kwargs)
stable_audio_tools/models/lora/model.py:280
Methodfrom_conv2d
(cls, layer, rank=4, lora_dropout_p=0.0, lora_alpha=1, svd_bases=None, **kwargs)
stable_audio_tools/models/lora/model.py:271
Methodfrom_embedding
(cls, layer, rank=4, lora_dropout_p=0.0, lora_alpha=1, svd_bases=None, **kwargs)
stable_audio_tools/models/lora/model.py:289
Methodfrom_linear
(cls, layer, rank=4, lora_dropout_p=0.0, lora_alpha=1, svd_bases=None, **kwargs)
stable_audio_tools/models/lora/model.py:262
Methodgenerate
(self, *args, **kwargs)
stable_audio_tools/models/diffusion.py:272
Functiongenerate_chunked_sliding_window_mask
(chunk_size, chunk_sliding_window)
stable_audio_tools/models/attn_masks.py:8
Functiongenerate_cond
( prompt, negative_prompt=None, seconds_start=0, seconds_total=30, cfg
stable_audio_tools/interface/interfaces/diffusion_cond.py:49
Functiongenerate_lm
( temperature=1.0, top_p=0.95, top_k=0, batch_size=1, )
stable_audio_tools/interface/gradio.py:271
Functiongenerate_sliding_window_mask
(sliding_window)
stable_audio_tools/models/attn_masks.py:1
Functiongenerate_uncond
( steps=250, seed=-1, sampler_type="dpmpp-3m-sde", sigma_min=0.03, sig
stable_audio_tools/interface/gradio.py:162
Functionget_2d_padding
( kernel_size: tp.Tuple[int, int], dilation: tp.Tuple[int, int] = (1, 1) )
stable_audio_tools/models/discriminators.py:1556
Methodget_audio_features
(self, audio)
stable_audio_tools/models/clap.py:229
Functionget_bias_params
(model, print_shapes=False)
stable_audio_tools/models/lora/utils.py:100
Functionget_bmask
(i, steps, mask)
stable_audio_tools/inference/sampling.py:630
Functionget_contexts
()
stable_audio_tools/models/transformer.py:171
Functionget_custom_metadata
(info, audio)
stable_audio_tools/configs/dataset_configs/custom_metadata/custom_md_example.py:1
Methodget_ground_truth
(self, device, dtype, num_logits, negative_only=False)
stable_audio_tools/training/clap.py:250
Methodget_logits
(self, audio_features, text_features, logit_scale, logit_bias=None)
stable_audio_tools/training/clap.py:256
Functionget_lora_count
Return the number of stacked LoRAs (distinct lora_index values).
stable_audio_tools/models/lora/utils.py:265
Methodget_lr
(self)
stable_audio_tools/training/utils.py:47
Methodget_pattern
Builds pattern with specific interleaving between codebooks. Args: timesteps (int): Total number of timesteps.
stable_audio_tools/models/codebook_patterns.py:293
Methodget_pattern
(self, timesteps: int)
stable_audio_tools/models/codebook_patterns.py:336
Methodget_pattern
Builds pattern for delay across codebooks. Args: timesteps (int): Total number of timesteps.
stable_audio_tools/models/codebook_patterns.py:462
Methodget_pattern
(self, timesteps: int)
stable_audio_tools/models/codebook_patterns.py:512
Functionget_relativistic_losses
(score_real, score_fake)
stable_audio_tools/models/arc.py:13
Functionget_sigmas_polyexponential
Constructs an polynomial in log sigma noise schedule.
stable_audio_tools/inference/k_diffusion/sampling.py:20
Functiongrouped_mmd
(x, y, bandwidths = [1], groups = 2)
stable_audio_tools/training/losses/utils.py:90
Functionidct_2d
The inverse to 2D DCT-II, which is a scaled Discrete Cosine Transform, Type III Our definition of idct is that idct_2d(dct_2d(x)) == x
stable_audio_tools/models/transforms.py:301
Functioninit_audio_type_switch
(choice)
stable_audio_tools/interface/interfaces/diffusion_cond.py:617
Functionint16_to_float32
(x)
stable_audio_tools/training/metrics/fad_metrics.py:99
Methodinverse
(self, spec: Tensor)
stable_audio_tools/models/transforms.py:84
Methodinverse
(self, x: Tensor)
stable_audio_tools/models/transforms.py:135
Functionis_silence_audio
(audio, silence_threshold=0.01, max_silence_ratio=0.3)
stable_audio_tools/data/dataset.py:677
Functionis_valid_sample
(sample)
stable_audio_tools/data/dataset.py:604
Functionlatent_size_t_shift
(self, t, latent_dim, ref_latent_dim = 64)
stable_audio_tools/inference/sampling.py:28
Functionleaky_hard_clip
(x: Tensor, alpha: float = 1e-3)
stable_audio_tools/models/fsq.py:18
Methodload_data_urls
(self)
stable_audio_tools/data/dataset.py:728
Functionload_multiple_lora
(model, lora_state_dicts)
stable_audio_tools/models/lora/utils.py:322
Functionlog_and_continue
Call in an exception handler to ignore any exception, isssue a warning, and continue.
stable_audio_tools/data/dataset.py:583
Methodlora_forward
(self, W)
stable_audio_tools/models/lora/model.py:182
Methodlora_xs_forward
(self, W)
stable_audio_tools/models/lora/model.py:214
Methodloss
(self, input, noise, sigma, **kwargs)
stable_audio_tools/inference/k_diffusion/external.py:31
Methodloss
(self, audio, latent, text = None, checkpointing = True)
stable_audio_tools/models/discriminators.py:179
Methodloss
(self, reals, fakes)
stable_audio_tools/models/discriminators.py:234
Methodloss
(self, reals, fakes)
stable_audio_tools/models/discriminators.py:480
Methodloss
(self, reals, fakes)
stable_audio_tools/models/discriminators.py:897
Methodloss
(self, reals, fakes)
stable_audio_tools/models/discriminators.py:1008
Methodloss
(self, reals, fakes)
stable_audio_tools/models/discriminators.py:1031
Methodloss
(self, reals, fakes)
stable_audio_tools/models/discriminators.py:1242
Methodloss
(self, reals, fakes)
stable_audio_tools/models/discriminators.py:1341
Methodloss
(self, reals, fakes, *args, **kwargs)
stable_audio_tools/models/arc.py:95
Methodloss
(self, reals, fakes, **kwargs)
stable_audio_tools/models/arc.py:175
Methodloss
(self, reals, fakes, **kwargs)
stable_audio_tools/models/arc.py:273
Functionmasked_mean
Compute mean over masked (valid) positions only. Args: values: Tensor of shape (B, C, T) or (B, T) mask: Boolean mask of sha
stable_audio_tools/training/utils.py:443
Functionmasked_sum
Compute sum over masked (valid) positions only. Args: values: Tensor of shape (B, C, T) or (B, T) mask: Boolean mask of shap
stable_audio_tools/training/utils.py:478
Methodmax_delay
(self)
stable_audio_tools/models/codebook_patterns.py:80
Functionmerge_lora
merge lora parametrization to all layers in a model. This will remove all parametrization
stable_audio_tools/models/lora/model.py:420
Functionmerge_loras_into_base_model
Merges multiple LoRAs with specified application weights directly into the base model's weights. Works with all adapter types (LoRA, DoRA, Lo
stable_audio_tools/models/lora/utils.py:342
Functionname_is_bias
(name)
stable_audio_tools/models/lora/utils.py:84
Functionneighbour_exchange_bidir_with_grad
(left_rank, right_rank, tensor_to_left, tensor_to_right, group=None)
stable_audio_tools/training/clap.py:160
Functionneighbour_exchange_with_grad
(from_rank, to_rank, tensor, group=None)
stable_audio_tools/training/clap.py:142
Functionnext_multiple_of_64
(n)
stable_audio_tools/models/utils.py:129
Functionnext_power_of_two
(n)
stable_audio_tools/models/utils.py:126
Methodnorm_std_loss
(self, x)
stable_audio_tools/models/bottleneck.py:493
Functionnpy_decoder
(key, value)
stable_audio_tools/data/dataset.py:743
Methodnum_sequence_steps
(self)
stable_audio_tools/models/codebook_patterns.py:76
Methodnum_virtual_steps
(self, timesteps: int)
stable_audio_tools/models/codebook_patterns.py:459
Methodon_before_optimizer_step
Sync gradients for non-FSDP trainable parameters before optimizer step.
stable_audio_tools/training/diffusion.py:520
Methodon_before_zero_grad
(self, *args, **kwargs)
stable_audio_tools/training/diffusion.py:186
Methodon_before_zero_grad
(self, *args, **kwargs)
stable_audio_tools/training/diffusion.py:805
Methodon_before_zero_grad
(self, *args, **kwargs)
stable_audio_tools/training/diffusion.py:1893
Methodon_before_zero_grad
(self, *args, **kwargs)
stable_audio_tools/training/lm.py:168
Methodon_exception
(self, trainer, module, err)
train.py:20
Methodon_save_checkpoint
(self, trainer, pl_module, checkpoint)
train.py:27
← previousnext →1,001–1,100 of 1,182, ranked by callers