MCPcopy Create free account

hub / github.com/AlayaLab/Hive / functions

Functions3,853 in github.com/AlayaLab/Hive

↓ 4 callersMethoddecode
(self, tokens)
models/audiosep/models/CLAP/open_clip/tokenizer.py:154
↓ 4 callersFunctiondiscriminator_loss
(disc_real_outputs, disc_generated_outputs)
models/flowsep/latent_encoder/wavedecoder/decoder.py:403
↓ 4 callersMethodencode_first_stage
(self, x)
models/flowsep/latent_diffusion/models/ddpm_flow.py:908
↓ 4 callersMethodevent_type_range
Return [min_id, max_id] for an event type.
models/flowsep/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:200
↓ 4 callersFunctionfeature_loss
(fmap_r, fmap_g)
models/flowsep/latent_encoder/wavedecoder/decoder.py:394
↓ 4 callersFunctiongather_features
( audio_features, text_features, audio_features_mlp=None, text_features_mlp=None, loc
models/audiosep/models/CLAP/open_clip/loss.py:15
↓ 4 callersFunctiongenerator_loss
(disc_outputs)
models/flowsep/latent_encoder/wavedecoder/decoder.py:417
↓ 4 callersMethodget_first_stage_encoding
(self, encoder_posterior)
models/flowsep/latent_diffusion/models/ddpm_flow.py:761
↓ 4 callersMethodget_loss
(self, pred, target, mean=True)
models/flowsep/latent_diffusion/models/ddpm_flow.py:394
↓ 4 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: Create sinusoidal timestep embeddings. :param timesteps: a 1
models/flowsep/diffusers/models/embeddings.py:22
↓ 4 callersFunctioninit_bn
Initialize a Batchnorm layer.
models/audiosep/models/base.py:18
↓ 4 callersFunctioninterpolate
Interpolate data in time domain. This is used to compensate the resolution reduction in downsampling of a CNN. Args: x: (batch_size
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/pytorch_utils.py:116
↓ 4 callersMethodinverse
(self, magnitude, phase)
models/flowsep/utilities/audio/stft.py:83
↓ 4 callersFunctionis_pretrained_params
(n)
models/audiosep/models/CLAP/training/lp_main.py:120
↓ 4 callersFunctionis_pretrained_params
(n)
models/audiosep/models/CLAP/training/main.py:114
↓ 4 callersFunctionmove_data_to_device
(x, device)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/pytorch_utils.py:7
↓ 4 callersFunctionnoise_pred_fn
(x, t_continuous, cond=None)
models/flowsep/latent_diffusion/models/dpm_solver/dpm_solver.py:332
↓ 4 callersFunctionpad_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_
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/pytorch_utils.py:133
↓ 4 callersMethodput
(self, tar_file, tar_samples)
hive_dataset/mix_curation/mix_data_curation.py:323
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
models/flowsep/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:95
↓ 4 callersMethodset_attn_processor
r""" Parameters: `processor (`dict` of `AttentionProcessor` or `AttentionProcessor`): The instantiated processo
models/flowsep/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:650
↓ 4 callersFunctionset_verbosity
Set the verbosity level for the 🤗 Diffusers' root logger. Args: verbosity (`int`): Logging level, e.g., one of:
models/flowsep/diffusers/utils/logging.py:148
↓ 4 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may
models/flowsep/latent_diffusion/modules/diffusionmodules/util.py:210
↓ 4 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distribu
models/audiosep/models/CLAP/open_clip/htsat.py:270
↓ 4 callersFunctionworld_info_from_env
()
models/audiosep/models/CLAP/training/distributed.py:45
↓ 3 callersFunctionNormalize
(in_channels)
models/flowsep/latent_diffusion/modules/attention.py:76
↓ 3 callersMethod__init__
(self, input_size, hidden_size, output_size, num_layers=1, context_dim=512, dropout=0)
models/flowsep/latent_diffusion/modules/dptnet.py:134
↓ 3 callersMethod__init__
Initialize an empty AttentionStore :param step_index: used to visualize only a specific step in the diffusion process
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:114
↓ 3 callersMethod_aggregate_and_get_max_attention_per_token
Aggregates the attention for each token and computes the max activation value for each token to alter.
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:607
↓ 3 callersMethod_cast_floating_to
Helper method to cast floating-point values of given parameter `PyTree` to given `dtype`.
models/flowsep/diffusers/models/modeling_flax_utils.py:63
↓ 3 callersMethod_combine_joint
r""" Combines a latent image img_vae of shape (B, C, H, W), a CLIP-embedded image img_clip of shape (B, L_img, clip_img_dim), and a
models/flowsep/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:816
↓ 3 callersMethod_compute_loss
Computes the attend-and-excite loss using the maximum attention value for each token.
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:622
↓ 3 callersMethod_encode_vae_image
(self, image: torch.Tensor, generator: torch.Generator)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:668
↓ 3 callersFunction_pad_phonemes
(phonemes_list)
models/flowsep/utilities/data/add_on.py:64
↓ 3 callersFunction_resnet_conv3x3
(in_planes, out_planes)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/models.py:689
↓ 3 callersMethod_split
r""" Splits a flattened embedding x of shape (B, C * H * W + clip_img_dim) into two tensors of shape (B, C, H, W) and (B, 1, clip_im
models/flowsep/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:772
↓ 3 callersMethod_split_joint
r""" Splits a flattened embedding x of shape (B, C * H * W + clip_img_dim + text_seq_len * text_dim] into (img_vae, img_clip, text)
models/flowsep/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:797
↓ 3 callersFunctionadd_to_tar
(tar, filename, data)
hive_dataset/mix_from_metadata/mix_from_metadata.py:218
↓ 3 callersMethodbackward_loop
Perform backward process given list of time steps Args: latents: Latents at time timesteps[0]. timestep
models/flowsep/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:250
↓ 3 callersFunctionbatch_query
(audios: list[str], model, processor)
pipeline/code/03_filter_single_event_qwen.py:32
↓ 3 callersMethodcheck_inputs
( self, prompt, strength, callback_steps, negative_prompt=None,
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:669
↓ 3 callersFunctiondefault
(val, d)
models/flowsep/latent_diffusion/modules/attention.py:20
↓ 3 callersMethoddpm_solver_first_update
DPM-Solver-1 (equivalent to DDIM) from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s
models/flowsep/latent_diffusion/models/dpm_solver/dpm_solver.py:610
↓ 3 callersMethodencode
(self, x)
models/flowsep/latent_encoder/autoencoder.py:132
↓ 3 callersMethodencode
(self, prefix)
models/flowsep/diffusers/pipelines/unidiffuser/modeling_text_decoder.py:164
↓ 3 callersMethodencode
Reverse step process: recover noisy image from generated image. Args: images (`List[PIL Image]`): list of images to encode
models/flowsep/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py:199
↓ 3 callersMethodencode
(self, x: torch.FloatTensor, return_dict: bool = True)
models/flowsep/diffusers/models/vq_model.py:119
↓ 3 callersFunctionevaluate
(model, data, epoch, args, tb_writer=None)
models/audiosep/models/CLAP/training/train.py:267
↓ 3 callersFunctionevaluate
(model, data, epoch, args, tb_writer=None, extra_suffix="")
models/audiosep/models/CLAP/training/lp_train.py:209
↓ 3 callersMethodextract_init_dict
(cls, config_dict, **kwargs)
models/flowsep/diffusers/configuration_utils.py:433
↓ 3 callersMethodforward
(self, x)
models/flowsep/latent_diffusion/modules/dprnn.py:231
↓ 3 callersMethodforward_encoder
(self, x, mask_ratio, mask_2d=False)
models/flowsep/latent_diffusion/modules/audiomae/models_mae.py:301
↓ 3 callersFunctionfreeze_batch_norm_2d
Converts all `BatchNorm2d` and `SyncBatchNorm` layers of provided module into `FrozenBatchNorm2d`. If `module` is itself an instance of eit
models/audiosep/models/CLAP/open_clip/utils.py:42
↓ 3 callersMethodgenerate_queue
(self)
models/audiosep/models/CLAP/training/data.py:120
↓ 3 callersMethodgenerate_sample
( self, batchs, ddim_steps=200, ddim_eta=1.0, x_T=None,
models/flowsep/latent_diffusion/models/ddpm_flow.py:1242
↓ 3 callersFunctionget_audio_features
Calculate and add audio features to sample. Sample: a dict containing all the data of current sample. audio_data: a tensor of shape (T
models/audiosep/models/CLAP/training/data.py:451
↓ 3 callersMethodget_empty_store
()
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:76
↓ 3 callersFunctionget_filename
(path)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/utilities.py:18
↓ 3 callersFunctionget_logger
Return a logger with the specified name. This function is not supposed to be directly accessed unless you are writing a custom diffusers
models/flowsep/diffusers/utils/logging.py:111
↓ 3 callersFunctionget_mel
(audio_data, audio_cfg)
models/audiosep/models/CLAP/training/data.py:413
↓ 3 callersFunctionget_pretrained_url
(model: str, tag: str)
models/audiosep/models/CLAP/open_clip/pretrained.py:106
↓ 3 callersMethodget_query_embed
(self, modality, audio=None, text=None, use_text_ratio=0.5, device=None)
models/audiosep/models/clap_encoder.py:93
↓ 3 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
models/flowsep/diffusers/schedulers/scheduling_dpmsolver_sde.py:178
↓ 3 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
models/flowsep/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:118
↓ 3 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
models/flowsep/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:117
↓ 3 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
models/flowsep/diffusers/schedulers/scheduling_heun_discrete.py:119
↓ 3 callersFunctionint16_to_float32
(x)
models/audiosep/models/CLAP/training/data.py:71
↓ 3 callersFunctionis_dist_avail_and_initialized
()
models/flowsep/latent_diffusion/modules/audiomae/util/misc.py:187
↓ 3 callersFunctionis_k_diffusion_available
()
models/flowsep/diffusers/utils/import_utils.py:350
↓ 3 callersFunctionis_torchsde_available
()
models/flowsep/diffusers/utils/import_utils.py:382
↓ 3 callersFunctionis_xformers_available
()
models/flowsep/diffusers/utils/import_utils.py:342
↓ 3 callersMethodkl
(self, other=None)
models/flowsep/latent_diffusion/modules/distributions/distributions.py:43
↓ 3 callersFunctionload_json
(fname)
models/flowsep/utilities/tools.py:44
↓ 3 callersFunctionload_state_dict
Reads a checkpoint file, returning properly formatted errors if they arise.
models/flowsep/diffusers/models/modeling_utils.py:100
↓ 3 callersMethodmarginal_alpha
Compute alpha_t of a given continuous-time label t in [0, T].
models/flowsep/latent_diffusion/models/dpm_solver/dpm_solver.py:163
↓ 3 callersMethodmode
(self)
models/flowsep/diffusers/models/vae.py:440
↓ 3 callersFunctionparse_yaml
r"""Parse yaml file. Args: config_yaml (str): config yaml path Returns: yaml_dict (Dict): parsed yaml file
models/audiosep/utils.py:61
↓ 3 callersMethodpost_process_latents
(self, prior_latents)
models/flowsep/diffusers/models/prior_transformer.py:192
↓ 3 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
models/flowsep/diffusers/pipelines/unclip/pipeline_unclip.py:106
↓ 3 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:589
↓ 3 callersFunctionpreprocess
(image)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:161
↓ 3 callersMethodpreprocess
Preprocess the image input, accepted formats are PIL images, numpy arrays or pytorch tensors"
models/flowsep/diffusers/image_processor.py:113
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
models/flowsep/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:111
↓ 3 callersMethodreset
(self)
models/audiosep/models/CLAP/training/train.py:28
↓ 3 callersMethodreset
(self)
models/audiosep/models/CLAP/training/lp_train.py:29
↓ 3 callersMethodreset_x0
(self, x_in, cond, act_dim)
models/flowsep/diffusers/experimental/rl/value_guided_sampling.py:83
↓ 3 callersMethodreshape_heads_to_batch_dim
(self, tensor)
models/flowsep/diffusers/models/attention_flax.py:156
↓ 3 callersMethodrun_safety_checker
(self, image, device, dtype)
models/flowsep/diffusers/pipelines/deepfloyd_if/pipeline_if.py:397
↓ 3 callersFunctionsegment
(a, n)
models/flowsep/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:339
↓ 3 callersFunctionselect_norm
(norm, dim, shape)
models/flowsep/latent_diffusion/modules/dprnn.py:121
↓ 3 callersMethodset_use_memory_efficient_attention_xformers
( self, valid: bool, attention_op: Optional[Callable] = None )
models/flowsep/diffusers/pipelines/pipeline_utils.py:1487
↓ 3 callersMethodset_use_memory_efficient_attention_xformers
( self, valid: bool, attention_op: Optional[Callable] = None )
models/flowsep/diffusers/models/modeling_utils.py:218
↓ 3 callersMethodsinglestep_dpm_solver_second_update
Singlestep solver DPM-Solver-2 from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
models/flowsep/latent_diffusion/models/dpm_solver/dpm_solver.py:659
↓ 3 callersMethodtensor2numpy
(self, tensor)
models/flowsep/latent_encoder/autoencoder.py:347
↓ 3 callersMethodto_rgb
(self, x)
models/flowsep/latent_encoder/autoencoder.py:529
↓ 3 callersMethodto_torch
(self, x_in)
models/flowsep/diffusers/experimental/rl/value_guided_sampling.py:76
↓ 3 callersMethodtranspose_for_scores
(self, projection: torch.Tensor)
models/flowsep/diffusers/models/unet_1d_blocks.py:340
↓ 3 callersMethodtranspose_for_scores
(self, projection)
models/flowsep/diffusers/models/vae_flax.py:231
↓ 2 callersMethod__call__
Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`): The
models/flowsep/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:435
↓ 2 callersMethod__init__
(self,)
models/flowsep/latent_diffusion/modules/audiomae/AudioMAE.py:50
← previousnext →201–300 of 3,853, ranked by callers