MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_ddim_parallel.py:288
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:300
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:387
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_ddpm_parallel.py:380
↓ 2 callersMethod_tiled_decode
r"""Encode a batch of images using a tiled encoder. When this option is enabled, the VAE will split the input tensor into tiles to compute en
src/diffusers/models/autoencoders/autoencoder_tiny.py:243
↓ 2 callersMethod_tiled_encode
r"""Encode a batch of images using a tiled encoder. When this option is enabled, the VAE will split the input tensor into tiles to compute en
src/diffusers/models/autoencoders/autoencoder_tiny.py:195
↓ 2 callersMethod_to_3d
(self, hidden_states: torch.FloatTensor, height: int, weight: int)
src/diffusers/models/unets/unet_2d_blocks.py:3761
↓ 2 callersMethod_to_4d
(self, hidden_states: torch.FloatTensor, height: int, weight: int)
src/diffusers/models/unets/unet_2d_blocks.py:3764
↓ 2 callersMethod_update_latent
Update the latent according to the computed loss.
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:645
↓ 2 callersMethod_upsample_2d
Fused `upsample_2d()` followed by `Conv2d()`. Padding is performed only once at the beginning, not between the operations. The fused op is co
src/diffusers/models/upsampling.py:225
↓ 2 callersFunctionadd_noise
(original_samples: torch.FloatTensor, noise: torch.FloatTensor, timesteps: torch.FloatTensor)
examples/research_projects/consistency_training/train_cm_ct_unconditional.py:147
↓ 2 callersMethodadd_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:210
↓ 2 callersFunctionadd_special_tokens
(hidden_states, attention_mask, sos_token, eos_token)
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:47
↓ 2 callersFunctionadd_tokens
Add tokens to the tokenizer and set the initial value of token embeddings
examples/research_projects/multi_token_textual_inversion/textual_inversion.py:82
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_pndm.py:53
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_sasolver.py:56
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_lms_discrete.py:73
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_ddpm.py:73
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:104
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_repaint.py:72
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:52
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_ddim_parallel.py:76
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_unclip.py:73
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_lcm.py:78
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:76
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_deis_multistep.py:55
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:69
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:51
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_consistency_decoder.py:39
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:55
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_euler_discrete.py:76
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:55
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_unipc_multistep.py:55
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_ddim.py:76
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_ddpm_parallel.py:75
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_ddim_inverse.py:74
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:57
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_heun_discrete.py:51
↓ 2 callersFunctionalpha_bar_fn
(t)
src/diffusers/schedulers/scheduling_tcd.py:77
↓ 2 callersFunctionalpha_bar_fn
(t)
examples/community/latent_consistency_txt2img.py:342
↓ 2 callersFunctionalpha_bar_fn
(t)
examples/community/scheduling_ufogen.py:75
↓ 2 callersFunctionalpha_bar_fn
(t)
examples/community/latent_consistency_img2img.py:434
↓ 2 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:192
↓ 2 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:350
↓ 2 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:315
↓ 2 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:337
↓ 2 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
examples/consistency_distillation/train_lcm_distill_sd_wds.py:327
↓ 2 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
examples/research_projects/consistency_training/train_cm_ct_unconditional.py:77
↓ 2 callersFunctionattention_from_original_checkpoint
(model, diffuser_attention_prefix, original_attention_prefix)
scripts/convert_blipdiffusion_to_diffusers.py:86
↓ 2 callersFunctionbenchmark_fn
(f, *args, **kwargs)
benchmarks/utils.py:52
↓ 2 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_heun_discrete.py:26
↓ 2 callersMethodblend_h
(self, a: torch.Tensor, b: torch.Tensor, blend_extent: int)
src/diffusers/models/autoencoders/autoencoder_kl.py:317
↓ 2 callersMethodblend_v
(self, a: torch.Tensor, b: torch.Tensor, blend_extent: int)
src/diffusers/models/autoencoders/autoencoder_kl.py:311
↓ 2 callersFunctionblock_to_diffusers_checkpoint
(block, checkpoint, block_idx, block_type)
scripts/convert_k_upscaler_to_diffusers.py:115
↓ 2 callersFunctionbytes_to_giga_bytes
(bytes)
benchmarks/utils.py:48
↓ 2 callersMethodcheck_controlnet_conditioning_image
(self, image, prompt, prompt_embeds)
examples/community/stable_diffusion_controlnet_inpaint.py:456
↓ 2 callersMethodcheck_controlnet_conditioning_image
(self, image, prompt, prompt_embeds)
examples/community/stable_diffusion_controlnet_img2img.py:357
↓ 2 callersMethodcheck_image
(self, image, prompt, prompt_embeds)
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:746
↓ 2 callersMethodcheck_image
(self, image, prompt, prompt_embeds)
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:578
↓ 2 callersMethodcheck_image
(self, image, prompt, prompt_embeds)
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:887
↓ 2 callersMethodcheck_image
(self, image, prompt, prompt_embeds)
src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:729
↓ 2 callersMethodcheck_image
(self, image, prompt, prompt_embeds)
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:810
↓ 2 callersMethodcheck_image
(self, image, prompt, prompt_embeds)
examples/community/run_onnx_controlnet.py:378
↓ 2 callersMethodcheck_image
(self, image, prompt, prompt_embeds)
examples/community/run_tensorrt_controlnet.py:482
↓ 2 callersMethodcheck_inputs
( self, prompt, height, width, callback_steps, negative_prompt
examples/community/stable_diffusion_ipex.py:488
↓ 2 callersMethodcheck_inputs
( self, prompt, prompt_2, height, width, callback_steps,
examples/community/pipeline_stable_diffusion_xl_ipex.py:536
↓ 2 callersMethodcheck_over_configs
(self, time_step=0, **config)
tests/schedulers/test_scheduler_score_sde_ve.py:59
↓ 2 callersMethodcheck_over_forward
(self, time_step=0, **forward_kwargs)
tests/schedulers/test_scheduler_pndm.py:59
↓ 2 callersMethodcheck_over_forward
(self, time_step=0, **forward_kwargs)
tests/schedulers/test_scheduler_flax.py:732
↓ 2 callersFunctionclean_code
Remove docstrings, empty line or comments from some code (used to detect if a diff is real or only concern comments or docstings). Args:
utils/tests_fetcher.py:106
↓ 2 callersMethodcleanup
(self, return_onnx=False)
scripts/convert_stable_diffusion_controlnet_to_onnx.py:37
↓ 2 callersFunctioncoerce_attn_resolutions
(attn_resolutions)
scripts/convert_vq_diffusion_to_diffusers.py:146
↓ 2 callersFunctioncoerce_resolution
(resolution)
scripts/convert_vq_diffusion_to_diffusers.py:157
↓ 2 callersMethodcomplete_mask
Based on the input mask corresponding value `0 or 1` for each phrases and image, mask the features corresponding to phrases and image
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:556
↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
scripts/convert_original_audioldm2_to_diffusers.py:202
↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
scripts/convert_svd_to_diffusers.py:544
↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
scripts/convert_versatile_diffusion_to_diffusers.py:247
↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
scripts/convert_original_audioldm_to_diffusers.py:201
↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
scripts/convert_zero123_to_diffusers.py:669
↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
scripts/convert_original_musicldm_to_diffusers.py:200
↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
scripts/convert_unidiffuser_to_diffusers.py:96
↓ 2 callersFunctionconv_attn_to_linear
(checkpoint)
examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:225
↓ 2 callersFunctionconvert_controlnet_checkpoint
( checkpoint, original_config, checkpoint_path, image_size, upcast_attention, extract_
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1088
↓ 2 callersFunctionconvert_controlnet_checkpoint
( checkpoint, original_config, checkpoint_path, image_size, upcast_attention, extract_
examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1156
↓ 2 callersFunctionconvert_ldm_clip_checkpoint
(checkpoint, local_files_only=False, text_encoder=None)
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:793
↓ 2 callersFunctionconvert_ldm_clip_checkpoint
(checkpoint, local_files_only=False, text_encoder=None)
examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:861
↓ 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:388
↓ 2 callersFunctionconvert_open_clip_checkpoint
( checkpoint, config_name, prefix="cond_stage_model.model.", has_projection=False, local_f
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:924
↓ 2 callersFunctionconvert_open_clip_checkpoint
( checkpoint, config_name, prefix="cond_stage_model.model.", has_projection=False, local_f
examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:992
↓ 2 callersFunctionconvert_super_res_pipeline
(tokenizer, text_encoder, feature_extractor, safety_checker, args, stage)
scripts/convert_if.py:97
↓ 2 callersFunctionconvert_to_np
(image, resolution)
examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:474
↓ 2 callersFunctionconvert_to_np
(image, resolution)
examples/instruct_pix2pix/train_instruct_pix2pix.py:369
↓ 2 callersFunctionconvert_to_np
(image, resolution)
examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:374
↓ 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_diffusers_vae_model_from_ldm
( pipeline_class_name, original_config, checkpoint, image_size=None, scaling_factor=None,
src/diffusers/loaders/single_file_utils.py:1236
← previousnext →1,001–1,100 of 9,976, ranked by callers