MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 2 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:587
↓ 2 callersMethodprepare_text_inputs
(self, prompt: Union[str, List[str]])
src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:180
↓ 2 callersFunctionprepare_unet
Modifies the UNet (`unet`) to perform Pix2Pix Zero optimizations.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:203
↓ 2 callersFunctionpreprocess_image
(image: PIL.Image, batch_size: int)
src/diffusers/utils/testing_utils.py:343
↓ 2 callersMethodprevious_timestep
(self, timestep)
src/diffusers/schedulers/scheduling_ddpm.py:499
↓ 2 callersMethodprevious_timestep
(self, timestep)
src/diffusers/schedulers/scheduling_ddpm_parallel.py:592
↓ 2 callersFunctionprior
(*, args, checkpoint_map_location)
scripts/convert_kakao_brain_unclip_to_diffusers.py:942
↓ 2 callersFunctionprior_attention_to_diffusers
( checkpoint, *, diffusers_attention_prefix, original_attention_prefix, attention_head_dim )
scripts/convert_shap_e_to_diffusers.py:169
↓ 2 callersFunctionprior_ff_to_diffusers
(checkpoint, *, diffusers_ff_prefix, original_ff_prefix)
scripts/convert_shap_e_to_diffusers.py:204
↓ 2 callersMethodprogress_bar
(self, iterable=None, total=None)
src/diffusers/pipelines/pipeline_utils.py:1968
↓ 2 callersMethodprogress_bar
(self, iterable=None, total=None)
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py:135
↓ 2 callersFunctionpytest_addoption_shared
This function is to be called from `conftest.py` via `pytest_addoption` wrapper that has to be defined there. It allows loading both `confte
src/diffusers/utils/testing_utils.py:479
↓ 2 callersFunctionpytest_terminal_summary_main
Generate multiple reports at the end of test suite run - each report goes into a dedicated file in the current directory. The report files ar
src/diffusers/utils/testing_utils.py:498
↓ 2 callersFunctionread_config_file
(filename)
scripts/convert_vq_diffusion_to_diffusers.py:690
↓ 2 callersFunctionread_init
Read the init and extracts PyTorch, TensorFlow, SentencePiece and Tokenizers objects.
utils/check_dummies.py:67
↓ 2 callersMethodregister_subcommand
(parser: ArgumentParser)
src/diffusers/commands/env.py:31
↓ 2 callersMethodremove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:197
↓ 2 callersMethodremove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:187
↓ 2 callersMethodrender_rays
Perform volumetric rendering over a partition of possible t's in the union of rendering volumes (written below with some abuse of not
src/diffusers/pipelines/shap_e/renderer.py:826
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_original_audioldm2_to_diffusers.py:125
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_svd_to_diffusers.py:593
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_versatile_diffusion_to_diffusers.py:165
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_original_audioldm_to_diffusers.py:119
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_zero123_to_diffusers.py:633
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_original_musicldm_to_diffusers.py:119
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_unidiffuser_to_diffusers.py:65
↓ 2 callersFunctionrequire_version
Perform a runtime check of the dependency versions, using the exact same syntax used by pip. The installed module version comes from the *si
src/diffusers/utils/versions.py:49
↓ 2 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:40
↓ 2 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:43
↓ 2 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:41
↓ 2 callersMethodrestore
r""" Args: Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without: af
src/diffusers/training_utils.py:297
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:108
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:253
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:83
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:47
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:58
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:107
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:95
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:136
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py:65
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:40
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:76
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:163
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py:79
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py:38
↓ 2 callersMethodrgblike_to_depthmap
Args: image: RGB-like depth image Returns: depth map
src/diffusers/image_processor.py:466
↓ 2 callersMethodrun
(self)
src/diffusers/commands/env.py:35
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:505
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:327
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:463
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:353
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:507
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:357
↓ 2 callersMethodsag_masking
(self, original_latents, attn_map, map_size, t, eps)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:752
↓ 2 callersMethodscale
(self, embeds)
src/diffusers/pipelines/stable_diffusion/stable_unclip_image_normalizer.py:51
↓ 2 callersMethodset_adapters_for_text_encoder
Sets the adapter layers for the text encoder. Args: adapter_names (`List[str]` or `str`): The names of t
src/diffusers/loaders/lora.py:1026
↓ 2 callersFunctionset_weights_and_activate_adapters
(model, adapter_names, weights)
src/diffusers/utils/peft_utils.py:227
↓ 2 callersFunctionshave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
scripts/convert_unidiffuser_to_diffusers.py:37
↓ 2 callersFunctionsplit_attentions
(*, weight, bias, split, chunk_size)
scripts/convert_if.py:685
↓ 2 callersFunctionsplit_code_in_indented_blocks
Split some code into its indented blocks, starting at a given level. Args: code (`str`): The code to split. indent_level (`s
utils/custom_init_isort.py:64
↓ 2 callersMethodstep_plms
Step function propagating the sample with the linear multi-step method. This has one forward pass with multiple times to approximate
src/diffusers/schedulers/scheduling_pndm_flax.py:362
↓ 2 callersMethodstore
r""" Args: Save the current parameters for restoring later. parameters: Iterable of `torch.nn.Parameter`; the parameters t
src/diffusers/training_utils.py:288
↓ 2 callersFunctionsuper_res_unet
(*, args, checkpoint_map_location)
scripts/convert_kakao_brain_unclip_to_diffusers.py:1001
↓ 2 callersMethodtearDown
(self)
tests/pipelines/test_pipelines.py:1058
↓ 2 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint_legacy.py:53
↓ 2 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:499
↓ 2 callersMethodtest_dict_tuple_outputs_equivalent
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:144
↓ 2 callersMethodtest_dict_tuple_outputs_equivalent
(self)
tests/pipelines/kandinsky/test_kandinsky_combined.py:139
↓ 2 callersMethodtest_float16_inference
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:141
↓ 2 callersMethodtest_float16_inference
(self)
tests/pipelines/kandinsky/test_kandinsky_combined.py:136
↓ 2 callersMethodtest_inference_batch_single_identical
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:138
↓ 2 callersMethodtest_inference_batch_single_identical
(self)
tests/pipelines/kandinsky/test_kandinsky_combined.py:133
↓ 2 callersMethodtest_model_cpu_offload_forward_pass
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:147
↓ 2 callersMethodtest_save_load_local
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:150
↓ 2 callersMethodtest_save_load_optional_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:153
↓ 2 callersFunctiontext2img
(*, args, checkpoint_map_location)
scripts/convert_kandinsky_to_diffusers.py:890
↓ 2 callersFunctiontext_encoder_attn_modules
(text_encoder)
src/diffusers/models/lora.py:41
↓ 2 callersMethodto_json_string
Serializes the configuration instance to a JSON string. Returns: `str`: String containing all the attrib
src/diffusers/configuration_utils.py:562
↓ 2 callersFunctiontransformer_ada_norm_to_diffusers_checkpoint
(checkpoint, *, diffusers_ada_norm_prefix, ada_norm_prefix)
scripts/convert_vq_diffusion_to_diffusers.py:653
↓ 2 callersFunctiontransformer_attention_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix)
scripts/convert_vq_diffusion_to_diffusers.py:661
↓ 2 callersFunctionunet_add_embedding
(checkpoint)
scripts/convert_kandinsky_to_diffusers.py:516
↓ 2 callersFunctionunet_conv_in
(checkpoint)
scripts/convert_kandinsky_to_diffusers.py:503
↓ 2 callersFunctionunet_conv_norm_out
(checkpoint)
scripts/convert_kandinsky_to_diffusers.py:549
↓ 2 callersFunctionunet_conv_out
(checkpoint)
scripts/convert_kandinsky_to_diffusers.py:563
↓ 2 callersFunctionunet_downblock_to_diffusers_checkpoint
( model, checkpoint, *, diffusers_down_block_idx, original_down_block_idx, num_head_channels )
scripts/convert_kandinsky_to_diffusers.py:577
↓ 2 callersFunctionunet_encoder_hid_proj
(checkpoint)
scripts/convert_kandinsky_to_diffusers.py:533
↓ 2 callersFunctionunet_midblock_to_diffusers_checkpoint
(model, checkpoint, *, num_head_channels)
scripts/convert_kandinsky_to_diffusers.py:636
↓ 2 callersFunctionunet_time_embeddings
(checkpoint)
scripts/convert_kandinsky_to_diffusers.py:487
↓ 2 callersFunctionunet_upblock_to_diffusers_checkpoint
( model, checkpoint, *, diffusers_up_block_idx, original_up_block_idx, num_head_channels )
scripts/convert_kandinsky_to_diffusers.py:680
↓ 2 callersMethodunscale
(self, embeds)
src/diffusers/pipelines/stable_diffusion/stable_unclip_image_normalizer.py:55
↓ 2 callersMethodupcast_vae
(self)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:603
↓ 2 callersMethodupcast_vae
(self)
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:644
↓ 2 callersMethodupcast_vae
(self)
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:802
↓ 2 callersFunctionupdate_version_in_file
Update the version in one file using a specific pattern.
utils/release.py:37
↓ 2 callersFunctionvariant_compatible_siblings
(filenames, variant=None)
src/diffusers/pipelines/pipeline_utils.py:185
↓ 2 callersMethodwrite_lora_layers
( state_dict: Dict[str, torch.Tensor], save_directory: str, is_main_process: bool,
src/diffusers/loaders/lora.py:835
↓ 1 callersMethod__getattr__
Return empty function.
src/diffusers/utils/logging.py:289
↓ 1 callersMethod__init__
( self, do_resize: bool = True, vae_scale_factor: int = 8, resample: str = "la
src/diffusers/image_processor.py:71
↓ 1 callersMethod__init__
(self, batch_size=2)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:61
↓ 1 callersMethod__init__
(self, batch_size=2)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:50
← previousnext →1,001–1,100 of 7,383, ranked by callers