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
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. Ar
examples/community/latent_consistency_txt2img.py:499
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. Ar
examples/community/latent_consistency_img2img.py:594
Method
scale_schedule
(begin, end, n, length, type="linear")
examples/community/sde_drag.py:537
Method
select_outputs
(self, keep, names=None)
scripts/convert_stable_diffusion_controlnet_to_onnx.py:42
Method
setUp
(self)
tests/others/test_check_copies.py:49
Method
setUp
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models.py:214
Method
setUp
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models_img2img.py:221
Method
setUp
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:764
Method
setUp
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:825
Method
setUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:196
Method
setUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:302
Method
setUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:374
Method
setUpClass
(cls)
examples/test_examples_utils.py:50
Method
set_adapters
Set the currently active adapters for use in the UNet. Args: adapter_names (`List[str]` or `str`): The n
src/diffusers/loaders/unet.py:559
Method
set_attention_slice
r""" Set the slice size for attention computation. Args: slice_size (`int`): The slice size for attention
src/diffusers/models/attention_processor.py:352
Method
set_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to comp
examples/research_projects/controlnetxs/controlnetxs.py:518
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_ipndm.py:76
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_sasolver.py:233
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_lms_discrete.py:197
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:250
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:168
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_consistency_models.py:119
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:245
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_deis_multistep.py:208
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_edm_euler.py:126
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:158
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:168
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_euler_discrete.py:265
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:298
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_unipc_multistep.py:219
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:265
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_heun_discrete.py:191
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
src/diffusers/schedulers/scheduling_tcd.py:292
Method
set_cached_folder
(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], **kwargs)
examples/community/stable_diffusion_tensorrt_inpaint.py:784
Method
set_cached_folder
(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], **kwargs)
examples/community/stable_diffusion_tensorrt_txt2img.py:696
Method
set_cached_folder
(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], **kwargs)
examples/community/stable_diffusion_tensorrt_img2img.py:784
Method
set_chunk_feed_forward
(self, chunk_size: Optional[int], **kwargs)
src/diffusers/models/attention.py:481
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:885
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:576
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/controlnet.py:578
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/transformers/prior_transformer.py:230
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_3d_condition.py:454
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_i2vgen_xl.py:423
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/uvit_2d.py:276
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_2d_condition.py:750
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_motion_model.py:652
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_spatio_temporal_condition.py:309
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_kandinsky3.py:202
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/autoencoders/autoencoder_kl.py:222
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:303
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/autoencoders/consistency_decoder_vae.py:250
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
examples/research_projects/controlnetxs/controlnetxs.py:512
Method
set_index_name
(self, index_name: str)
examples/research_projects/rdm/retriever.py:77
Method
set_input_embeddings
(self, value)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:581
Method
set_ip_adapter_scale
(self, scale)
examples/community/ip_adapter_face_id.py:728
Method
set_ip_adapter_scale
(self, scale)
examples/community/pipeline_stable_diffusion_xl_instantid.py:518
Method
set_lock
(self, *args, **kwargs)
src/diffusers/utils/logging.py:311
Method
set_lora_layer
(self, lora_layer: Optional[LoRALinearLayer])
src/diffusers/models/lora.py:392
Method
set_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_edm_euler.py:145
Method
set_nan_tensor_to_zero
(t)
tests/schedulers/test_schedulers.py:597
Method
set_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_flax.py:182
Method
set_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_flax.py:470
Method
set_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_flax.py:682
Method
set_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_lcm.py:161
Method
set_nan_tensor_to_zero
(t)
tests/models/test_modeling_common.py:579
Method
set_pad_mode
(network, mode="circular")
tests/lora/test_lora_layers_peft.py:1183
Method
set_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/pipeline_flax_utils.py:615
Method
set_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:434
Method
set_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:672
Method
set_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py:145
Method
set_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:428
Method
set_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:668
Method
set_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py:139
Method
set_sampler
(self, scheduler_type: str)
examples/community/sd_text2img_k_diffusion.py:114
Method
set_scheduler
(self, scheduler_type: str)
src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py:136
Method
set_scheduler
(self, scheduler_type: str)
src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_xl_k_diffusion.py:187
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_pndm.py:168
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_sasolver.py:243
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_ddpm.py:253
Method
set_timesteps
Sets the continuous timesteps used for the diffusion chain. Supporting function to be run before inference. Args: state
src/diffusers/schedulers/scheduling_karras_ve_flax.py:110
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_repaint.py:180
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_ddim_parallel.py:322
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain. Supporting function to be run before inference. Note that this scheduler u
src/diffusers/schedulers/scheduling_unclip.py:163
Method
set_timesteps
Sets the timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
src/diffusers/schedulers/scheduling_consistency_models.py:175
Method
set_timesteps
Sets the timesteps used for the diffusion chain. Supporting function to be run before inference. Args: state (`EulerDisc
src/diffusers/schedulers/scheduling_euler_discrete_flax.py:148
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:281
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_deis_multistep.py:218
Method
set_timesteps
( self, num_inference_steps: int, temperature: Union[int, Tuple[int, int], List[int]]
src/diffusers/schedulers/scheduling_amused.py:58
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_infe
src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:142
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_edm_euler.py:190
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain. Supporting function to be run before inference. Args: state (`
src/diffusers/schedulers/scheduling_pndm_flax.py:167
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:226
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain. Supporting function to be run before inference. Args: state (`
src/diffusers/schedulers/scheduling_ddim_flax.py:169
Method
set_timesteps
( self, num_inference_steps: Optional[int] = None, device: Union[str, torch.device] =
src/diffusers/schedulers/scheduling_consistency_decoder.py:97
Method
set_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_multistep_inverse.py:226
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_euler_discrete.py:301
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain. Supporting function to be run before inference. Args: state (`
src/diffusers/schedulers/scheduling_ddpm_flax.py:139
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain. Supporting function to be run before inference. Args: state (`
src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py:203
Method
set_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_multistep.py:308
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
src/diffusers/schedulers/scheduling_unipc_multistep.py:229
← previous
next →
7,601–7,700 of 9,976, ranked by callers