MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/controlnet/pipeline_controlnet.py:496
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:95
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:505
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py:367
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:588
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:478
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_k_diffusion.py:350
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_model_editing.py:383
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py:531
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen.py:420
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:148
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:159
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_ldm3d.py:413
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen_text_image.py:445
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:520
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:591
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:390
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:607
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:623
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_paradigms.py:398
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py:436
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py:521
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py:510
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py:217
↓ 1 callersMethodsample
(self, key)
src/diffusers/models/vae_flax.py:700
↓ 1 callersFunctionsample_pmf
r""" Sample from the given discrete probability distribution with replacement. The i-th bin is assumed to have mass pmf[i]. Args:
src/diffusers/pipelines/shap_e/renderer.py:30
↓ 1 callersFunctionsave_blip_diffusion_model
(model, args)
scripts/convert_blipdiffusion_to_diffusers.py:302
↓ 1 callersFunctionsave_model_card
( args, repo_id: str, images=None, repo_folder=None, )
examples/text_to_image/train_text_to_image_adjust_sal.py:68
↓ 1 callersFunctionsave_model_card
( args, repo_id: str, images=None, repo_folder=None, )
examples/text_to_image/train_text_to_image.py:65
↓ 1 callersMethodsave_motion_modules
( self, save_directory: str, is_main_process: bool = True, safe_serialization:
src/diffusers/models/unet_motion_model.py:491
↓ 1 callersMethodscale_features
Linearly scale features to network outputs range.
src/diffusers/pipelines/spectrogram_diffusion/pipeline_spectrogram_diffusion.py:83
↓ 1 callersMethodscale_latents
raw latents -> [0, 1]
src/diffusers/models/autoencoder_tiny.py:158
↓ 1 callersMethodscale_to_features
Invert by linearly scaling network outputs to features range.
src/diffusers/pipelines/spectrogram_diffusion/pipeline_spectrogram_diffusion.py:93
↓ 1 callersMethodscore_waveforms
(self, text, audio, num_waveforms_per_prompt, device, dtype)
src/diffusers/pipelines/musicldm/pipeline_musicldm.py:276
↓ 1 callersMethodscore_waveforms
(self, text, audio, num_waveforms_per_prompt, device, dtype)
src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:578
↓ 1 callersFunctionself_attn_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix)
scripts/convert_k_upscaler_to_diffusers.py:39
↓ 1 callersMethodsetUp
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:496
↓ 1 callersMethodsetUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:59
↓ 1 callersMethodset_attention_slice
(self, slice_size: Optional[int])
src/diffusers/pipelines/pipeline_utils.py:2095
↓ 1 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to comp
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:902
↓ 1 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to comp
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:594
↓ 1 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to comp
src/diffusers/models/unet_3d_condition.py:312
↓ 1 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to comp
src/diffusers/models/unet_2d_condition.py:696
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:851
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:541
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/unet_3d_condition.py:378
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/prior_transformer.py:195
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/autoencoder_kl.py:184
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/autoencoder_kl_temporal_decoder.py:270
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/consistency_decoder_vae.py:215
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/unet_motion_model.py:552
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/unet_spatio_temporal_condition.py:275
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/unet_kandinsky3.py:168
↓ 1 callersMethodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:131
↓ 1 callersMethodset_image_mode
r"""Manually set the generation mode to unconditional ("marginal") image generation.
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:252
↓ 1 callersMethodset_resolution
Set resolution. Args: x_res (`int`): x resolution of spectrogram (time). y_res (`int`):
src/diffusers/pipelines/audio_diffusion/mel.py:80
↓ 1 callersMethodset_sigmas
Sets the noise scales used for the diffusion chain. Supporting function to be run before inference. The sigmas control the weight of
src/diffusers/schedulers/scheduling_sde_ve_flax.py:129
↓ 1 callersMethodset_text_mode
r"""Manually set the generation mode to unconditional ("marginal") text generation.
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:248
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_ipndm.py:67
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_lms_discrete.py:235
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:281
↓ 1 callersMethodset_timesteps
Sets the continuous timesteps used for the diffusion chain. Supporting function to be run before inference. Args: state
src/diffusers/schedulers/scheduling_sde_ve_flax.py:110
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:208
↓ 1 callersMethodset_timesteps
Sets the continuous timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int
src/diffusers/schedulers/scheduling_sde_ve.py:106
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:208
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:242
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_heun_discrete.py:211
↓ 1 callersMethodset_transformer_params
(self, mix_ratio: float = 0.5, condition_types: Tuple = ("text", "image"))
src/diffusers/pipelines/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:367
↓ 1 callersMethodshape
(x)
src/diffusers/models/embeddings.py:576
↓ 1 callersMethodsinglestep_dpm_solver_second_order_update
One step for the second-order singlestep DPMSolver that computes the solution at time `prev_timestep` from the time `timestep_list[-2
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:528
↓ 1 callersMethodsinglestep_dpm_solver_third_order_update
One step for the third-order singlestep DPMSolver that computes the solution at time `prev_timestep` from the time `timestep_list[-3]
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:622
↓ 1 callersMethodsinglestep_dpm_solver_update
One step for the singlestep DPMSolver. Args: model_output_list (`List[torch.FloatTensor]`): The direct o
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:726
↓ 1 callersFunctionsort_imports
Sort the imports defined in the `_import_structure` of a given init. Args: file (`str`): The path to the init to check/fix.
utils/custom_init_isort.py:234
↓ 1 callersFunctionsort_imports_in_all_inits
Sort the imports defined in the `_import_structure` of all inits in the repo. Args: check_only (`bool`, *optional*, defaults to `Tru
utils/custom_init_isort.py:307
↓ 1 callersFunctionsort_objects_in_import
Sorts the imports in a single import statement. Args: import_statement (`str`): The import statement in which to sort the imports.
utils/custom_init_isort.py:176
↓ 1 callersFunctionsplit_attentions
(*, weight, bias, split, chunk_size)
scripts/convert_shap_e_to_diffusers.py:898
↓ 1 callersFunctionstable_unclip_image_encoder
Returns the image processor and clip image encoder for the img2img unclip pipeline. We currently know of two types of stable unclip models w
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1000
↓ 1 callersFunctionstable_unclip_image_noising_components
Returns the noising components for the img2img and txt2img unclip pipelines. Converts the stability noise augmentor into 1. a `StableUnC
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1037
↓ 1 callersFunctionstate_dicts_almost_equal
(sd1, sd2)
tests/pipelines/test_pipelines_combined.py:31
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep UniPC.
src/diffusers/schedulers/scheduling_unipc_multistep.py:718
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the singlestep DPMSolver
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:807
↓ 1 callersMethodstep_prk
Step function propagating the sample with the Runge-Kutta method. RK takes 4 forward passes to approximate the solution to the differ
src/diffusers/schedulers/scheduling_pndm_flax.py:294
↓ 1 callersFunctionstr2bool
https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse
scripts/convert_consistency_to_diffusers.py:109
↓ 1 callersFunctionstylify
Applies the ruff part of our `make style` command to some code. This formats the code using `ruff format`. As `ruff` does not provide a pytho
utils/check_copies.py:103
↓ 1 callersFunctionsummarize_chunk
(query, key, value)
src/diffusers/models/attention_flax.py:31
↓ 1 callersFunctionsummary_failures_short
(tr)
src/diffusers/utils/testing_utils.py:564
↓ 1 callersFunctionsuper_res_unet_first_steps_model_from_original_config
()
scripts/convert_kakao_brain_unclip_to_diffusers.py:399
↓ 1 callersFunctionsuper_res_unet_first_steps_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_kakao_brain_unclip_to_diffusers.py:405
↓ 1 callersFunctionsuper_res_unet_last_step_model_from_original_config
()
scripts/convert_kakao_brain_unclip_to_diffusers.py:494
↓ 1 callersFunctionsuper_res_unet_last_step_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_kakao_brain_unclip_to_diffusers.py:500
↓ 1 callersFunctionsuperres_convert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
scripts/convert_if.py:867
↓ 1 callersFunctionsuperres_create_unet_diffusers_config
(original_unet_config)
scripts/convert_if.py:785
↓ 1 callersMethodtarget_size_center_crop
(self, im, new_hw)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen.py:545
↓ 1 callersMethodtarget_size_center_crop
Crop and resize the image to the target size while keeping the center.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen_text_image.py:576
↓ 1 callersMethodtearDown
(self)
tests/pipelines/latent_diffusion/test_latent_diffusion.py:141
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_safe/test_safe_diffusion.py:31
↓ 1 callersMethodtearDown
(self)
tests/pipelines/unclip/test_unclip.py:456
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:381
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:368
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_upscale.py:43
← previousnext →2,201–2,300 of 7,383, ranked by callers