MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

Methodscale_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
Methodscale_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
Methodscale_schedule
(begin, end, n, length, type="linear")
examples/community/sde_drag.py:537
Methodselect_outputs
(self, keep, names=None)
scripts/convert_stable_diffusion_controlnet_to_onnx.py:42
MethodsetUp
(self)
tests/others/test_check_copies.py:49
MethodsetUp
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models.py:214
MethodsetUp
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models_img2img.py:221
MethodsetUp
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:764
MethodsetUp
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:825
MethodsetUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:196
MethodsetUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:302
MethodsetUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:374
MethodsetUpClass
(cls)
examples/test_examples_utils.py:50
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_cached_folder
(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], **kwargs)
examples/community/stable_diffusion_tensorrt_inpaint.py:784
Methodset_cached_folder
(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], **kwargs)
examples/community/stable_diffusion_tensorrt_txt2img.py:696
Methodset_cached_folder
(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], **kwargs)
examples/community/stable_diffusion_tensorrt_img2img.py:784
Methodset_chunk_feed_forward
(self, chunk_size: Optional[int], **kwargs)
src/diffusers/models/attention.py:481
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:885
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:576
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/controlnet.py:578
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/transformers/prior_transformer.py:230
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_3d_condition.py:454
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_i2vgen_xl.py:423
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/uvit_2d.py:276
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_2d_condition.py:750
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_motion_model.py:652
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_spatio_temporal_condition.py:309
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unets/unet_kandinsky3.py:202
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/autoencoders/autoencoder_kl.py:222
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:303
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/autoencoders/consistency_decoder_vae.py:250
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
examples/research_projects/controlnetxs/controlnetxs.py:512
Methodset_index_name
(self, index_name: str)
examples/research_projects/rdm/retriever.py:77
Methodset_input_embeddings
(self, value)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:581
Methodset_ip_adapter_scale
(self, scale)
examples/community/ip_adapter_face_id.py:728
Methodset_ip_adapter_scale
(self, scale)
examples/community/pipeline_stable_diffusion_xl_instantid.py:518
Methodset_lock
(self, *args, **kwargs)
src/diffusers/utils/logging.py:311
Methodset_lora_layer
(self, lora_layer: Optional[LoRALinearLayer])
src/diffusers/models/lora.py:392
Methodset_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_edm_euler.py:145
Methodset_nan_tensor_to_zero
(t)
tests/schedulers/test_schedulers.py:597
Methodset_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_flax.py:182
Methodset_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_flax.py:470
Methodset_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_flax.py:682
Methodset_nan_tensor_to_zero
(t)
tests/schedulers/test_scheduler_lcm.py:161
Methodset_nan_tensor_to_zero
(t)
tests/models/test_modeling_common.py:579
Methodset_pad_mode
(network, mode="circular")
tests/lora/test_lora_layers_peft.py:1183
Methodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/pipeline_flax_utils.py:615
Methodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:434
Methodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:672
Methodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py:145
Methodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:428
Methodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:668
Methodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py:139
Methodset_sampler
(self, scheduler_type: str)
examples/community/sd_text2img_k_diffusion.py:114
Methodset_scheduler
(self, scheduler_type: str)
src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py:136
Methodset_scheduler
(self, scheduler_type: str)
src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_xl_k_diffusion.py:187
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_timesteps
( self, num_inference_steps: int, temperature: Union[int, Tuple[int, int], List[int]]
src/diffusers/schedulers/scheduling_amused.py:58
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_timesteps
( self, num_inference_steps: Optional[int] = None, device: Union[str, torch.device] =
src/diffusers/schedulers/scheduling_consistency_decoder.py:97
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
← previousnext →7,601–7,700 of 9,976, ranked by callers