MCPcopy Create free account

hub / github.com/AlayaLab/Hive / functions

Functions3,853 in github.com/AlayaLab/Hive

↓ 9 callersFunctionextract_into_tensor
(a, t, x_shape)
models/flowsep/latent_diffusion/modules/diffusionmodules/util.py:155
↓ 9 callersMethodload_config
r""" Instantiate a Python class from a config dictionary Parameters: pretrained_model_name_or_path (`str` or `os.Path
models/flowsep/diffusers/configuration_utils.py:253
↓ 9 callersMethodresample
(self, waveform, sr)
models/flowsep/utilities/data/dataset.py:354
↓ 8 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
models/flowsep/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:1349
↓ 8 callersMethod_get_signature_keys
(obj)
models/flowsep/diffusers/pipelines/pipeline_utils.py:1380
↓ 8 callersFunctionadopt_weight
(weight, global_step, threshold=0, value=0.0)
models/flowsep/latent_diffusion/modules/losses/vqperceptual.py:21
↓ 8 callersMethodenable_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and
models/flowsep/diffusers/models/autoencoder_kl.py:130
↓ 8 callersFunctionget_padding
(kernel_size, dilation=1)
models/flowsep/bigvgan/model.py:31
↓ 8 callersMethodstate_dict
(self)
models/flowsep/latent_diffusion/modules/audiomae/util/misc.py:273
↓ 8 callersFunctiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An i
models/audiosep/models/CLAP/open_clip/tokenizer.py:167
↓ 8 callersMethodupdate
(self, **kwargs)
models/flowsep/latent_diffusion/modules/audiomae/util/misc.py:91
↓ 8 callersFunctionzero_module
Zero out the parameters of a module and return it.
models/flowsep/latent_diffusion/modules/diffusionmodules/util.py:237
↓ 7 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads:
models/flowsep/diffusers/models/attention_processor.py:51
↓ 7 callersMethod__init__
(self, *args, **kwargs)
models/flowsep/diffusers/models/cross_attention.py:42
↓ 7 callersMethod__init__
(self, dim_in: int, dim_out: int, approximate: str = "none")
models/flowsep/diffusers/models/attention.py:240
↓ 7 callersMethod__init__
Construct a layernorm module in the T5 style. No bias and no subtraction of mean.
models/flowsep/diffusers/models/t5_film_transformer.py:274
↓ 7 callersMethod__init__
(self, h)
models/flowsep/bigvgan/model.py:320
↓ 7 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act
models/audiosep/models/CLAP/open_clip/htsat.py:207
↓ 7 callersMethod__init__
( self, embed_dim: int, audio_cfg: CLAPAudioCfp, text_cfg: CLAPTextCfg,
models/audiosep/models/CLAP/open_clip/model.py:423
↓ 7 callersFunction_add_variant
(weights_name: str, variant: Optional[str] = None)
models/flowsep/diffusers/utils/hub_utils.py:237
↓ 7 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/models.py:2428
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
models/flowsep/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:309
↓ 7 callersMethodapply_watermark
(self, images: List[PIL.Image.Image], sample_size=None)
models/flowsep/diffusers/pipelines/deepfloyd_if/watermark.py:19
↓ 7 callersMethoddisable_tiling
r""" Disable tiled VAE decoding. If `enable_vae_tiling` was previously invoked, this method will go back to computing decoding in on
models/flowsep/diffusers/models/autoencoder_kl.py:138
↓ 7 callersMethodgelu
(self, gate)
models/flowsep/diffusers/models/attention.py:245
↓ 7 callersMethodget_input
(self, batch, k)
models/flowsep/latent_diffusion/models/ddpm_flow.py:409
↓ 7 callersFunctionget_optimizer
(params, lr, betas, eps, momentum, optimizer_name)
models/audiosep/models/CLAP/open_clip/utils.py:352
↓ 7 callersFunctioninit_bn
Initialize a Batchnorm layer.
models/audiosep/models/CLAP/open_clip/pann_model.py:27
↓ 7 callersFunctioninit_layer
Initialize a Linear or Convolutional layer.
models/audiosep/models/base.py:9
↓ 7 callersFunctionis_transformers_version
Args: Compares the current Transformers version to a given reference with an operation. operation (`str`): A string r
models/flowsep/diffusers/utils/import_utils.py:595
↓ 7 callersMethodload_state_dict
(self, resume_iteration)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/utilities.py:165
↓ 7 callersFunctionmake_attn
(in_channels, attn_type="vanilla")
models/flowsep/latent_diffusion/modules/diffusionmodules/model.py:233
↓ 7 callersMethodnormalize
(self, x_in, key)
models/flowsep/diffusers/experimental/rl/value_guided_sampling.py:70
↓ 7 callersMethodscale
(self, embeds)
models/flowsep/diffusers/pipelines/stable_diffusion/stable_unclip_image_normalizer.py:51
↓ 7 callersMethodtransform
(self, input_data)
models/flowsep/utilities/audio/stft.py:52
↓ 7 callersMethodupdate
(self, val, n=1)
models/audiosep/models/CLAP/training/lp_train.py:35
↓ 6 callersMethod__init__
(self, dim_in, dim_out)
models/flowsep/latent_diffusion/modules/attention.py:39
↓ 6 callersMethod__init__
(self, channels, kernel_size=3, dilation=(1, 3, 5))
models/flowsep/latent_encoder/wavedecoder/decoder.py:28
↓ 6 callersFunction_copy_linear
(hf_linear, pt_linear)
models/flowsep/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:689
↓ 6 callersMethod_get_variance
(self, t, predicted_variance=None, variance_type=None)
models/flowsep/diffusers/schedulers/scheduling_ddpm.py:238
↓ 6 callersFunctionappend_to_dict
(dict, key, value)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/pytorch_utils.py:36
↓ 6 callersMethodapply_model
(self, x_noisy, t, cond, return_ids=False)
models/flowsep/latent_diffusion/models/ddpm_flow.py:1045
↓ 6 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward p
models/flowsep/latent_diffusion/modules/diffusionmodules/util.py:161
↓ 6 callersFunctioncosine_lr
(optimizer, base_lr, warmup_length, steps)
models/audiosep/models/CLAP/training/scheduler.py:13
↓ 6 callersFunctioncreate_model
( amodel_name: str, tmodel_name: str, pretrained: str = "", precision: str = "fp32",
models/audiosep/models/CLAP/open_clip/factory.py:70
↓ 6 callersFunctiondefault
(val, d)
models/flowsep/latent_diffusion/modules/x_transformer.py:56
↓ 6 callersFunctiondo_mixup
Args: x: (batch_size , ...) mixup_lambda: (batch_size,) Returns: out: (batch_size, ...)
models/audiosep/models/CLAP/open_clip/utils.py:171
↓ 6 callersMethodencode_audio
(self, audio, device)
models/audiosep/models/CLAP/open_clip/model.py:616
↓ 6 callersMethodget_dataset_metadata_path
(self, dataset, key)
models/flowsep/utilities/data/dataset.py:154
↓ 6 callersFunctionget_down_block
(down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsample)
models/flowsep/diffusers/models/unet_1d_blocks.py:613
↓ 6 callersFunctionis_compiled_module
Check whether the module was compiled with torch.compile()
models/flowsep/diffusers/utils/torch_utils.py:80
↓ 6 callersFunctionis_note_seq_available
()
models/flowsep/diffusers/utils/import_utils.py:354
↓ 6 callersFunctionparse
(x)
models/audiosep/models/CLAP/open_clip/htsat.py:31
↓ 6 callersMethodrandom_uniform
(self, start, end)
models/flowsep/utilities/data/dataset.py:526
↓ 6 callersFunctionrenew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
models/flowsep/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:73
↓ 6 callersMethodsave_config
Save a configuration object to the directory `save_directory`, so that it can be re-loaded using the [`~ConfigMixin.from_config`] c
models/flowsep/diffusers/configuration_utils.py:140
↓ 6 callersMethodshuffle
Shuffle sampler indices.
models/flowsep/utilities/sampler.py:488
↓ 6 callersFunctionupfirdn2d_native
(tensor, kernel, up=1, down=1, pad=(0, 0))
models/flowsep/diffusers/models/resnet.py:789
↓ 6 callersFunctionvocoder_infer
(mels, vocoder, lengths=None)
models/flowsep/utilities/model.py:61
↓ 5 callersMethod__init__
(self, config: LDMBertConfig)
models/flowsep/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:698
↓ 5 callersMethod__init__
(self, dim: int)
models/flowsep/diffusers/pipelines/unidiffuser/modeling_uvit.py:122
↓ 5 callersMethod__init__
(self, film_meta, condition_size)
models/audiosep/models/resunet.py:11
↓ 5 callersMethod__init__
( self, sample_rate, window_size, hop_size, mel_bins, fm
models/audiosep/models/CLAP/open_clip/pann_model.py:430
↓ 5 callersMethodapply_rotary
(x, sinusoidal_pos)
models/flowsep/latent_diffusion/modules/dprtnet.py:294
↓ 5 callersFunctionbroadcast_to_shape_from_left
(x: jnp.ndarray, shape: Tuple[int])
models/flowsep/diffusers/schedulers/scheduling_utils_flax.py:182
↓ 5 callersMethoddecode
(self, quant)
models/flowsep/latent_encoder/autoencoder.py:461
↓ 5 callersMethodencode
(self, x)
models/flowsep/latent_encoder/autoencoder.py:450
↓ 5 callersMethodencode_event
Encode an event to an index.
models/flowsep/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:185
↓ 5 callersMethodencode_text
(self, text, device)
models/audiosep/models/CLAP/open_clip/model.py:631
↓ 5 callersFunctionget_runtime_device
()
app.py:26
↓ 5 callersMethodget_time_steps
Compute the intermediate time steps for sampling. Args: skip_type: A `str`. The type for the spacing of the time steps. We sup
models/flowsep/latent_diffusion/models/dpm_solver/dpm_solver.py:475
↓ 5 callersFunctionget_up_block
(up_block_type, num_layers, in_channels, out_channels, temb_channels, add_upsample)
models/flowsep/diffusers/models/unet_1d_blocks.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
models/audiosep/models/CLAP/open_clip/utils.py:186
↓ 5 callersMethodinverse_lambda
Compute the continuous-time label t in [0, T] of a given half-logSNR lambda_t.
models/flowsep/latent_diffusion/models/dpm_solver/dpm_solver.py:183
↓ 5 callersFunctionload_next_tar
()
hive_dataset/mix_curation/mix_data_curation.py:368
↓ 5 callersMethodread_wav_file
(self, filename)
models/flowsep/utilities/data/dataset.py:430
↓ 5 callersFunctionrearrange_dims
(tensor)
models/flowsep/diffusers/models/resnet.py:655
↓ 5 callersMethodshape
(x)
models/flowsep/diffusers/models/embeddings.py:474
↓ 5 callersFunctionshave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
models/flowsep/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:63
↓ 5 callersMethodto_tuple
Convert self to a tuple containing all the attributes/keys that are not `None`.
models/flowsep/diffusers/utils/outputs.py:104
↓ 5 callersFunctiontokenizer
(text)
models/audiosep/models/CLAP/training/data.py:46
↓ 5 callersMethodtranspose_for_scores
(self, x)
models/flowsep/latent_diffusion/modules/dprtnet.py:240
↓ 5 callersMethodvalue
(self)
models/flowsep/latent_diffusion/modules/audiomae/util/misc.py:74
↓ 5 callersFunctionzero_module
(module)
models/flowsep/diffusers/models/controlnet.py:585
↓ 4 callersMethod__init__
(self, in_channels, out_channels, filter_channels, kernel_size, p_dropout=0., activation=None, causal=False)
models/flowsep/latent_diffusion/modules/phoneme_encoder/attentions.py:272
↓ 4 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
models/flowsep/diffusers/models/unet_3d_blocks.py:606
↓ 4 callersMethod__init__
Sampler initialisation.
models/flowsep/utilities/sampler.py:453
↓ 4 callersMethod_combine
r""" Combines a latent iamge img_vae of shape (B, C, H, W) and a CLIP-embedded image img_clip of shape (B, 1, clip_img_dim) into a s
models/flowsep/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:788
↓ 4 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:476
↓ 4 callersMethod_get_init_keys
(cls)
models/flowsep/diffusers/configuration_utils.py:429
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/models.py:887
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
models/audiosep/models/CLAP/open_clip/model.py:192
↓ 4 callersFunction_ntuple
(n)
models/audiosep/models/CLAP/open_clip/htsat.py:30
↓ 4 callersFunction_resnet_conv1x1
(in_planes, out_planes)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/models.py:703
↓ 4 callersFunctionadd_noise_common
( state: CommonSchedulerState, original_samples: jnp.ndarray, noise: jnp.ndarray, timesteps: jnp.ndarray
models/flowsep/diffusers/schedulers/scheduling_utils_flax.py:273
↓ 4 callersMethodcheck_latents_shape
(self, latents_name, latents, expected_shape)
models/flowsep/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:949
↓ 4 callersFunctioncompare_versions
Args: Compares a library version to some requirement using a given operation. library_or_version (`str` or `packaging.version.Vers
models/flowsep/diffusers/utils/import_utils.py:563
↓ 4 callersFunctioncosine_distance
(image_embeds, text_embeds)
models/flowsep/diffusers/pipelines/stable_diffusion_safe/safety_checker.py:25
↓ 4 callersFunctioncosine_distance
(image_embeds, text_embeds)
models/flowsep/diffusers/pipelines/stable_diffusion/safety_checker.py:26
↓ 4 callersFunctioncreate_folder
(fd)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/utilities.py:13
← previousnext →101–200 of 3,853, ranked by callers