MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 4 callersFunctionis_torch_xla_available
()
src/diffusers/utils/import_utils.py:292
↓ 4 callersFunctionis_wandb_available
()
src/diffusers/utils/import_utils.py:344
↓ 4 callersFunctionload_checkpoint_to_model
(checkpoint, model, strict=False)
scripts/convert_kandinsky_to_diffusers.py:1320
↓ 4 callersFunctionload_model_dict_into_meta
( model, state_dict: OrderedDict, device: Optional[Union[str, torch.device]] = None, dtype: Op
src/diffusers/models/modeling_utils.py:134
↓ 4 callersMethodload_module
(name, value)
src/diffusers/pipelines/pipeline_utils.py:1191
↓ 4 callersFunctionparse_list
(value)
scripts/convert_if.py:710
↓ 4 callersFunctionrearrange_3
(tensor, f)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:39
↓ 4 callersFunctionrearrange_3
(tensor, f)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:30
↓ 4 callersFunctionrearrange_4
(tensor)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:45
↓ 4 callersFunctionrearrange_4
(tensor)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:35
↓ 4 callersFunctionrenew_temp_conv_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_ms_text_to_video_to_diffusers.py:106
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_original_audioldm2_to_diffusers.py:87
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_svd_to_diffusers.py:556
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_versatile_diffusion_to_diffusers.py:128
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_original_audioldm_to_diffusers.py:80
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_zero123_to_diffusers.py:617
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_original_musicldm_to_diffusers.py:81
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_unidiffuser_to_diffusers.py:48
↓ 4 callersFunctionresnet_to_diffusers_checkpoint
(checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_kandinsky_to_diffusers.py:750
↓ 4 callersFunctionresnet_to_diffusers_checkpoint
(checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_kakao_brain_unclip_to_diffusers.py:799
↓ 4 callersFunctionsave_image
(image, name)
scripts/convert_consistency_decoder.py:181
↓ 4 callersFunctionset_adapter_layers
(model, enabled=True)
src/diffusers/utils/peft_utils.py:193
↓ 4 callersMethodset_joint_mode
r"""Manually set the generation mode to unconditional joint image-text generation.
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:264
↓ 4 callersMethodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:197
↓ 4 callersMethodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:210
↓ 4 callersMethodset_scheduler
(self, scheduler_type: str)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_k_diffusion.py:129
↓ 4 callersFunctionset_seed
Args: Helper function for reproducible behavior to set the seed in `random`, `numpy`, `torch`. seed (`int`): The seed to set.
src/diffusers/training_utils.py:17
↓ 4 callersFunctionset_verbosity
Set the verbosity level for the 🤗 Diffusers' root logger. Args: verbosity (`int`): Logging level which can be one of:
src/diffusers/utils/logging.py:145
↓ 4 callersFunctionshave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
scripts/convert_ldm_original_checkpoint_to_diffusers.py:25
↓ 4 callersFunctionvqvae_attention_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix)
scripts/convert_vq_diffusion_to_diffusers.py:440
↓ 4 callersFunctionvqvae_resnet_to_diffusers_checkpoint
(resnet, checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_vq_diffusion_to_diffusers.py:413
↓ 3 callersMethod__init__
Initialize an empty AttentionStore :param step_index: used to visualize only a specific step in the diffusion process
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:122
↓ 3 callersMethod__init__
( self, dim: int, dim_out: Optional[int] = None, mult: int = 4, dropou
src/diffusers/models/attention.py:506
↓ 3 callersMethod__init__
(self, embedding_dim: int, num_embeddings: int)
src/diffusers/models/normalization.py:35
↓ 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.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:636
↓ 3 callersMethod_alpha_cumprod
(self, t, device)
src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:118
↓ 3 callersMethod_cast_floating_to
Helper method to cast floating-point values of given parameter `PyTree` to given `dtype`.
src/diffusers/models/modeling_flax_utils.py:67
↓ 3 callersFunction_chunked_feed_forward
( ff: nn.Module, hidden_states: torch.Tensor, chunk_dim: int, chunk_size: int, lora_scale: Optional[float]
src/diffusers/models/attention.py:28
↓ 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 te
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:817
↓ 3 callersMethod_compute_loss
Computes the attend-and-excite loss using the maximum attention value for each token.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:651
↓ 3 callersMethod_encode_vae_image
(self, image: torch.Tensor, generator: torch.Generator)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:738
↓ 3 callersMethod_encode_vae_image
(self, image: torch.Tensor, generator: torch.Generator)
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py:349
↓ 3 callersMethod_get_add_time_ids
( self, original_size, crops_coords_top_left, target_size, dtype, text_encoder_projection_dim=None
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:625
↓ 3 callersMethod_get_dummy_components
(self)
tests/pipelines/deepfloyd_if/__init__.py:19
↓ 3 callersFunction_get_signature_keys
(obj)
src/diffusers/pipelines/auto_pipeline.py:164
↓ 3 callersMethod_get_superresolution_dummy_components
(self)
tests/pipelines/deepfloyd_if/__init__.py:76
↓ 3 callersMethod_get_variance
(self, t, predicted_variance=None, variance_type=None)
src/diffusers/schedulers/scheduling_ddpm_parallel.py:293
↓ 3 callersMethod_remove_text_encoder_monkey_patch_classmethod
(cls, text_encoder)
src/diffusers/loaders/lora.py:682
↓ 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_img_
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:773
↓ 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) wh
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:798
↓ 3 callersFunction_unwrap_model
Unwraps a model.
src/diffusers/pipelines/pipeline_utils.py:274
↓ 3 callersFunctionattention_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix, num_head_channels)
scripts/convert_kandinsky_to_diffusers.py:777
↓ 3 callersFunctionattention_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix, num_head_channels)
scripts/convert_kakao_brain_unclip_to_diffusers.py:826
↓ 3 callersMethodbackward_loop
Perform backward process given list of time steps Args: latents: Latents at time timesteps[0].
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:394
↓ 3 callersMethodbackward_loop
Perform backward process given list of time steps. Args: latents: Latents at time timesteps[0].
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:348
↓ 3 callersMethodbatch_step_no_noise
Batched version of the `step` function, to be able to reverse the SDE for multiple samples/timesteps at once. Also, does not add any
src/diffusers/schedulers/scheduling_ddim_parallel.py:489
↓ 3 callersMethodbinarize
Create a mask. Args: image (`PIL.Image.Image`): The image input, should be a PIL image. Returns
src/diffusers/image_processor.py:249
↓ 3 callersMethodcheck_inputs
( self, prompt, height, width, callback_steps, negative_prompt
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:411
↓ 3 callersMethodcheck_inputs
( self, prompt, strength, callback_steps, negative_prompt=None,
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:667
↓ 3 callersMethodcheck_over_forward
(self, time_step=0, **forward_kwargs)
tests/schedulers/test_scheduler_flax.py:440
↓ 3 callersFunctioncheckout_commit
Context manager that checks out a given commit when entered, but gets back to the reference it was at on exit. Args: repo (`git.Repo
utils/tests_fetcher.py:88
↓ 3 callersFunctionclean_doc_toc
Cleans the table of content of the model documentation by removing duplicates and sorting models alphabetically.
utils/check_doc_toc.py:25
↓ 3 callersFunctionconvert_attention
(checkpoint, new_checkpoint, old_prefix, new_prefix, attention_dim=None)
scripts/convert_consistency_to_diffusers.py:142
↓ 3 callersFunctionconvert_open_clip_checkpoint
( checkpoint, config_name, prefix="cond_stage_model.model.", has_projection=False, local_f
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:918
↓ 3 callersFunctionconvert_state_dict
r""" Simply iterates over the state dict and replaces the patterns in `mapping` with the corresponding values. Args: state_dict (`dic
src/diffusers/utils/state_dict_utils.py:110
↓ 3 callersFunctionconvert_uvit_block_to_diffusers_block
Maps the keys in a UniDiffuser transformer block (`Block`) to the keys in a diffusers transformer block (`UTransformerBlock`/`UniDiffuserBloc
scripts/convert_unidiffuser_to_diffusers.py:496
↓ 3 callersFunctioncreate_custom_diffusion_layers
(model, mock_weights: bool = True)
tests/models/test_models_unet_2d_condition.py:100
↓ 3 callersFunctioncreate_text_encoder_lora_layers
(text_encoder: nn.Module)
tests/lora/test_lora_layers_old_backend.py:133
↓ 3 callersFunctioncreate_vae_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:339
↓ 3 callersFunctiondelete_adapter_layers
(model, adapter_name)
src/diffusers/utils/peft_utils.py:205
↓ 3 callersMethoddelete_adapters
Args: Deletes the LoRA layers of `adapter_name` for the unet and text-encoder(s). adapter_names (`Union[List[str], str]`)
src/diffusers/loaders/lora.py:1141
↓ 3 callersMethoddisable_attention_slicing
r""" Disable sliced attention computation. If `enable_attention_slicing` was previously called, attention is computed in one step.
src/diffusers/pipelines/pipeline_utils.py:2087
↓ 3 callersMethoddisable_lora
(self)
src/diffusers/loaders/lora.py:1115
↓ 3 callersMethoddisable_xformers_memory_efficient_attention
r""" Disable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/).
src/diffusers/models/modeling_utils.py:301
↓ 3 callersMethoddual_guided
r""" The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`): The prompt or
src/diffusers/pipelines/versatile_diffusion/pipeline_versatile_diffusion.py:302
↓ 3 callersMethoddummy_model
(self)
tests/schedulers/test_scheduler_flax.py:66
↓ 3 callersMethodenable_vae_slicing
r""" Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to compute decoding in sev
src/diffusers/pipelines/musicldm/pipeline_musicldm.py:117
↓ 3 callersMethodencode
(self, prefix)
src/diffusers/pipelines/unidiffuser/modeling_text_decoder.py:166
↓ 3 callersMethodencode
Reverse the denoising step process to recover a noisy image from the generated image. Args: images (`List[PIL Image]`):
src/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py:271
↓ 3 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:188
↓ 3 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:406
↓ 3 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py:279
↓ 3 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:199
↓ 3 callersMethodextract_init_dict
(cls, config_dict, **kwargs)
src/diffusers/configuration_utils.py:448
↓ 3 callersFunctionfilter_tests
(tests)
utils/tests_fetcher.py:818
↓ 3 callersMethodfull_loop
(self, **config)
tests/schedulers/test_scheduler_flax.py:361
↓ 3 callersMethodfull_loop
(self, **config)
tests/schedulers/test_scheduler_flax.py:767
↓ 3 callersMethodgenerate_mask
r""" Generate a latent mask given a mask prompt, a target prompt, and an image. Args: image (`PIL.Image.Image`):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:860
↓ 3 callersFunctionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/ or
src/diffusers/models/embeddings.py:69
↓ 3 callersMethodget_active_adapters
Gets the list of the current active adapters. Example: ```python from diffusers import DiffusionPipeline p
src/diffusers/loaders/lora.py:1164
↓ 3 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_ldm3d.py:45
↓ 3 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_paradigms.py:51
↓ 3 callersMethodget_dummy_components
(self)
tests/pipelines/wuerstchen/test_wuerstchen_prior.py:128
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0, img_res=64, output_pil=True)
tests/lora/test_lora_layers_old_backend.py:680
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:203
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:192
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:313
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:193
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_paradigms.py:112
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_inpaint.py:227
← previousnext →501–600 of 7,383, ranked by callers