Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TencentARC/BrushNet
/ functions
Functions
9,976 in github.com/TencentARC/BrushNet
⨍
Functions
9,976
◇
Types & classes
1,590
↳
Endpoints
3
Method
_fuse_lora_apply
(self, module, adapter_names=None)
src/diffusers/loaders/unet.py:513
Method
_gaussian_weights
Generates a gaussian mask of weights for tile contributions
examples/community/mixture_canvas.py:227
Function
_get_freeinit_freq_filter
r"""Returns the FreeInit filter based on filter type and other input conditions.
src/diffusers/pipelines/pia/pipeline_pia.py:133
Method
_get_variance
(self, timestep, prev_timestep)
examples/community/latent_consistency_img2img.py:609
Method
_init_weights
(self, module)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:524
Method
_init_weights
(self, m)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py:124
Method
_init_weights
(self, m)
src/diffusers/models/unets/unet_stable_cascade.py:393
Function
_inner
(x)
utils/custom_init_isort.py:136
Method
_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:460
Method
_quartic_weights
Generates a quartic mask of weights for tile contributions The quartic kernel has bounded support over the diffusion region, and a smooth dec
examples/community/mixture_canvas.py:247
Method
_remove_text_encoder_monkey_patch
(self)
src/diffusers/loaders/lora.py:1339
Method
_remove_text_encoder_monkey_patch
(self)
examples/community/pipeline_demofusion_sdxl.py:1381
Method
_remove_text_encoder_monkey_patch
(self)
examples/community/lpw_stable_diffusion_xl.py:2200
Function
_replace
(match)
utils/custom_init_isort.py:188
Function
_reset_library_root_logger
()
src/diffusers/utils/logging.py:94
Method
_safe_divide
(a, b, epsilon=1e-6)
src/diffusers/pipelines/shap_e/renderer.py:325
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:535
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:965
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:658
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:144
Method
_set_gradient_checkpointing
(self, module, value: bool = False)
src/diffusers/models/controlnet.py:659
Method
_set_gradient_checkpointing
(self, module, value: bool = False)
src/diffusers/models/brushnet.py:674
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/models/transformers/transformer_2d.py:253
Method
_set_gradient_checkpointing
(self, module, value: bool = False)
src/diffusers/models/unets/unet_3d_condition.py:469
Method
_set_gradient_checkpointing
(self, module, value: bool = False)
src/diffusers/models/unets/unet_i2vgen_xl.py:439
Method
_set_gradient_checkpointing
(self, module, value: bool = False)
src/diffusers/models/unets/uvit_2d.py:151
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/models/unets/unet_2d_condition.py:830
Method
_set_gradient_checkpointing
(self, value=False)
src/diffusers/models/unets/unet_stable_cascade.py:390
Method
_set_gradient_checkpointing
(self, module, value: bool = False)
src/diffusers/models/unets/unet_motion_model.py:667
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/models/unets/unet_spatio_temporal_condition.py:322
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/models/unets/unet_kandinsky3.py:208
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/models/autoencoders/autoencoder_kl.py:128
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:239
Method
_set_gradient_checkpointing
(self, module, value: bool = False)
src/diffusers/models/autoencoders/autoencoder_tiny.py:154
Method
_set_gradient_checkpointing
(self, module, value=False)
examples/research_projects/controlnetxs/controlnetxs.py:534
Method
_set_gradient_checkpointing_new
(self, module, value=False)
tests/models/unets/test_models_unet_motion.py:173
Method
_set_gradient_checkpointing_new
(self, module, value=False)
tests/models/unets/test_models_unet_2d_condition.py:499
Method
_set_gradient_checkpointing_new
(self, module, value=False)
tests/models/unets/test_models_unet_spatiotemporal.py:253
Method
_sigma_to_t
(self, sigma, log_sigmas)
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:314
Function
_test_from_save_pretrained_dynamo
(in_queue, out_queue, timeout)
tests/pipelines/test_pipelines.py:89
Function
_test_from_save_pretrained_dynamo
(in_queue, out_queue, timeout)
tests/models/test_modeling_common.py:49
Function
_test_img2img_compile
(in_queue, out_queue, timeout)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:70
Function
_test_inpaint_compile
(in_queue, out_queue, timeout)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:72
Method
_test_save_load_optional_components
(self, expected_max_difference=1e-4)
tests/pipelines/test_pipelines_common.py:1542
Function
_test_stable_diffusion_compile
(in_queue, out_queue, timeout)
tests/pipelines/controlnet/test_controlnet.py:68
Function
_test_stable_diffusion_compile
(in_queue, out_queue, timeout)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:79
Function
_test_unidiffuser_compile
(in_queue, out_queue, timeout)
tests/pipelines/unidiffuser/test_unidiffuser.py:48
Method
_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_tcd.py:330
Method
_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
examples/community/latent_consistency_txt2img.py:525
Method
_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
examples/community/latent_consistency_img2img.py:620
Method
_unfuse_lora
(self)
src/diffusers/models/lora.py:151
Method
_unfuse_lora
(self)
src/diffusers/models/lora.py:429
Method
_unfuse_lora_apply
(self, module)
src/diffusers/loaders/unet.py:549
Method
active_adapters
Gets the current list of active adapters of the model. If you are not familiar with adapters and PEFT methods, we invite you to read
src/diffusers/loaders/peft.py:167
Method
adaption_r
(source, target, adapt_radius, max_height, max_width)
examples/community/sde_drag.py:379
Method
add_difference
(theta0, theta1, theta2, alpha)
examples/community/checkpoint_merger.py:287
Function
add_handler
adds a handler to the HuggingFace Diffusers' root logger.
src/diffusers/utils/logging.py:202
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_pndm.py:451
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_sasolver.py:1099
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_lms_discrete.py:447
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:529
Method
add_noise
(self, state: KarrasVeSchedulerState, original_samples, noise, timesteps)
src/diffusers/schedulers/scheduling_karras_ve_flax.py:237
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_repaint.py:352
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:480
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_ddim_parallel.py:598
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_unclip.py:328
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_lcm.py:597
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_consistency_models.py:418
Method
add_noise
( self, state: EulerDiscreteSchedulerState, original_samples: jnp.ndarray, noi
src/diffusers/schedulers/scheduling_euler_discrete_flax.py:250
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:453
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_deis_multistep.py:757
Method
add_noise
(self, sample, timesteps, generator=None)
src/diffusers/schedulers/scheduling_amused.py:140
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_edm_euler.py:351
Method
add_noise
( self, state: PNDMSchedulerState, original_samples: jnp.ndarray, noise: jnp.n
src/diffusers/schedulers/scheduling_pndm_flax.py:501
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:653
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_sde_ve.py:283
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:455
Method
add_noise
( self, state: DDIMSchedulerState, original_samples: jnp.ndarray, noise: jnp.n
src/diffusers/schedulers/scheduling_ddim_flax.py:296
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:881
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_euler_discrete.py:548
Method
add_noise
( self, state: DDPMSchedulerState, original_samples: jnp.ndarray, noise: jnp.n
src/diffusers/schedulers/scheduling_ddpm_flax.py:280
Method
add_noise
( self, state: DPMSolverMultistepSchedulerState, original_samples: jnp.ndarray,
src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py:633
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:995
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_unipc_multistep.py:851
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_ddpm_parallel.py:590
Method
add_noise
( self, state: LMSDiscreteSchedulerState, original_samples: jnp.ndarray, noise
src/diffusers/schedulers/scheduling_lms_discrete_flax.py:268
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:946
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_heun_discrete.py:454
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_tcd.py:629
Method
add_noise
(self, original_samples, noise, timesteps)
src/diffusers/schedulers/deprecated/scheduling_karras_ve.py:242
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
examples/community/latent_consistency_txt2img.py:683
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
examples/community/scheduling_ufogen.py:464
Method
add_noise_to_input
Explicit Langevin-like "churn" step of adding noise to the sample according to a `gamma_i ≥ 0` to reach a higher noise level `sigma_h
src/diffusers/schedulers/deprecated/scheduling_karras_ve.py:138
Method
addition_time_embed_dim
(self)
tests/models/unets/test_models_unet_spatiotemporal.py:82
Method
append_ca
(net_)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:134
Method
apply
(self, pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py:470
Method
apply
(self, pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_inpaint.py:768
Method
apply
(self, pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl.py:967
Method
apply
(self, pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:348
Method
apply
(self, pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:348
← previous
next →
5,201–5,300 of 9,976, ranked by callers