MCPcopy Create free account

hub / github.com/AlayaLab/Hive / functions

Functions3,853 in github.com/AlayaLab/Hive

↓ 1 callersMethodspectral_normalize
(self, magnitudes, normalize_fun)
models/flowsep/utilities/audio/stft.py:155
↓ 1 callersFunctionspectral_normalize_torch
(magnitudes)
models/flowsep/latent_diffusion/modules/losses/waveform_contperceptual_panns.py:26
↓ 1 callersFunctionspectral_normalize_torch
(magnitudes)
models/flowsep/latent_diffusion/modules/losses/waveform_contperceptual.py:25
↓ 1 callersFunctionspectral_normalize_torch
(magnitudes)
models/flowsep/utilities/data/big_vgan_mel.py:97
↓ 1 callersMethodspectrogram
(self, input, eps=0.)
models/audiosep/models/base.py:79
↓ 1 callersMethodspectrogram_phase
(self, input, eps=0.)
models/audiosep/models/base.py:83
↓ 1 callersMethodsplit_feature
(self, input, segment_size)
models/flowsep/latent_diffusion/modules/dprtnet.py:656
↓ 1 callersMethodsplit_feature
(self, input, segment_size)
models/flowsep/latent_diffusion/modules/dptnet.py:262
↓ 1 callersFunctionstable_unclip_image_encoder
Returns the image processor and clip image encoder for the img2img unclip pipeline. We currently know of two types of stable unclip model
models/flowsep/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:880
↓ 1 callersFunctionstable_unclip_image_noising_components
Returns the noising components for the img2img and txt2img unclip pipelines. Converts the stability noise augmentor into 1. a `Stabl
models/flowsep/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:913
↓ 1 callersMethodstem
(self, x)
models/audiosep/models/CLAP/open_clip/model.py:223
↓ 1 callersMethodstep
Step function propagating the sample with the multistep UniPC. Args: model_output (`torch.FloatTensor`): direct outp
models/flowsep/diffusers/schedulers/scheduling_unipc_multistep.py:518
↓ 1 callersMethodstep_plms
Step function propagating the sample with the linear multi-step method. This has one forward pass with multiple times to approximat
models/flowsep/diffusers/schedulers/scheduling_pndm.py:278
↓ 1 callersMethodstep_pred
Predict the sample at the previous timestep by reversing the SDE. Core function to propagate the diffusion process from the learned
models/flowsep/diffusers/schedulers/scheduling_sde_ve.py:156
↓ 1 callersMethodstep_prk
Step function propagating the sample with the Runge-Kutta method. RK takes 4 forward passes to approximate the solution to the diff
models/flowsep/diffusers/schedulers/scheduling_pndm.py:223
↓ 1 callersMethodstep_prk
Step function propagating the sample with the Runge-Kutta method. RK takes 4 forward passes to approximate the solution to the diff
models/flowsep/diffusers/schedulers/scheduling_pndm_flax.py:294
↓ 1 callersFunctionsummarize_chunk
(query, key, value)
models/flowsep/diffusers/models/attention_flax.py:31
↓ 1 callersFunctionsummary_failures_short
(tr)
models/flowsep/diffusers/utils/testing_utils.py:418
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
models/flowsep/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:58
↓ 1 callersFunctiontest
()
models/flowsep/latent_diffusion/modules/diffusers_unet.py:81
↓ 1 callersMethodtiled_decode
r"""Decode a batch of images using a tiled decoder. Args: When this option is enabled, the VAE will split the input tensor into ti
models/flowsep/diffusers/models/autoencoder_kl.py:257
↓ 1 callersMethodtiled_encode
r"""Encode a batch of images using a tiled encoder. Args: When this option is enabled, the VAE will split the input tensor into ti
models/flowsep/diffusers/models/autoencoder_kl.py:210
↓ 1 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/nn.py:125
↓ 1 callersMethodto_json_file
Save this instance to a JSON file. Args: json_file_path (`str` or `os.PathLike`): Path to the JSON
models/flowsep/diffusers/configuration_utils.py:559
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
models/flowsep/diffusers/models/embeddings.py:344
↓ 1 callersFunctiontokenizer
(text)
models/audiosep/models/CLAP/training/infer_demo.py:18
↓ 1 callersFunctiontrain
(args)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/finetune_template.py:81
↓ 1 callersFunctiontrain
Train AudioSet tagging model. Args: dataset_dir: str workspace: str data_type: 'balanced_train' | 'full_train' wind
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/main.py:67
↓ 1 callersFunctiontrain_one_epoch
( model, data, epoch, optimizer, scaler, scheduler, args, tb_writer=None )
models/audiosep/models/CLAP/training/train.py:48
↓ 1 callersFunctiontrain_one_epoch
( model, data, epoch, optimizer, scaler, scheduler, args, tb_writer=No
models/audiosep/models/CLAP/training/lp_train.py:49
↓ 1 callersMethodtrim_wav
(self, waveform)
models/flowsep/utilities/data/dataset.py:396
↓ 1 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distribution
models/flowsep/diffusers/pipelines/unidiffuser/modeling_uvit.py:56
↓ 1 callersMethodtruncate
Truncates log_p_x_0 such that for each column vector, the total cumulative probability is `truncation_rate` The lowest probabilitie
models/flowsep/diffusers/pipelines/vq_diffusion/pipeline_vq_diffusion.py:310
↓ 1 callersMethodundo_step
(self, sample, timestep, generator=None)
models/flowsep/diffusers/schedulers/scheduling_repaint.py:303
↓ 1 callersMethodunmap_to_all
(self, inds)
models/flowsep/diffusers/models/vae.py:335
↓ 1 callersFunctionunshard
(x: jnp.ndarray)
models/flowsep/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:523
↓ 1 callersFunctionunshard
(x: jnp.ndarray)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py:557
↓ 1 callersFunctionunshard
(x: jnp.ndarray)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py:514
↓ 1 callersFunctionunshard
(x: jnp.ndarray)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py:466
↓ 1 callersMethodupdate
(self, *args, **kwargs)
models/flowsep/diffusers/configuration_utils.py:68
↓ 1 callersFunctionupdate_top_k_performance
Record the top-k performance of the current epoch. current_top_k_metrics is a dictionary of the form: {1: top_1_ckpt_measure, 2: top_2_ckpt
models/audiosep/models/CLAP/training/lp_main.py:61
↓ 1 callersFunctionupdate_top_k_performance
Record the top-k performance of the current epoch. current_top_k_metrics is a dictionary of the form: {1: top_1_ckpt_measure, 2: top_2_ckpt
models/audiosep/models/CLAP/training/main.py:55
↓ 1 callersFunctionupsample_2d
r"""Upsample2D a batch of 2D images with the given filter. Accepts a batch of 2D images of the shape `[N, C, H, W]` or `[N, H, W, C]` and upsampl
models/flowsep/diffusers/models/resnet.py:717
↓ 1 callersFunctionvariance_scaling_
(tensor, scale=1.0, mode="fan_in", distribution="normal")
models/audiosep/models/CLAP/open_clip/htsat.py:291
↓ 1 callersFunctionvelocity_to_bin
(velocity, num_velocity_bins)
models/flowsep/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:343
↓ 1 callersMethodwarmup_step
(self)
models/flowsep/latent_diffusion/models/ddpm_flow.py:436
↓ 1 callersFunctionwarn_deprecated_model_variant
(pretrained_model_name_or_path, use_auth_token, variant, revision, model_filenames)
models/flowsep/diffusers/pipelines/pipeline_utils.py:255
↓ 1 callersFunctionwarp_single_latent
Warp latent of a single frame with given flow Args: latent: latent code of a single frame reference_flow: flow which to
models/flowsep/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:111
↓ 1 callersFunctionwav2mel
(filename, hop_length = 240,mel_channel = 256)
models/flowsep/utilities/data/big_vgan_mel.py:15
↓ 1 callersMethodwav_feature_extraction
(self, waveform)
infer_flowsep.py:44
↓ 1 callersMethodwav_feature_extraction
(self, waveform)
app.py:68
↓ 1 callersMethodwav_to_spectrogram_phase
Waveform to spectrogram. Args: input: (batch_size, segment_samples, channels_num) Outputs: output: (batch_
models/audiosep/models/base.py:91
↓ 1 callersFunctionwhitespace_clean
(text)
models/audiosep/models/CLAP/open_clip/tokenizer.py:68
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
models/audiosep/models/CLAP/open_clip/htsat.py:334
↓ 1 callersFunctionwindow_sumsquare
# from librosa 0.6 Compute the sum-square envelope of a window function at a given hop length. This is used to estimate modulation e
models/flowsep/utilities/audio/audio_processing.py:7
↓ 1 callersFunctionzero_module
Zero out the parameters of a module and return it.
models/flowsep/latent_diffusion/modules/nn.py:70
↓ 1 callersFunctionzero_shot_classifier
(model, classnames, templates, args)
models/audiosep/models/CLAP/training/zero_shot.py:13
FunctionRoberta_embeddings
(text)
models/audiosep/models/CLAP/open_clip/bert.py:22
Method__call__
(self, n, **kwargs)
models/flowsep/latent_diffusion/lr_scheduler.py:49
Method__call__
(self, n, **kwargs)
models/flowsep/latent_diffusion/lr_scheduler.py:111
Method__call__
(self, loss, optimizer, clip_grad=None, parameters=None, create_graph=False, update_grad=True)
models/flowsep/latent_diffusion/modules/audiomae/util/misc.py:257
Method__call__
(self, *args, **kwargs)
models/flowsep/diffusers/utils/logging.py:308
Method__call__
(self, **kwargs)
models/flowsep/diffusers/pipelines/onnx_utils.py:58
Method__call__
r""" Args: image (`torch.Tensor` or `PIL.Image.Image`): `Image`, or tensor representing an image batch, that wi
models/flowsep/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py:66
Method__call__
r""" Args: prompt (`str` or `List[str]`): The prompt or prompts to guide the image generation. hei
models/flowsep/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:64
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`):
models/flowsep/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:505
Method__call__
Function invoked when calling the pipeline for generation. Args: image (`PIL.Image.Image` or `List[PIL.Image.Image]`
models/flowsep/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py:245
Method__call__
Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`): The
models/flowsep/diffusers/pipelines/unclip/pipeline_unclip.py:252
Method__call__
r""" Args: batch_size (`int`, *optional*, defaults to 1): The number of images to generate. genera
models/flowsep/diffusers/pipelines/ddpm/pipeline_ddpm.py:41
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/audioldm/pipeline_audioldm.py:400
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:1079
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:480
Method__call__
(self, attn, hidden_states, encoder_hidden_states=None, attention_mask=None)
models/flowsep/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:52
Method__call__
Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:320
Method__call__
r""" Args: image (`torch.FloatTensor` or `PIL.Image.Image`): The original image to inpaint on. mas
models/flowsep/diffusers/pipelines/repaint/pipeline_repaint.py:82
Method__call__
Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`): The
models/flowsep/diffusers/pipelines/vq_diffusion/pipeline_vq_diffusion.py:167
Method__call__
r""" Args: batch_size (`int`, *optional*, defaults to 1): The number of images to generate. genera
models/flowsep/diffusers/pipelines/score_sde_ve/pipeline_score_sde_ve.py:41
Method__call__
r""" Args: batch_size (`int`, *optional*, defaults to 1): The number of audio samples to generate.
models/flowsep/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py:44
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt_ids (`jnp.array`): The
models/flowsep/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:358
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:979
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:805
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/controlnet/pipeline_controlnet.py:733
Method__call__
Generate random mel spectrogram from audio input and convert to audio. Args: batch_size (`int`): number of samples to generate
models/flowsep/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py:63
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`):
models/flowsep/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:251
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:544
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py:470
Method__call__
(self, clip_input)
models/flowsep/diffusers/pipelines/stable_diffusion/safety_checker_flax.py:47
Method__call__
( self, clip_input, params: dict = None, )
models/flowsep/diffusers/pipelines/stable_diffusion/safety_checker_flax.py:101
Method__call__
( self, attn: Attention, hidden_states, encoder_hidden_states=None,
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:234
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:804
Method__call__
(self, attn, is_cross: bool, place_in_unet: str)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:79
Method__call__
(self, attn: Attention, hidden_states, encoder_hidden_states=None, attention_mask=None)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:133
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:716
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint_legacy.py:295
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_k_diffusion.py:440
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_model_editing.py:609
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:291
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py:598
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:483
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:512
← previousnext →1,401–1,500 of 3,853, ranked by callers