MCPcopy Create free account

hub / github.com/cosmicman-cvpr2024/CosmicMan / functions

Functions6,241 in github.com/cosmicman-cvpr2024/CosmicMan

↓ 1 callersMethodset_resolution
Set resolution. Args: x_res (`int`): x resolution of spectrogram (time) y_res (`int`): y resolution of spectrogram (f
diffusers/src/diffusers/pipelines/audio_diffusion/mel.py:73
↓ 1 callersMethodset_sigmas
Sets the noise scales used for the diffusion chain. Supporting function to be run before inference. The sigmas control the weight of
diffusers/src/diffusers/schedulers/scheduling_sde_ve_flax.py:128
↓ 1 callersMethodset_text_mode
r"""Manually set the generation mode to unconditional ("marginal") text generation.
diffusers/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:282
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_infe
diffusers/src/diffusers/schedulers/scheduling_ipndm.py:61
↓ 1 callersMethodset_timesteps
Sets the timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_inference_ste
diffusers/src/diffusers/schedulers/scheduling_lms_discrete.py:225
↓ 1 callersMethodset_timesteps
Sets the timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_inference_ste
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_sde.py:249
↓ 1 callersMethodset_timesteps
Sets the continuous timesteps used for the diffusion chain. Supporting function to be run before inference. Args: state
diffusers/src/diffusers/schedulers/scheduling_sde_ve_flax.py:109
↓ 1 callersMethodset_timesteps
Sets the timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_inference_ste
diffusers/src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:192
↓ 1 callersMethodset_timesteps
Sets the continuous timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_in
diffusers/src/diffusers/schedulers/scheduling_sde_ve.py:103
↓ 1 callersMethodset_timesteps
Sets the timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_inference_ste
diffusers/src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:191
↓ 1 callersMethodset_timesteps
Sets the timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_inference_ste
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:255
↓ 1 callersMethodset_timesteps
Sets the timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_inference_ste
diffusers/src/diffusers/schedulers/scheduling_heun_discrete.py:197
↓ 1 callersMethodset_transformer_params
(self, mix_ratio: float = 0.5, condition_types: Tuple = ("text", "image"))
diffusers/src/diffusers/pipelines/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:364
↓ 1 callersMethodshape
(x)
diffusers/src/diffusers/models/embeddings.py:515
↓ 1 callersMethodsigma_to_t
(self, sigma)
diffusers/src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:274
↓ 1 callersMethodsinglestep_dpm_solver_second_order_update
One step for the second-order singlestep DPM-Solver. It computes the solution at time `prev_timestep` from the time `timestep_list[-
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:468
↓ 1 callersMethodsinglestep_dpm_solver_third_order_update
One step for the third-order singlestep DPM-Solver. It computes the solution at time `prev_timestep` from the time `timestep_list[-3
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:529
↓ 1 callersMethodsinglestep_dpm_solver_update
One step for the singlestep DPM-Solver. Args: model_output_list (`List[torch.FloatTensor]`): direct outp
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:600
↓ 1 callersFunctionslerp
Find the interpolation point between the 'low' and 'high' values for the given 'val'. See https://en.wikipedia.org/wiki/Slerp for more details on
diffusers/examples/community/unclip_image_interpolation.py:28
↓ 1 callersFunctionslerp
helper function to spherically interpolate two arrays v1 v2
diffusers/examples/community/interpolate_stable_diffusion.py:22
↓ 1 callersFunctionsort_imports
Sort `_import_structure` imports in `file`, `check_only` determines if we only check or overwrite.
diffusers/utils/custom_init_isort.py:168
↓ 1 callersFunctionsort_imports_in_all_inits
(check_only=True)
diffusers/utils/custom_init_isort.py:236
↓ 1 callersFunctionsort_objects_in_import
Return the same `import_statement` but with objects properly sorted.
diffusers/utils/custom_init_isort.py:117
↓ 1 callersFunctionspherical_dist_loss
(x, y)
diffusers/examples/community/clip_guided_images_mixing_stable_diffusion.py:71
↓ 1 callersFunctionsplit_attentions
(*, weight, bias, split, chunk_size)
diffusers/scripts/convert_shap_e_to_diffusers.py:412
↓ 1 callersFunctionsqueeze_tile
(tile, original_image, original_slice, slice_x)
diffusers/examples/community/tiled_upscaling.py:75
↓ 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 models w
diffusers/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:968
↓ 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 `StableUnC
diffusers/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1001
↓ 1 callersMethodstep
Step function propagating the sample with the multistep UniPC. Args: model_output (`torch.FloatTensor`): direct output f
diffusers/src/diffusers/schedulers/scheduling_unipc_multistep.py:559
↓ 1 callersMethodstep
Step function propagating the sample with the singlestep DPM-Solver. Args: model_output (`torch.FloatTensor`): direct ou
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:637
↓ 1 callersMethodstep_prk
Step function propagating the sample with the Runge-Kutta method. RK takes 4 forward passes to approximate the solution to the differ
diffusers/src/diffusers/schedulers/scheduling_pndm_flax.py:294
↓ 1 callersFunctionstr2bool
https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse
diffusers/scripts/convert_consistency_to_diffusers.py:107
↓ 1 callersFunctionsummarize_chunk
(query, key, value)
diffusers/src/diffusers/models/attention_flax.py:31
↓ 1 callersFunctionsummary_failures_short
(tr)
diffusers/src/diffusers/utils/testing_utils.py:435
↓ 1 callersFunctionsuper_res_unet_first_steps_model_from_original_config
()
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:399
↓ 1 callersFunctionsuper_res_unet_first_steps_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:405
↓ 1 callersFunctionsuper_res_unet_last_step_model_from_original_config
()
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:494
↓ 1 callersFunctionsuper_res_unet_last_step_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:500
↓ 1 callersFunctionsuperres_convert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
diffusers/scripts/convert_if.py:867
↓ 1 callersFunctionsuperres_create_unet_diffusers_config
(original_unet_config)
diffusers/scripts/convert_if.py:785
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/latent_diffusion/test_latent_diffusion.py:142
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion_safe/test_safe_diffusion.py:32
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/unclip/test_unclip.py:450
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:378
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_upscale.py:34
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:282
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_v_pred.py:42
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/vq_diffusion/test_vq_diffusion.py:33
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/altdiffusion/test_alt_diffusion_img2img.py:43
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/controlnet/test_controlnet.py:404
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/audio_diffusion/test_audio_diffusion.py:40
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/semantic_stable_diffusion/test_semantic_diffusion.py:35
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:256
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_ldm3d.py:256
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_image_variation.py:158
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion.py:1020
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:483
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:337
↓ 1 callersMethodtearDownClass
(cls)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:59
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:58
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:79
↓ 1 callersMethodtest_determinism
(self)
diffusers/tests/models/test_models_unet_1d.py:56
↓ 1 callersMethodtest_from_save_pretrained
(self)
diffusers/tests/models/test_models_unet_1d.py:64
↓ 1 callersMethodtest_from_save_pretrained_variant
(self)
diffusers/tests/models/test_models_unet_1d.py:68
↓ 1 callersMethodtest_model_from_pretrained
(self)
diffusers/tests/models/test_models_unet_1d.py:72
↓ 1 callersMethodtest_outputs_equivalence
(self)
diffusers/tests/models/test_models_unet_1d.py:60
↓ 1 callersMethodtext2img_sd1_1
( self, prompt: Union[str, List[str]], height: int = 512, width: int = 512,
diffusers/examples/community/stable_diffusion_comparison.py:112
↓ 1 callersMethodtext2img_sd1_2
( self, prompt: Union[str, List[str]], height: int = 512, width: int = 512,
diffusers/examples/community/stable_diffusion_comparison.py:149
↓ 1 callersMethodtext2img_sd1_3
( self, prompt: Union[str, List[str]], height: int = 512, width: int = 512,
diffusers/examples/community/stable_diffusion_comparison.py:186
↓ 1 callersMethodtext2img_sd1_4
( self, prompt: Union[str, List[str]], height: int = 512, width: int = 512,
diffusers/examples/community/stable_diffusion_comparison.py:223
↓ 1 callersFunctiontext_proj_from_original_config
()
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:330
↓ 1 callersFunctiontext_proj_original_checkpoint_to_diffusers_checkpoint
(checkpoint)
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:343
↓ 1 callersMethodtext_to_image
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`): The
diffusers/src/diffusers/pipelines/versatile_diffusion/pipeline_versatile_diffusion.py:199
↓ 1 callersMethodtiled_decode
r""" Decode a batch of images using a tiled decoder. Args: z (`torch.FloatTensor`): Input batch of latent vectors.
diffusers/src/diffusers/models/autoencoder_kl.py:342
↓ 1 callersMethodtiled_encode
r"""Encode a batch of images using a tiled encoder. When this option is enabled, the VAE will split the input tensor into tiles to compute en
diffusers/src/diffusers/models/autoencoder_kl.py:288
↓ 1 callersMethodto_json_file
Save the configuration instance's parameters to a JSON file. Args: json_file_path (`str` or `os.PathLike`):
diffusers/src/diffusers/configuration_utils.py:571
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
diffusers/src/diffusers/models/embeddings.py:333
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
diffusers/examples/text_to_image/train_text_to_image_lora.py:600
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
diffusers/examples/text_to_image/train_text_to_image_flax.py:310
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
diffusers/examples/text_to_image/train_text_to_image.py:757
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
diffusers/examples/controlnet/train_controlnet_flax.py:576
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
diffusers/examples/controlnet/train_controlnet.py:639
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
diffusers/examples/research_projects/lora/train_text_to_image_lora.py:639
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
diffusers/examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:670
↓ 1 callersMethodtokenize_prompt
Tokenizes the prompt for this diffusion region using a given tokenizer
diffusers/examples/community/mixture_canvas.py:135
↓ 1 callersFunctiontorch_dfs
(model: torch.nn.Module)
diffusers/examples/community/stable_diffusion_reference.py:46
↓ 1 callersFunctiontorch_dfs
(model: torch.nn.Module)
diffusers/examples/community/stable_diffusion_controlnet_reference.py:59
↓ 1 callersFunctiontransform_conv_attns
(new_state_dict, new_k, v)
diffusers/scripts/convert_dance_diffusion_to_diffusers.py:232
↓ 1 callersFunctiontransformer_feedforward_to_diffusers_checkpoint
(checkpoint, *, diffusers_feedforward_prefix, feedforward_prefix)
diffusers/scripts/convert_vq_diffusion_to_diffusers.py:678
↓ 1 callersFunctiontransformer_model_from_original_config
( original_diffusion_config, original_transformer_config, original_content_embedding_config )
diffusers/scripts/convert_vq_diffusion_to_diffusers.py:471
↓ 1 callersFunctiontransformer_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
diffusers/scripts/convert_vq_diffusion_to_diffusers.py:537
↓ 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 :
diffusers/src/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 probabilities
diffusers/src/diffusers/pipelines/vq_diffusion/pipeline_vq_diffusion.py:310
↓ 1 callersFunctionunet_model_from_original_config
()
diffusers/scripts/convert_kandinsky_to_diffusers.py:281
↓ 1 callersFunctionunet_model_from_original_config
(original_config)
diffusers/scripts/convert_k_upscaler_to_diffusers.py:217
↓ 1 callersFunctionunet_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
diffusers/scripts/convert_kandinsky_to_diffusers.py:287
↓ 1 callersFunctionunet_to_diffusers_checkpoint
(model, checkpoint)
diffusers/scripts/convert_k_upscaler_to_diffusers.py:175
↓ 1 callersMethodunmap_to_all
(self, inds)
diffusers/src/diffusers/models/vae.py:335
↓ 1 callersFunctionunshard
(x: jnp.ndarray)
diffusers/src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:523
↓ 1 callersFunctionunshard
(x: jnp.ndarray)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py:557
← previousnext →2,101–2,200 of 6,241, ranked by callers