MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 1 callersFunctioncreate_transformers_vocoder_config
Creates a config for transformers SpeechT5HifiGan based on the config of the vocoder model.
scripts/convert_original_audioldm_to_diffusers.py:667
↓ 1 callersFunctioncreate_transformers_vocoder_config
Creates a config for transformers SpeechT5HifiGan based on the config of the vocoder model.
scripts/convert_original_musicldm_to_diffusers.py:673
↓ 1 callersFunctioncreate_unet_config
(original_config, image_size: int, attention_type)
scripts/convert_gligen_to_diffusers.py:394
↓ 1 callersFunctioncreate_unet_diffusers_config
Creates a UNet config for diffusers based on the config of the original AudioLDM2 model.
scripts/convert_original_audioldm2_to_diffusers.py:211
↓ 1 callersFunctioncreate_unet_diffusers_config
Creates a UNet config for diffusers based on the config of the original AudioLDM model.
scripts/convert_original_audioldm_to_diffusers.py:214
↓ 1 callersFunctioncreate_unet_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
scripts/convert_zero123_to_diffusers.py:36
↓ 1 callersFunctioncreate_unet_diffusers_config
Creates a UNet config for diffusers based on the config of the original MusicLDM model.
scripts/convert_original_musicldm_to_diffusers.py:211
↓ 1 callersFunctioncreate_unet_diffusers_config
(original_unet_config, class_embed_type=None)
scripts/convert_if.py:217
↓ 1 callersFunctioncreate_unet_lora_layers
(unet: nn.Module)
tests/lora/test_lora_layers_peft.py:77
↓ 1 callersFunctioncreate_unidiffuser_unet_config
(config_type, version)
scripts/convert_unidiffuser_to_diffusers.py:184
↓ 1 callersFunctioncreate_unidiffuser_unet_config_big
()
scripts/convert_unidiffuser_to_diffusers.py:296
↓ 1 callersFunctioncreate_unidiffuser_unet_config_test
()
scripts/convert_unidiffuser_to_diffusers.py:230
↓ 1 callersFunctioncreate_vae_config
(original_config, image_size: int)
scripts/convert_gligen_to_diffusers.py:372
↓ 1 callersFunctioncreate_vae_diffusers_config
Creates a VAE config for diffusers based on the config of the original AudioLDM2 model. Compared to the original Stable Diffusion conversion,
scripts/convert_original_audioldm2_to_diffusers.py:257
↓ 1 callersFunctioncreate_vae_diffusers_config
Creates a config for the diffusers based on the config of the VD model.
scripts/convert_versatile_diffusion_to_diffusers.py:337
↓ 1 callersFunctioncreate_vae_diffusers_config
Creates a VAE config for diffusers based on the config of the original AudioLDM model. Compared to the original Stable Diffusion conversion,
scripts/convert_original_audioldm_to_diffusers.py:267
↓ 1 callersFunctioncreate_vae_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
scripts/convert_zero123_to_diffusers.py:486
↓ 1 callersFunctioncreate_vae_diffusers_config
Creates a VAE config for diffusers based on the config of the original MusicLDM model. Compared to the original Stable Diffusion conversion,
scripts/convert_original_musicldm_to_diffusers.py:264
↓ 1 callersFunctioncreate_vae_diffusers_config
(config_type)
scripts/convert_unidiffuser_to_diffusers.py:170
↓ 1 callersFunctioncreate_vae_diffusers_config_big
()
scripts/convert_unidiffuser_to_diffusers.py:282
↓ 1 callersFunctioncreate_vae_diffusers_config_test
()
scripts/convert_unidiffuser_to_diffusers.py:216
↓ 1 callersMethodcrop
Crop the input image to the specified dimensions.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen_text_image.py:565
↓ 1 callersFunctioncross_attn_to_diffusers_checkpoint
( checkpoint, *, diffusers_attention_prefix, diffusers_attention_index, attention_prefix )
scripts/convert_k_upscaler_to_diffusers.py:65
↓ 1 callersFunctioncustom_convert_ldm_vae_checkpoint
(checkpoint, config)
scripts/convert_vae_pt_to_diffusers.py:18
↓ 1 callersMethodde_normalize
(self, x_in, key)
src/diffusers/experimental/rl/value_guided_sampling.py:75
↓ 1 callersMethoddecode
Decode a batch of images. Args: z (`torch.FloatTensor`): Input batch of latent vectors. return_dict (`bool`,
src/diffusers/models/autoencoder_kl.py:282
↓ 1 callersMethoddecode
Decode a batch of images. Args: z (`torch.FloatTensor`): Input batch of latent vectors. return_dict (`bool`,
src/diffusers/models/autoencoder_kl_temporal_decoder.py:345
↓ 1 callersMethoddecode
( self, z: torch.FloatTensor, generator: Optional[torch.Generator] = None, ima
src/diffusers/models/autoencoder_asym_kl.py:143
↓ 1 callersMethoddecode
( self, x: torch.FloatTensor, generator: Optional[torch.Generator] = None, return_dict: bool = True
src/diffusers/models/autoencoder_tiny.py:306
↓ 1 callersMethoddecode
( self, z: torch.FloatTensor, generator: Optional[torch.Generator] = None, ret
src/diffusers/models/consistency_decoder_vae.py:303
↓ 1 callersMethoddecode
(self, latents, deterministic: bool = True, return_dict: bool = True)
src/diffusers/models/vae_flax.py:849
↓ 1 callersMethoddecode_latents
(self, latents)
src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:328
↓ 1 callersMethoddecode_latents
(self, latents)
src/diffusers/pipelines/audioldm/pipeline_audioldm.py:254
↓ 1 callersMethoddecode_latents
(self, latents, num_frames, decode_chunk_size=14)
src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:208
↓ 1 callersMethoddecode_latents
(self, latents)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:446
↓ 1 callersMethoddecode_latents
(self, latents)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:656
↓ 1 callersMethoddecode_latents
(self, latents)
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_upscale.py:239
↓ 1 callersMethoddecode_latents
(self, latents)
src/diffusers/pipelines/animatediff/pipeline_animatediff.py:337
↓ 1 callersMethoddecode_latents_with_padding
(self, latents, padding=8)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py:393
↓ 1 callersFunctiondecoder_model_from_original_config
()
scripts/convert_kakao_brain_unclip_to_diffusers.py:255
↓ 1 callersFunctiondecoder_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_kakao_brain_unclip_to_diffusers.py:261
↓ 1 callersFunctiondeepspeed_zero_init_disabled_context_manager
returns either a context list that includes one that will disable zero.Init or an empty context list
examples/text_to_image/train_text_to_image_adjust_sal.py:589
↓ 1 callersFunctiondeepspeed_zero_init_disabled_context_manager
returns either a context list that includes one that will disable zero.Init or an empty context list
examples/text_to_image/train_text_to_image.py:556
↓ 1 callersMethoddeis_first_order_update
One step for the first-order DEIS (equivalent to DDIM). Args: model_output (`torch.FloatTensor`): The di
src/diffusers/schedulers/scheduling_deis_multistep.py:406
↓ 1 callersFunctiondep_version_check
(pkg, hint=None)
src/diffusers/dependency_versions_check.py:33
↓ 1 callersMethoddepth_pil_to_numpy
Convert a PIL image or a list of PIL images to NumPy arrays.
src/diffusers/image_processor.py:454
↓ 1 callersFunctiondiff_contains_doc_examples
Check if the diff is only in code examples of the doc in a filename. Args: repo (`git.Repo`): A git repository (for instance the Tra
utils/tests_fetcher.py:209
↓ 1 callersFunctiondiff_is_docstring_only
Check if the diff is only in docstrings (or comments and whitespace) in a filename. Args: repo (`git.Repo`): A git repository (for i
utils/tests_fetcher.py:183
↓ 1 callersMethoddisable_freeu
Disables the FreeU mechanism if enabled.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638
↓ 1 callersFunctiondisable_full_determinism
()
src/diffusers/utils/testing_utils.py:765
↓ 1 callersMethoddisable_gradient_checkpointing
Deactivates gradient checkpointing for the current model (may be referred to as *activation checkpointing* or *checkpoint activations
src/diffusers/models/modeling_utils.py:240
↓ 1 callersMethoddisable_vae_slicing
r""" Disable sliced VAE decoding. If `enable_vae_slicing` was previously enabled, this method will go back to computing decoding in on
src/diffusers/pipelines/musicldm/pipeline_musicldm.py:125
↓ 1 callersMethoddisable_vae_tiling
r""" Disable tiled VAE decoding. If `enable_vae_tiling` was previously enabled, this method will go back to computing decoding in one
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:164
↓ 1 callersFunctiondownload
(model_name)
scripts/convert_dance_diffusion_to_diffusers.py:74
↓ 1 callersFunctiondownload_model
Downloads a pre-trained DiT model from the web.
scripts/convert_dit_to_diffusers.py:13
↓ 1 callersFunctiondownsample_2d
r"""Downsample2D 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 downsa
src/diffusers/models/resnet.py:944
↓ 1 callersFunctiondownscale_height_and_width
(height, width, scale_factor=8)
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:39
↓ 1 callersFunctiondownscale_height_and_width
(height, width, scale_factor=8)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:100
↓ 1 callersFunctiondownscale_height_and_width
(height, width, scale_factor=8)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:72
↓ 1 callersFunctiondownscale_height_and_width
(height, width, scale_factor=8)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:81
↓ 1 callersFunctiondownscale_height_and_width
(height, width, scale_factor=8)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:96
↓ 1 callersFunctiondownscale_height_and_width
(height, width, scale_factor=8)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:54
↓ 1 callersMethoddpm_solver_first_order_update
One step for the first-order DPMSolver (equivalent to DDIM). Args: model_output (`torch.FloatTensor`): T
src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:485
↓ 1 callersMethoddpm_solver_first_order_update
One step for the first-order DPM-Solver (equivalent to DDIM). See https://arxiv.org/abs/2206.00927 for the detailed derivation.
src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py:327
↓ 1 callersMethoddpm_solver_first_order_update
One step for the first-order DPMSolver (equivalent to DDIM). Args: model_output (`torch.FloatTensor`): T
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:496
↓ 1 callersMethoddpm_solver_first_order_update
One step for the first-order DPMSolver (equivalent to DDIM). Args: model_output (`torch.FloatTensor`): T
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:472
↓ 1 callersMethoddraw_inpaint_mask_from_boxes
(self, boxes, size)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen.py:529
↓ 1 callersMethoddraw_inpaint_mask_from_boxes
Create an inpainting mask based on given boxes. This function generates an inpainting mask using the provided boxes to mark regions t
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen_text_image.py:553
↓ 1 callersMethoddummy_image
(self)
tests/pipelines/test_pipelines.py:1064
↓ 1 callersMethoddummy_model
(self)
tests/schedulers/test_scheduler_score_sde_ve.py:41
↓ 1 callersMethoddummy_uncond_unet
(self, sample_size=32)
tests/pipelines/test_pipelines.py:1072
↓ 1 callersMethodedit_model
r""" Apply model editing via closed-form solution (see Eq. 5 in the TIME [paper](https://arxiv.org/abs/2303.08084)). Args:
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_model_editing.py:499
↓ 1 callersFunctionembeddings_from_original_checkpoint
(model, diffuser_embeddings_prefix, original_embeddings_prefix)
scripts/convert_blipdiffusion_to_diffusers.py:50
↓ 1 callersMethodenable_fuser
(self, enabled=True)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen_text_image.py:548
↓ 1 callersMethodenable_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and en
src/diffusers/models/autoencoder_tiny.py:180
↓ 1 callersMethodenable_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and en
src/diffusers/models/consistency_decoder_vae.py:157
↓ 1 callersMethodenable_vae_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and en
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:155
↓ 1 callersMethodenable_vae_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and en
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:264
↓ 1 callersMethodencode
(self, input_tokens, continuous_inputs, continuous_mask)
src/diffusers/pipelines/spectrogram_diffusion/pipeline_spectrogram_diffusion.py:102
↓ 1 callersMethodencode
(self, x: torch.FloatTensor, return_dict: bool = True)
src/diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py:133
↓ 1 callersMethodencode
Encode a batch of images into latents. Args: x (`torch.FloatTensor`): Input batch of images. return_dict (`b
src/diffusers/models/autoencoder_kl.py:237
↓ 1 callersMethodencode
Encode a batch of images into latents. Args: x (`torch.FloatTensor`): Input batch of images. return_dict (`b
src/diffusers/models/autoencoder_kl_temporal_decoder.py:320
↓ 1 callersMethodencode
( self, x: torch.FloatTensor, return_dict: bool = True )
src/diffusers/models/autoencoder_asym_kl.py:115
↓ 1 callersMethodencode
( self, x: torch.FloatTensor, return_dict: bool = True )
src/diffusers/models/autoencoder_tiny.py:291
↓ 1 callersMethodencode
Encode a batch of images into latents. Args: x (`torch.FloatTensor`): Input batch of images. return_dict (`b
src/diffusers/models/consistency_decoder_vae.py:268
↓ 1 callersMethodencode
(self, sample, deterministic: bool = True, return_dict: bool = True)
src/diffusers/models/vae_flax.py:837
↓ 1 callersFunctionencode_and_index_events
Encode a sequence of timed events and index to audio frame times. Encodes time shifts as repeated single step shifts for later run length encodin
src/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:392
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:527
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:744
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:465
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:492
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:600
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/controlnet/pipeline_controlnet.py:482
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:492
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:506
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:577
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py:508
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py:497
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt)
src/diffusers/pipelines/animatediff/pipeline_animatediff.py:323
↓ 1 callersMethodencode_image_clip_latents
( self, image, batch_size, num_prompts_per_image, dtype, devic
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:625
← previousnext →1,501–1,600 of 7,383, ranked by callers