MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
scripts/convert_original_musicldm_to_diffusers.py:201
↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
scripts/convert_unidiffuser_to_diffusers.py:96
↓ 2 callersFunctionconvert_controlnet_checkpoint
( checkpoint, original_config, checkpoint_path, image_size, upcast_attention, extract_
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1082
↓ 2 callersFunctionconvert_ldm_clip_checkpoint
(checkpoint, local_files_only=False, text_encoder=None)
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:787
↓ 2 callersFunctionconvert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:383
↓ 2 callersFunctionconvert_ldm_vae_checkpoint
(checkpoint, config)
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:630
↓ 2 callersFunctionconvert_super_res_pipeline
(tokenizer, text_encoder, feature_extractor, safety_checker, args, stage)
scripts/convert_if.py:104
↓ 2 callersFunctionconvert_unet_state_dict_to_peft
r""" Converts a state dict from UNet format to diffusers format - i.e. by removing some keys
src/diffusers/utils/state_dict_utils.py:217
↓ 2 callersFunctionconvert_vd_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
scripts/convert_versatile_diffusion_to_diffusers.py:369
↓ 2 callersMethodcreate
( cls, common: CommonSchedulerState, init_noise_sigma: jnp.ndarray, timesteps: jnp.ndarray, sigmas: jn
src/diffusers/schedulers/scheduling_euler_discrete_flax.py:42
↓ 2 callersMethodcreate
( cls, common: CommonSchedulerState, final_alpha_cumprod: jnp.ndarray, init_no
src/diffusers/schedulers/scheduling_ddim_flax.py:46
↓ 2 callersMethodcreate
(cls, common: CommonSchedulerState, init_noise_sigma: jnp.ndarray, timesteps: jnp.ndarray)
src/diffusers/schedulers/scheduling_ddpm_flax.py:45
↓ 2 callersMethodcreate
( cls, common: CommonSchedulerState, alpha_t: jnp.ndarray, sigma_t: jnp.ndarra
src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py:53
↓ 2 callersMethodcreate
( cls, common: CommonSchedulerState, init_noise_sigma: jnp.ndarray, timesteps: jnp.ndarray, sigmas: jn
src/diffusers/schedulers/scheduling_lms_discrete_flax.py:46
↓ 2 callersFunctioncreate_dummy_files
Create the content of the dummy files.
utils/check_dummies.py:115
↓ 2 callersFunctioncreate_dynamic_module
Creates a dynamic module in the cache directory for modules.
src/diffusers/utils/dynamic_modules_utils.py:64
↓ 2 callersFunctioncreate_json_map
Creates a map from a list of tests to run to easily split them by category, when running parallelism of slow tests. Args: test_files
utils/tests_fetcher.py:847
↓ 2 callersMethodcreate_lora_weight_file
(self, tmpdirname)
tests/lora/test_lora_layers_old_backend.py:289
↓ 2 callersFunctioncreate_reverse_dependency_map
Create the dependency map from module/test filename to the list of modules/tests that depend on it recursively. Returns: `Dict[str,
utils/tests_fetcher.py:725
↓ 2 callersFunctioncreate_text_encoder_lora_attn_procs
(text_encoder: nn.Module)
tests/lora/test_lora_layers_old_backend.py:116
↓ 2 callersFunctioncreate_unet_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:235
↓ 2 callersMethodcrop
(self, im, new_width, new_height)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen.py:537
↓ 2 callersMethoddecode_latents
(self, latents)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:369
↓ 2 callersMethoddecode_latents
(self, latents)
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:498
↓ 2 callersMethoddecode_text_latents
(self, text_latents, device)
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:762
↓ 2 callersMethoddecode_to_image
( self, latents, device, size: int = 64, ray_batch_size: int = 4096,
src/diffusers/pipelines/shap_e/renderer.py:905
↓ 2 callersMethoddecode_to_mesh
( self, latents, device, grid_size: int = 128, query_batch_size: int =
src/diffusers/pipelines/shap_e/renderer.py:950
↓ 2 callersFunctiondecoder
(*, args, checkpoint_map_location)
scripts/convert_kakao_brain_unclip_to_diffusers.py:966
↓ 2 callersMethoddenormalize
Denormalize an image array to [0,1].
src/diffusers/image_processor.py:145
↓ 2 callersMethoddisable_lora_for_text_encoder
Disables the LoRA layers for the text encoder. Args: text_encoder (`torch.nn.Module`, *optional*): The t
src/diffusers/loaders/lora.py:1068
↓ 2 callersFunctiondownload_controlnet_from_original_ckpt
( checkpoint_path: str, original_config_file: str, image_size: int = 512, extract_ema: bool =
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1805
↓ 2 callersFunctiondownload_from_original_stable_diffusion_ckpt
Load a Stable Diffusion pipeline object from a CompVis-style `.ckpt`/`.safetensors` file and (ideally) a `.yaml` config file. Although m
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1132
↓ 2 callersMethodenable_adapters
Enable adapters that are attached to the model. The model will use `self.active_adapters()` to retrieve the list of adapters to enabl
src/diffusers/models/modeling_utils.py:413
↓ 2 callersMethodenable_forward_chunking
Sets the attention processor to use [feed forward chunking](https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers).
src/diffusers/models/unet_motion_model.py:589
↓ 2 callersMethodenable_freeu
r"""Enables the FreeU mechanism as in https://arxiv.org/abs/2309.11497. The suffixes after the scaling factors represent the stages where the
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:616
↓ 2 callersMethodenable_freeu
r"""Enables the FreeU mechanism from https://arxiv.org/abs/2309.11497. The suffixes after the scaling factors represent the stage blocks wher
src/diffusers/models/unet_motion_model.py:651
↓ 2 callersMethodenable_fuser
(self, enabled=True)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen.py:524
↓ 2 callersMethodenable_lora_for_text_encoder
Enables the LoRA layers for the text encoder. Args: text_encoder (`torch.nn.Module`, *optional*): The te
src/diffusers/loaders/lora.py:1085
↓ 2 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/stable_diffusion/pipeline_stable_diffusion.py:250
↓ 2 callersMethodenable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:178
↓ 2 callersMethodenable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:192
↓ 2 callersFunctionencode_direction
(position, direction=None)
src/diffusers/pipelines/shap_e/renderer.py:74
↓ 2 callersFunctionencode_position
(position)
src/diffusers/pipelines/shap_e/renderer.py:70
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:479
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:382
↓ 2 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_img2img.py:264
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:301
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:418
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:290
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/controlnet/pipeline_controlnet.py:300
↓ 2 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_panorama.py:185
↓ 2 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_attend_and_excite.py:296
↓ 2 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_k_diffusion.py:168
↓ 2 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_model_editing.py:201
↓ 2 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_gligen.py:238
↓ 2 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_depth2img.py:185
↓ 2 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_ldm3d.py:232
↓ 2 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_img2img.py:324
↓ 2 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_inpaint.py:395
↓ 2 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_sag.py:208
↓ 2 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_unclip.py:297
↓ 2 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_unclip_img2img.py:259
↓ 2 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_paradigms.py:216
↓ 2 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_inpaint_legacy.py:254
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py:327
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py:316
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:203
↓ 2 callersFunctionextract_imports
Get the imports a given module makes. Args: module_fname (`str`): The name of the file of the module where we want to lo
utils/tests_fetcher.py:472
↓ 2 callersFunctionfill_event_start_indices_to_cur_step
()
src/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:438
↓ 2 callersFunctionfind_duplicates
(seq)
utils/check_inits.py:195
↓ 2 callersMethodforward
(self, hidden_states: torch.Tensor)
src/diffusers/models/lora.py:216
↓ 2 callersFunctionfourier_filter
Fourier filter as introduced in FreeU (https://arxiv.org/abs/2309.11497). This version of the method comes from here: https://github.com/hugg
src/diffusers/utils/torch_utils.py:92
↓ 2 callersMethodfrom_pretrained
r""" Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight. The from_pretrained() method takes care
src/diffusers/pipelines/auto_pipeline.py:198
↓ 2 callersMethodfrom_pretrained
r""" Instantiate a pretrained MultiAdapter model from multiple pre-trained adapter models. The model is set in evaluation mode by def
src/diffusers/models/adapter.py:146
↓ 2 callersMethodfrom_unet2d
( cls, unet: UNet2DConditionModel, motion_adapter: Optional[MotionAdapter] = None,
src/diffusers/models/unet_motion_model.py:379
↓ 2 callersMethodfull_loop
(self, num_inference_steps=10, seed=0, **config)
tests/schedulers/test_scheduler_lcm.py:209
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
src/diffusers/models/embeddings.py:103
↓ 2 callersFunctionget_adapter_name
(model)
src/diffusers/utils/peft_utils.py:184
↓ 2 callersFunctionget_all_tests
Walks the `tests` folder to return a list of files/subfolders. This is used to split the tests to run when using paralellism. The split is:
utils/tests_fetcher.py:165
↓ 2 callersFunctionget_asym_autoencoder_kl_config
(block_out_channels=None, norm_num_groups=None)
tests/models/test_models_vae.py:65
↓ 2 callersFunctionget_autoencoder_kl_config
(block_out_channels=None, norm_num_groups=None)
tests/models/test_models_vae.py:50
↓ 2 callersFunctionget_autoencoder_tiny_config
(block_out_channels=None)
tests/models/test_models_vae.py:86
↓ 2 callersFunctionget_class_from_dynamic_module
Extracts a class from a module file, present in the local folder or repository of a model. <Tip warning={true}> Calling this function w
src/diffusers/utils/dynamic_modules_utils.py:369
↓ 2 callersMethodget_clip_feature
Get image and phrases embedding by using CLIP pretrain model. The image embedding is transformed into the phrases embedding space thr
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen_text_image.py:601
↓ 2 callersFunctionget_consistency_vae_config
(block_out_channels=None, norm_num_groups=None)
tests/models/test_models_vae.py:99
↓ 2 callersMethodget_constructor_arguments
(self, only_cross_attention: bool = False)
tests/models/test_attention_processor.py:12
↓ 2 callersFunctionget_diff
Get the diff between a base commit and one or several commits. Args: repo (`git.Repo`): A git repository (for instance t
utils/tests_fetcher.py:235
↓ 2 callersFunctionget_diff_for_doctesting
Get the diff in doc examples between a base commit and one or several commits. Args: repo (`git.Repo`): A git repository
utils/tests_fetcher.py:307
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_instruction_pix2pix.py:63
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/unclip/test_unclip.py:182
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_latent_upscale.py:82
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/altdiffusion/test_alt_diffusion.py:52
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_img2img.py:189
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_sdxl.py:572
↓ 2 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/controlnet/test_controlnet_sdxl.py:891
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_inpaint.py:264
↓ 2 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/controlnet/test_controlnet.py:120
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet.py:282
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet.py:472
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:199
← previousnext →801–900 of 7,383, ranked by callers