MCPcopy Create free account

hub / github.com/AlayaLab/Hive / functions

Functions3,853 in github.com/AlayaLab/Hive

Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_pt_objects.py:704
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_pt_objects.py:719
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_onnx_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_transformers_and_k_diffusion_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_note_seq_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_librosa_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_librosa_objects.py:31
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:31
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:46
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:61
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:76
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:91
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_torch_and_torchsde_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_and_transformers_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_and_transformers_objects.py:31
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_and_transformers_objects.py:46
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_and_transformers_objects.py:61
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_transformers_and_torch_and_note_seq_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:31
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:46
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:61
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:76
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:91
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:106
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:121
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:136
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:151
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:166
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:181
Methodfrom_pretrained
(cls, *args, **kwargs)
models/flowsep/diffusers/utils/dummy_flax_objects.py:196
Methodfrom_pretrained
r""" Instantiate a Flax diffusion pipeline from pre-trained pipeline weights. The pipeline is set in evaluation mode by default us
models/flowsep/diffusers/pipelines/pipeline_flax_utils.py:194
Methodfrom_pretrained
r""" Instantiate a PyTorch diffusion pipeline from pre-trained pipeline weights. The pipeline is set in evaluation mode by default
models/flowsep/diffusers/pipelines/pipeline_utils.py:713
Methodfrom_pretrained
r""" Instantiate a Scheduler class from a pre-defined JSON configuration file inside a directory or Hub repo. Parameters:
models/flowsep/diffusers/schedulers/scheduling_utils.py:78
Methodfrom_pretrained
r""" Instantiate a Scheduler class from a pre-defined JSON-file. Parameters: pretrained_model_name_or_path (`str` or
models/flowsep/diffusers/schedulers/scheduling_utils_flax.py:72
Methodfrom_pretrained
r""" Instantiate a pretrained pytorch model from a pre-trained model configuration. The model is set in evaluation mode by default
models/flowsep/diffusers/models/modeling_utils.py:334
Methodfrom_pretrained
r""" Instantiate a pretrained flax model from a pre-trained model configuration. The warning *Weights from XXX not initialized fro
models/flowsep/diffusers/models/modeling_flax_utils.py:196
Methodfrom_unet
r""" Instantiate Controlnet class from UNet2DConditionModel. Parameters: unet (`UNet2DConditionModel`):
models/flowsep/diffusers/models/controlnet.py:263
Functionfused_add_tanh_sigmoid_multiply
(input_a, input_b, n_channels)
models/flowsep/latent_diffusion/modules/phoneme_encoder/commons.py:101
Methodgenerate_caption
Generates caption for a given image.
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:679
Methodgenerate_mask
r""" Function used to generate a latent mask given a mask prompt, a target prompt, and an image. Args: image (`PIL.Im
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:855
Functiongenerate_path
duration: [b, 1, t_x] mask: [b, 1, t_y, t_x]
models/flowsep/latent_diffusion/modules/phoneme_encoder/commons.py:128
Functionget_acc
(pred, target)
models/audiosep/models/CLAP/open_clip/loss.py:343
Functionget_audioset632_id_to_lb
r"""Get AudioSet 632 classes ID to label mapping.
models/audiosep/utils.py:75
Functionget_available_checkpoint_keys
(model, ckpt)
models/flowsep/utilities/model.py:10
Functionget_ckpt_path
(name, root, check=False)
models/flowsep/utilities/tools.py:118
Methodget_config_dict
(cls, *args, **kwargs)
models/flowsep/diffusers/configuration_utils.py:244
Functionget_constant_schedule
Create a schedule with a constant learning rate, using the learning rate set in optimizer. Args: optimizer ([`~torch.optim.Optim
models/flowsep/diffusers/optimization.py:40
Functionget_constant_schedule
(*args, **kwargs)
models/flowsep/diffusers/utils/dummy_pt_objects.py:170
Functionget_constant_schedule_with_warmup
Create a schedule with a constant learning rate preceded by a warmup period during which the learning rate increases linearly between 0 and
models/flowsep/diffusers/optimization.py:56
Functionget_constant_schedule_with_warmup
(*args, **kwargs)
models/flowsep/diffusers/utils/dummy_pt_objects.py:174
Functionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimiz
models/flowsep/diffusers/optimization.py:152
Functionget_cosine_schedule_with_warmup
(*args, **kwargs)
models/flowsep/diffusers/utils/dummy_pt_objects.py:178
Functionget_cosine_with_hard_restarts_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimiz
models/flowsep/diffusers/optimization.py:186
Functionget_cosine_with_hard_restarts_schedule_with_warmup
(*args, **kwargs)
models/flowsep/diffusers/utils/dummy_pt_objects.py:182
Functionget_csv_dataset
(args, preprocess_fn, is_train)
models/audiosep/models/CLAP/training/data.py:849
Functionget_data_from_log
Output dictionary from out.txt log file
models/audiosep/models/CLAP/open_clip/utils.py:240
Functionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_dow
models/flowsep/diffusers/models/unet_2d_blocks.py:29
Functionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_dow
models/flowsep/diffusers/models/unet_3d_blocks.py:23
Methodget_embeds
(self, prompt: List[str], batch_size: int = 16)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:703
Functionget_imagenet
(args, preprocess_fns, split)
models/audiosep/models/CLAP/training/data.py:310
Methodget_indices
Utility function to list the indices of the tokens you wish to alte
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:708
Methodget_input
(self, batch)
models/flowsep/latent_encoder/autoencoder.py:208
Methodget_label_ids
r""" Map label strings, *e.g.* from ImageNet, to corresponding class ids. Parameters: label (`str` or `dict` of `st
models/flowsep/diffusers/pipelines/dit/pipeline_dit.py:63
Methodget_last_layer
(self)
models/flowsep/latent_diffusion/modules/diffusionmodules/model.py:415
Methodget_last_layer
(self)
models/flowsep/latent_encoder/autoencoder.py:261
Methodget_last_layer
(self)
models/flowsep/latent_encoder/autoencoder.py:503
Functionget_linear_schedule_with_warmup
Create a schedule with a learning rate that decreases linearly from the initial lr set in the optimizer to 0, after a warmup period during
models/flowsep/diffusers/optimization.py:123
Functionget_linear_schedule_with_warmup
(*args, **kwargs)
models/flowsep/diffusers/utils/dummy_pt_objects.py:186
Methodget_lock
(self)
models/flowsep/diffusers/utils/logging.py:319
Methodget_log_dir
(self)
models/flowsep/latent_encoder/autoencoder.py:111
Functionget_log_levels_dict
()
models/flowsep/diffusers/utils/logging.py:107
Methodget_logit_scale
(self)
models/audiosep/models/CLAP/open_clip/model.py:729
Functionget_map
(pred, target)
models/audiosep/models/CLAP/open_clip/loss.py:337
Methodget_map_size
(module, input, output)
models/flowsep/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:632
Functionget_mask_from_lengths
(lengths, max_len=None)
models/flowsep/utilities/tools.py:306
Functionget_mauc
(pred, target)
models/audiosep/models/CLAP/open_clip/loss.py:349
Functionget_mean_sdr_from_dict
(sdris_dict)
models/audiosep/utils.py:228
Functionget_mel_from_wav
(audio, _stft, return_numpy=True)
models/flowsep/utilities/audio/tools.py:9
Methodget_model_output
(x, t)
models/flowsep/latent_diffusion/models/plms.py:282
Methodget_number_of_slices
Get number of slices in audio. Returns: `int`: number of spectograms audio can be sliced into
models/flowsep/diffusers/pipelines/audio_diffusion/mel.py:101
Functionget_padding
(kernel_size, dilation=1)
models/flowsep/latent_diffusion/modules/phoneme_encoder/commons.py:14
Functionget_param_num
(model)
models/flowsep/utilities/model.py:29
Methodget_params
(img, scale, ratio)
models/flowsep/latent_diffusion/modules/audiomae/util/crop.py:23
Functionget_piecewise_constant_schedule
Create a schedule with a constant learning rate, using the learning rate set in optimizer. Args: optimizer ([`~torch.optim.Optim
models/flowsep/diffusers/optimization.py:81
Functionget_polynomial_decay_schedule_with_warmup
Create a schedule with a learning rate that decreases as a polynomial decay from the initial lr set in the optimizer to end lr defined by *
models/flowsep/diffusers/optimization.py:221
Functionget_polynomial_decay_schedule_with_warmup
(*args, **kwargs)
models/flowsep/diffusers/utils/dummy_pt_objects.py:190
Functionget_relative_import_files
Get the list of all files that are needed for a given module. Note that this function recurses through the relative imports (if a imports b
models/flowsep/diffusers/utils/dynamic_modules_utils.py:97
Functionget_restore_step
(path)
models/flowsep/utilities/tools.py:79
Methodget_sample_text_caption
(self, datum, mix_datum, label_indices)
models/flowsep/utilities/data/dataset.py:470
Functionget_scheduler
Unified API to get any scheduler from its name. Args: name (`str` or `SchedulerType`): The name of the scheduler to
models/flowsep/diffusers/optimization.py:282
Functionget_scheduler
(*args, **kwargs)
models/flowsep/diffusers/utils/dummy_pt_objects.py:194
Functionget_ss_model
r"""Load trained universal source separation model. Args: configs (Dict) checkpoint_path (str): path of the checkpoint to loa
models/audiosep/utils.py:326
Functionget_sub_filepaths
(folder)
models/flowsep/latent_diffusion/modules/losses/panns_distance/model/utilities.py:25
Functionget_tar_path_from_txts
Get tar path from txt path
models/audiosep/models/CLAP/open_clip/utils.py:129
Functionget_tests_dir
Args: append_path: optional path to append to the tests dir path Return: The full path to the `tests` dir, so that the te
models/flowsep/diffusers/utils/testing_utils.py:87
Functionget_toy_dataset
(args, model_cfg, is_train)
models/audiosep/models/CLAP/training/data.py:878
Functionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, tem
models/flowsep/diffusers/models/unet_2d_blocks.py:210
Functionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, tem
models/flowsep/diffusers/models/unet_3d_blocks.py:79
← previousnext →3,301–3,400 of 3,853, ranked by callers