MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 11 callersFunctionto_np
(tensor)
tests/pipelines/animatediff/test_animatediff.py:24
↓ 11 callersMethodto_np
(self, image)
tests/others/test_image_processor.py:48
↓ 10 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
src/diffusers/models/attention_processor.py:89
↓ 10 callersFunction_get_model_file
( pretrained_model_name_or_path, *, weights_name, subfolder, cache_dir, force_download
src/diffusers/utils/hub_utils.py:255
↓ 10 callersMethodapply_watermark
(self, images: List[PIL.Image.Image], sample_size=None)
src/diffusers/pipelines/deepfloyd_if/watermark.py:19
↓ 10 callersMethodcheck_over_configs
(self, time_step=0, **config)
tests/schedulers/test_scheduler_flax.py:384
↓ 10 callersMethodenable_gradient_checkpointing
Activates gradient checkpointing for the current model (may be referred to as *activation checkpointing* or *checkpoint activations*
src/diffusers/models/modeling_utils.py:231
↓ 10 callersMethodget_dummy_components
(self)
tests/pipelines/unidiffuser/test_unidiffuser.py:89
↓ 10 callersMethodget_dummy_inputs
(self, with_generator=True)
tests/lora/test_lora_layers_old_backend.py:258
↓ 10 callersMethodget_dummy_inputs
(self, with_generator=True)
tests/lora/test_lora_layers_old_backend.py:882
↓ 10 callersMethodget_dummy_inputs
(self, seed=0)
tests/pipelines/stable_diffusion/test_onnx_stable_diffusion.py:42
↓ 10 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:332
↓ 10 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_unipc.py:19
↓ 10 callersFunctionis_note_seq_available
()
src/diffusers/utils/import_utils.py:340
↓ 10 callersMethodload_attn_procs
r""" Load pretrained attention processor layers into [`UNet2DConditionModel`]. Attention processor layers have to be defined in
src/diffusers/loaders/unet.py:65
↓ 10 callersMethodprepare_inputs
(self, prompt: Union[str, List[str]])
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py:167
↓ 10 callersFunctionrenew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_svd_to_diffusers.py:223
↓ 10 callersMethodsave_attn_procs
r""" Save attention processor layers to a directory so that it can be reloaded with the [`~loaders.UNet2DConditionLoadersMixin.load_at
src/diffusers/loaders/unet.py:405
↓ 10 callersFunctionshave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
scripts/convert_ddpm_original_checkpoint_to_diffusers.py:9
↓ 9 callersFunction_configure_library_root_logger
()
src/diffusers/utils/logging.py:77
↓ 9 callersMethod_get_signature_keys
(cls, obj)
src/diffusers/pipelines/pipeline_utils.py:1911
↓ 9 callersFunctionconvert_resnet
(checkpoint, new_checkpoint, old_prefix, new_prefix, has_skip=False)
scripts/convert_consistency_to_diffusers.py:123
↓ 9 callersFunctioncreate_lora_layers
(model, mock_weights: bool = True)
tests/lora/test_lora_layers_old_backend.py:67
↓ 9 callersMethoddummy_cond_unet
(self, sample_size=32)
tests/pipelines/test_pipelines.py:1085
↓ 9 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:81
↓ 9 callersMethodget_dummy_components
(self, seed=0)
tests/pipelines/text_to_video_synthesis/test_text_to_video_zero_sdxl.py:53
↓ 9 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:81
↓ 9 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:309
↓ 9 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:730
↓ 9 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_dpm_single.py:19
↓ 9 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_ddpm_parallel.py:25
↓ 9 callersMethodget_sd_image
(self, seed=0, shape=(4, 3, 512, 512), fp16=False)
tests/models/test_models_vae.py:563
↓ 9 callersMethodnumpy_to_pt
Convert a NumPy image to a PyTorch tensor.
src/diffusers/image_processor.py:119
↓ 9 callersMethodprepare_init_args_and_inputs_for_common
(self)
tests/models/test_models_unet_motion.py:66
↓ 9 callersFunctionto_np
(tensor)
tests/pipelines/text_to_video_synthesis/test_text_to_video_zero_sdxl.py:38
↓ 8 callersMethod__init__
( self, in_channels: int = 3, channels: List[int] = [320, 640, 1280, 1280], nu
src/diffusers/models/adapter.py:245
↓ 8 callersMethod__init__
( self, in_channels: int = 4, time_embedding_dim: int = 1536, groups: int = 32
src/diffusers/models/unet_kandinsky3.py:51
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
src/diffusers/schedulers/scheduling_unipc_multistep.py:331
↓ 8 callersMethod_test_inference_batch_consistent
( self, batch_sizes=[2], additional_params_copy_to_batched_inputs=["num_inference_steps"] )
tests/pipelines/test_pipelines_common.py:439
↓ 8 callersFunctionapply_freeu
Applies the FreeU mechanism as introduced in https: //arxiv.org/abs/2309.11497. Adapted from the official code repository: https://github.com/Chen
src/diffusers/utils/torch_utils.py:123
↓ 8 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.py:311
↓ 8 callersMethodfull_loop
(self, scheduler=None, **config)
tests/schedulers/test_scheduler_dpm_multi.py:102
↓ 8 callersFunctionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
src/diffusers/models/unet_1d_blocks.py:626
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py:453
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/musicldm/test_musicldm.py:68
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:60
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky/test_kandinsky_combined.py:55
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/audioldm2/test_audioldm2.py:73
↓ 8 callersMethodget_dummy_inputs
(self, device, seed=0, pil_image=True)
tests/pipelines/unclip/test_unclip_image_variation.py:227
↓ 8 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/pixart/test_pixart.py:82
↓ 8 callersMethodget_dummy_inputs
(self, device, seed=0, img_res=64)
tests/pipelines/controlnet/test_controlnet_inpaint_sdxl.py:141
↓ 8 callersMethodget_generator
(self, device, seed=0)
tests/pipelines/text_to_video_synthesis/test_text_to_video_zero_sdxl.py:152
↓ 8 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_ddpm.py:11
↓ 8 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_deis.py:19
↓ 8 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_dpm_multi.py:19
↓ 8 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_flax.py:350
↓ 8 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_flax.py:635
↓ 8 callersMethodget_sd_vae_model
(self, model_id="CompVis/stable-diffusion-v1-4", fp16=False)
tests/models/test_models_vae.py:568
↓ 8 callersFunctionget_up_block
( up_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channels: int, add_upsamp
src/diffusers/models/unet_1d_blocks.py:651
↓ 8 callersMethodinvert
r""" Function used to generate inverted latents given a prompt and image. Args: prompt (`str` or `List[str]`, *optional*)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:1103
↓ 8 callersFunctionis_librosa_available
()
src/diffusers/utils/import_utils.py:324
↓ 8 callersMethodnormalize
(self, x_in, key)
src/diffusers/experimental/rl/value_guided_sampling.py:72
↓ 8 callersFunctionrenew_resnet_paths
(old_list, n_shave_prefix_segments=0)
scripts/convert_ddpm_original_checkpoint_to_diffusers.py:19
↓ 8 callersMethodstep_pred
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
src/diffusers/schedulers/scheduling_sde_ve.py:160
↓ 8 callersMethodto
(self, device)
tests/pipelines/semantic_stable_diffusion/test_semantic_diffusion.py:106
↓ 7 callersMethod__init__
( self, in_channels: int = 3, out_channels: int = 3, down_block_types: Tuple[s
src/diffusers/models/vae.py:70
↓ 7 callersMethod__init__
Construct a layernorm module in the T5 style. No bias and no subtraction of mean.
src/diffusers/models/t5_film_transformer.py:385
↓ 7 callersFunction_add_variant
(weights_name: str, variant: Optional[str] = None)
src/diffusers/utils/hub_utils.py:246
↓ 7 callersMethod_fuse_lora
(self, lora_scale: float = 1.0, safe_fusing: bool = False)
src/diffusers/models/lora.py:302
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:331
↓ 7 callersMethod_unfuse_lora
(self)
src/diffusers/models/lora.py:336
↓ 7 callersFunctionassign_to_checkpoint
This does the final conversion step: take locally converted weights and apply a global renaming to them. It splits attention layers, and take
scripts/convert_ldm_original_checkpoint_to_diffusers.py:78
↓ 7 callersMethodcheck_over_configs
(self, time_step=0, **config)
tests/schedulers/test_scheduler_unipc.py:32
↓ 7 callersMethodcheck_over_configs
(self, time_step=0, **config)
tests/schedulers/test_scheduler_deis.py:31
↓ 7 callersFunctioncreate_lora_3d_layers
(model, mock_weights: bool = True)
tests/lora/test_lora_layers_old_backend.py:139
↓ 7 callersMethodfull_loop
(self, scheduler=None, **config)
tests/schedulers/test_scheduler_dpm_single.py:99
↓ 7 callersMethodfull_loop
(self, scheduler=None, **config)
tests/schedulers/test_scheduler_dpm_multi_inverse.py:95
↓ 7 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:68
↓ 7 callersMethodget_dummy_components
(self)
tests/pipelines/audioldm/test_audioldm.py:66
↓ 7 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/controlnet/test_controlnet_sdxl.py:67
↓ 7 callersMethodget_dummy_components
(self, skip_first_text_encoder=False)
tests/pipelines/controlnet/test_controlnet_sdxl_img2img.py:57
↓ 7 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:107
↓ 7 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_panorama.py:49
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py:529
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/musicldm/test_musicldm.py:159
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/audioldm/test_audioldm.py:136
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:68
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:160
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_panorama.py:97
↓ 7 callersMethodget_dummy_inputs
(self, seed=0)
tests/pipelines/stable_diffusion/test_onnx_stable_diffusion_img2img.py:48
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_combined.py:63
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/audioldm2/test_audioldm2.py:193
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_pndm.py:14
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_dpm_multi_inverse.py:14
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_consistency_model.py:12
↓ 7 callersMethodinvert
r""" Generate inverted latents given a prompt and image. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:1079
↓ 7 callersFunctionis_omegaconf_available
()
src/diffusers/utils/import_utils.py:348
↓ 7 callersFunctionload_hf_numpy
(path)
src/diffusers/utils/testing_utils.py:464
↓ 7 callersMethodprepare_init_args_and_inputs_for_common
(self)
tests/lora/test_lora_layers_old_backend.py:1421
↓ 7 callersMethodprepare_init_args_and_inputs_for_common
(self)
tests/lora/test_lora_layers_old_backend.py:1671
← previousnext →201–300 of 7,383, ranked by callers