MCPcopy Create free account

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

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

Method__init__
(self)
stable_audio_tools/models/bottleneck.py:142
Method__init__
(self, noise_augment_dim: int = 0, bypass_mmd: bool = False, use_tanh: bool = False, tanh_scale: float = 5.0)
stable_audio_tools/models/bottleneck.py:178
Method__init__
(self)
stable_audio_tools/models/bottleneck.py:215
Method__init__
(self, **quantizer_kwargs)
stable_audio_tools/models/bottleneck.py:232
Method__init__
(self, **quantizer_kwargs)
stable_audio_tools/models/bottleneck.py:269
Method__init__
(self, quantize_on_decode=False, noise_augment_dim=0, **quantizer_kwargs)
stable_audio_tools/models/bottleneck.py:303
Method__init__
(self, quantize_on_decode=False, **quantizer_kwargs)
stable_audio_tools/models/bottleneck.py:359
Method__init__
(self, noise_augment_dim=0, **kwargs)
stable_audio_tools/models/bottleneck.py:414
Method__init__
(self, dim, levels, num_codebooks = 1, dither_inference = True, noise_dropout: float = 0.05,
stable_audio_tools/models/bottleneck.py:460
Method__init__
(self, *modules)
stable_audio_tools/models/adp.py:26
Method__init__
(self, *args, **kwargs)
stable_audio_tools/models/adp.py:127
Method__init__
(self, *args, **kwargs)
stable_audio_tools/models/adp.py:148
Method__init__
( self, in_channels: int, out_channels: int, *, kernel_size: int = 3,
stable_audio_tools/models/adp.py:215
Method__init__
( self, features: int, channels: int, )
stable_audio_tools/models/adp.py:257
Method__init__
( self, in_channels: int, out_channels: int, *, kernel_size: int = 3,
stable_audio_tools/models/adp.py:277
Method__init__
( self, in_channels: int, out_channels: int, patch_size: int, context_
stable_audio_tools/models/adp.py:338
Method__init__
( self, in_channels: int, out_channels: int, patch_size: int, context_
stable_audio_tools/models/adp.py:364
Method__init__
( self, features: int, *, head_features: int, num_heads: int,
stable_audio_tools/models/adp.py:417
Method__init__
( self, features: int, *, head_features: int, num_heads: int,
stable_audio_tools/models/adp.py:477
Method__init__
( self, features: int, num_heads: int, head_features: int, multiplier:
stable_audio_tools/models/adp.py:547
Method__init__
( self, num_layers: int, channels: int, num_heads: int, head_features:
stable_audio_tools/models/adp.py:589
Method__init__
(self, dim: int)
stable_audio_tools/models/adp.py:646
Method__init__
(self, dim: int, std=16.0)
stable_audio_tools/models/adp.py:661
Method__init__
( self, in_channels: int, out_channels: int, *, factor: int, n
stable_audio_tools/models/adp.py:688
Method__init__
( self, in_channels: int, out_channels: int, *, factor: int, n
stable_audio_tools/models/adp.py:802
Method__init__
( self, channels: int, *, num_groups: int, num_transformer_blocks: int
stable_audio_tools/models/adp.py:916
Method__init__
( self, in_channels: int, channels: int, multipliers: Sequence[int], f
stable_audio_tools/models/adp.py:988
Method__init__
(self, max_length: int, features: int)
stable_audio_tools/models/adp.py:1239
Method__init__
( self, context_embedding_max_length: int, context_embedding_features: int, us
stable_audio_tools/models/adp.py:1267
Method__init__
(self, context_features: int, **kwargs)
stable_audio_tools/models/adp.py:1390
Method__init__
(self, *args, **kwargs)
stable_audio_tools/models/adp.py:1437
Method__init__
( self, features: int, dim: int = 256, fourier_features_type: tp.Literal["lear
stable_audio_tools/models/adp.py:1457
Method__init__
(self, io_channels=32, patch_size=1, embed_dim=768, cond_token_dim=0,
stable_audio_tools/models/dit.py:14
Method__init__
(self, offset)
stable_audio_tools/models/lora/callbacks.py:23
Method__init__
(self, fan_in, fan_out, fan_in_fan_out=False, rank=4, lora_dropout_p=0.0, lora_alpha=1, adapte
stable_audio_tools/models/lora/model.py:28
Method__len__
(self)
stable_audio_tools/data/dataset.py:250
Method__len__
(self)
stable_audio_tools/data/dataset.py:369
Method__post_init__
(self)
stable_audio_tools/models/codebook_patterns.py:47
Method__repr__
(self)
stable_audio_tools/training/diffusion.py:46
Method__repr__
(self)
stable_audio_tools/models/diffusion.py:28
Function_append_lora
(lora_layer)
stable_audio_tools/models/lora/utils.py:315
Function_band_mod
(b, h, q_idx, kv_idx)
stable_audio_tools/models/transformer.py:111
Function_critical_band_rate
Compute critical bandwidth at given frequencies (Zwicker & Terhardt)
stable_audio_tools/models/psychoacoustics.py:30
Function_disable
(layer)
stable_audio_tools/models/lora/utils.py:30
Method_dropout
(self, A)
stable_audio_tools/models/lora/model.py:244
Function_enable
(layer)
stable_audio_tools/models/lora/utils.py:22
Method_masked_mean
Compute mean over valid (masked) positions. Returns .mean() if mask is None.
stable_audio_tools/training/arc.py:851
Method_num_inner_steps
Number of inner steps to unroll between timesteps in order to flatten the codebooks.
stable_audio_tools/models/codebook_patterns.py:454
Function_prepare_for_multiple_lora
(lora_layer)
stable_audio_tools/models/lora/utils.py:311
Method_save_checkpoint
(self, trainer, filepath)
stable_audio_tools/models/lora/callbacks.py:8
Function_sqrt_hann_tight
g[n] = sqrt(Hann_periodic[n]) * sqrt(2/R), R = n_fft / hop_length ⇒ sum_m g^2[n-mH] == 1.
stable_audio_tools/models/transforms.py:319
Method_teacher
Return the model used as ODE teacher during warmup. When reuse_discriminator_as_teacher is set, the discriminator serves as the teach
stable_audio_tools/training/arc.py:463
Functionadd_lora_by_name
Add LoRA to specific layers by name. Convenience wrapper around add_lora().
stable_audio_tools/models/lora/model.py:415
Functionalign_loss
(x, y, alpha=2)
stable_audio_tools/training/clap.py:40
Functionalpha_sigma_to_t
Returns a timestep, given the scaling factors for the clean image and for the noise.
stable_audio_tools/inference/sampling.py:17
Functionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
stable_audio_tools/inference/k_diffusion/utils.py:4
Functionapply_fn
(layer)
stable_audio_tools/models/lora/utils.py:14
Functionapply_lora
add lora parametrization to a layer, designed to be used with model.apply
stable_audio_tools/models/lora/model.py:350
Functionaudio_decoder
(key, value)
stable_audio_tools/data/dataset.py:734
Functionautoencoder_animate_flow
( audio, num_steps, interp_type )
stable_audio_tools/interface/interfaces/autoencoder.py:167
Functionautoencoder_process
(audio, latent_noise, n_quantizers)
stable_audio_tools/interface/gradio.py:360
Functionautoencoder_process
( audio, latent_noise_add, latent_noise_interp, interp_type, n_quantizers )
stable_audio_tools/interface/interfaces/autoencoder.py:94
Methodbackward
(ctx, *grad_outputs)
stable_audio_tools/training/clap.py:155
Methodbora_forward
(self, W)
stable_audio_tools/models/lora/model.py:200
Methodbora_xs_forward
(self, W)
stable_audio_tools/models/lora/model.py:229
Functionbuild_mask
(sample_size, mask_args)
stable_audio_tools/inference/generation.py:607
Methodcalc_threshold
Generate psychoacoustically shaped noise x: [B, C, T] input audio Returns: [B, C, T] shaped noise
stable_audio_tools/models/psychoacoustics.py:404
Functionchunked_cross_entropy
Compute causal LM cross-entropy loss without materializing full (B, T, vocab) logits. Applies the lm_head in chunks along the sequence dimension
stable_audio_tools/training/clap.py:43
Functionchunked_sliding_window_mask
(b, h, q_idx, kv_idx)
stable_audio_tools/models/attn_masks.py:10
Functioncollation_fn
(samples)
stable_audio_tools/data/dataset.py:752
Methodcollect_intermediates
(info)
stable_audio_tools/training/arc.py:655
Functioncomplex_inner_product_loss
(x, y, eps=1e-8)
stable_audio_tools/models/utils.py:132
Methodcompute_logits
Compute logits for a batch of codes, and translates from conditioning inputs to model inputs Handles CFG dropout
stable_audio_tools/models/lm.py:223
Methodconcat_dicts
(dict_a, dict_b)
stable_audio_tools/models/discriminators.py:395
Functioncond_model_fn
(x, sigma, **kwargs)
stable_audio_tools/inference/sampling.py:637
Methodconfigure_optimizers
(self)
pre_encode.py:171
Methodconfigure_optimizers
(self)
stable_audio_tools/training/arc.py:473
Methodconfigure_optimizers
(self)
stable_audio_tools/training/diffusion.py:122
Methodconfigure_optimizers
(self)
stable_audio_tools/training/diffusion.py:466
Methodconfigure_optimizers
(self)
stable_audio_tools/training/diffusion.py:1815
Methodconfigure_optimizers
(self)
stable_audio_tools/training/autoencoders.py:646
Methodconfigure_optimizers
(self)
stable_audio_tools/training/clap.py:227
Methodconfigure_optimizers
(self)
stable_audio_tools/training/lm.py:64
Functionconvert_lora_ckpt_to_safetensors
Convert a .ckpt LoRA checkpoint to .safetensors format. Args: ckpt_path: Path to the input .ckpt file. output_path: Path for the
stable_audio_tools/models/lora/utils.py:240
Functioncreate_batch_from_json
(json, key)
stable_audio_tools/training/autoencoders.py:53
Functioncreate_blocked_mask
(audio, block_size, num_blocks)
stable_audio_tools/models/autoencoders.py:60
Functioncreate_causal_mask
(i, j, device)
stable_audio_tools/models/transformer.py:183
Functioncreate_model_from_config_path
(model_config_path)
stable_audio_tools/models/factory.py:29
Functioncross_uniform_loss
(x, y, t=2)
stable_audio_tools/training/clap.py:37
Functiondct1_rfft_impl
(x)
stable_audio_tools/models/transforms.py:204
Functiondct_2d
2-dimentional Discrete Cosine Transform, Type II (a.k.a. the DCT) For the meaning of the parameter `norm`, see: https://docs.scipy.org/d
stable_audio_tools/models/transforms.py:285
Methoddecode
(self, latents, steps=100)
stable_audio_tools/models/autoencoders.py:1097
Methoddecode
(self, z, **kwargs)
stable_audio_tools/models/pretransforms.py:89
Methoddecode
(self, z: torch.Tensor, length: Optional[int] = None)
stable_audio_tools/models/pretransforms.py:402
Methoddecode
(self, z)
stable_audio_tools/models/pretransforms.py:470
Methoddecode
(self, x)
stable_audio_tools/models/pretransforms.py:512
Methoddecode
(self, z)
stable_audio_tools/models/pretransforms.py:537
Methoddecode
(self, x)
stable_audio_tools/models/pretransforms.py:561
Methoddecode
(self, z)
stable_audio_tools/models/pretransforms.py:611
Methoddecode
(self, z)
stable_audio_tools/models/pretransforms.py:674
← previousnext →701–800 of 1,182, ranked by callers