MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 1 callersFunctionsave_model_card
( repo_id: str, use_dora: bool, images=None, base_model: str = None, train_text_encoder=Fa
examples/dreambooth/train_dreambooth_lora_sdxl.py:97
↓ 1 callersFunctionsave_model_card
( repo_id: str, images=None, base_model=str, train_text_encoder=False, prompt=str, rep
examples/dreambooth/train_dreambooth_lora.py:78
↓ 1 callersFunctionsave_model_card
( repo_id: str, images: list = None, base_model: str = None, dataset_name: str = None, rep
examples/text_to_image/train_text_to_image_lora.py:60
↓ 1 callersFunctionsave_model_card
( repo_id: str, images: list = None, base_model: str = None, dataset_name: str = None, tra
examples/text_to_image/train_text_to_image_lora_sdxl.py:72
↓ 1 callersFunctionsave_model_card
( args, repo_id: str, images: list = None, repo_folder: str = None, )
examples/text_to_image/train_text_to_image.py:68
↓ 1 callersFunctionsave_model_card
( repo_id: str, images: list = None, validation_prompt: str = None, base_model: str = None,
examples/text_to_image/train_text_to_image_sdxl.py:67
↓ 1 callersFunctionsave_model_card
(repo_id: str, image_logs: dict = None, base_model: str = None, repo_folder: str = None)
examples/t2i_adapter/train_t2i_adapter_sdxl.py:199
↓ 1 callersFunctionsave_model_card
( repo_id: str, use_dora: bool, images=None, base_model=str, train_text_encoder=False,
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:82
↓ 1 callersFunctionsave_model_card
( repo_id: str, use_dora: bool, images=None, base_model=str, train_text_encoder=False,
examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:78
↓ 1 callersFunctionsave_model_card
(repo_id: str, image_logs=None, base_model=str, repo_folder=None)
examples/controlnet/train_controlnet_flax.py:136
↓ 1 callersFunctionsave_model_card
(repo_id: str, image_logs=None, base_model=str, repo_folder=None)
examples/controlnet/train_controlnet.py:210
↓ 1 callersFunctionsave_model_card
(repo_id: str, image_logs=None, base_model=str, repo_folder=None)
examples/controlnet/train_controlnet_sdxl.py:210
↓ 1 callersFunctionsave_model_card
( args, repo_id: str, images=None, repo_folder=None, )
examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:60
↓ 1 callersFunctionsave_model_card
( args, repo_id: str, images=None, repo_folder=None, )
examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:63
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, dataset_name=str, repo_folder=None)
examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:54
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, dataset_name=str, repo_folder=None)
examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:54
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, dataset_name=str, repo_folder=None)
examples/research_projects/lora/train_text_to_image_lora.py:57
↓ 1 callersFunctionsave_model_card
( repo_id: str, images=None, base_model=str, repo_folder=None, )
examples/research_projects/realfill/train_realfill.py:68
↓ 1 callersFunctionsave_model_card
(repo_id: str, image_logs=None, base_model=str, repo_folder=None)
examples/research_projects/controlnet/train_controlnet_webdataset.py:439
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, repo_folder=None)
examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:87
↓ 1 callersFunctionsave_model_card
(repo_id: str, images: list = None, base_model: str = None, repo_folder: str = None)
examples/textual_inversion/textual_inversion.py:88
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, repo_folder=None)
examples/textual_inversion/textual_inversion_sdxl.py:84
↓ 1 callersFunctionsave_model_card
( args, repo_id: str, images=None, repo_folder=None, )
examples/wuerstchen/text_to_image/train_text_to_image_prior.py:63
↓ 1 callersFunctionsave_model_card
( args, repo_id: str, images=None, repo_folder=None, )
examples/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:62
↓ 1 callersMethodsave_motion_modules
( self, save_directory: str, is_main_process: bool = True, safe_serialization:
src/diffusers/models/unets/unet_motion_model.py:514
↓ 1 callersFunctionsave_new_embed
Saves the new token embeddings from the text encoder.
examples/custom_diffusion/train_custom_diffusion.py:310
↓ 1 callersMethodsave_pretrained
Save a model and its configuration file to a directory, so that it can be re-loaded using the `[`~pipelines.controlnet.MultiControlNe
src/diffusers/pipelines/controlnet/multicontrolnet.py:75
↓ 1 callersFunctionsaveattnmaps
(self, output, h, w, th, step, regions)
examples/community/regional_prompting_stable_diffusion.py:517
↓ 1 callersMethodscale_features
Linearly scale features to network outputs range.
src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py:83
↓ 1 callersMethodscale_latents
raw latents -> [0, 1]
src/diffusers/models/autoencoders/autoencoder_tiny.py:158
↓ 1 callersFunctionscale_proportion
(obj_box, H, W)
examples/community/llm_grounded_diffusion.py:136
↓ 1 callersMethodscale_to_features
Invert by linearly scaling network outputs to features range.
src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py:93
↓ 1 callersFunctionscaled_dot_product_attention
( self, query, key, value, attn_mask=None, dropout_p=0.0, is_causal=False,
examples/community/regional_prompting_stable_diffusion.py:588
↓ 1 callersMethodscore_waveforms
(self, text, audio, num_waveforms_per_prompt, device, dtype)
src/diffusers/pipelines/musicldm/pipeline_musicldm.py:260
↓ 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:564
↓ 1 callersMethodsetUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:59
↓ 1 callersFunctionset_additional_components
( pipeline_class_name, original_config, checkpoint=None, model_type=None, )
src/diffusers/loaders/single_file.py:131
↓ 1 callersMethodset_attention_slice
(self, slice_size: Optional[int])
src/diffusers/pipelines/pipeline_utils.py:1643
↓ 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/deprecated/versatile_diffusion/modeling_text_unet.py:900
↓ 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:592
↓ 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/controlnet.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/unets/unet_3d_condition.py:313
↓ 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/unets/unet_2d_condition.py:765
↓ 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/controlnet.py:543
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/transformers/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/unets/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/unets/unet_kandinsky3.py:168
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:269
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/autoencoders/consistency_decoder_vae.py:215
↓ 1 callersMethodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:129
↓ 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_image_proj_model
(self, model_ckpt, image_emb_dim=512, num_tokens=16)
examples/community/pipeline_stable_diffusion_xl_instantid.py:466
↓ 1 callersMethodset_input_embeddings
(self, value)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:457
↓ 1 callersMethodset_ip_adapter
(self, model_ckpt, num_tokens, scale)
examples/community/pipeline_stable_diffusion_xl_instantid.py:488
↓ 1 callersMethodset_resolution
Set resolution. Args: x_res (`int`): x resolution of spectrogram (time). y_res (`int`):
src/diffusers/pipelines/deprecated/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:86
↓ 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:255
↓ 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:287
↓ 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:275
↓ 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:227
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
examples/community/latent_consistency_txt2img.py:558
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
examples/community/latent_consistency_img2img.py:653
↓ 1 callersMethodset_transformer_params
(self, mix_ratio: float = 0.5, condition_types: Tuple = ("text", "image"))
src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:367
↓ 1 callersMethodshape
(x)
src/diffusers/models/embeddings.py:590
↓ 1 callersMethodshared_call
( self, attn: Attention, hidden_states: torch.Tensor, encoder_hidden_states: O
examples/community/pipeline_sdxl_style_aligned.py:215
↓ 1 callersMethodshifted_scaled_dot_product_attention
( self, attn: Attention, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor )
examples/community/pipeline_sdxl_style_aligned.py:207
↓ 1 callersMethodsingle_infer
Perform an individual depth prediction without ensembling. Args: rgb_in (`torch.Tensor`): Input RGB imag
examples/community/marigold_depth_estimation.py:268
↓ 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:576
↓ 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:670
↓ 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:774
↓ 1 callersFunctionslerp
Find the interpolation point between the 'low' and 'high' values for the given 'val'. See https://en.wikipedia.org/wiki/Slerp for more details on
examples/community/unclip_image_interpolation.py:29
↓ 1 callersFunctionslerp
helper function to spherically interpolate two arrays v1 v2
examples/community/interpolate_stable_diffusion.py:22
↓ 1 callersFunctionslerp
r""" Spherical Linear Interpolation between two tensors. Args: v0 (`torch.Tensor`): First tensor. v1 (`torch.Tensor`): Second
examples/community/pipeline_animatediff_img2video.py:107
↓ 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 callersFunctionspherical_dist_loss
(x, y)
examples/community/clip_guided_images_mixing_stable_diffusion.py:69
↓ 1 callersFunctionsplit_attentions
(*, weight, bias, split, chunk_size)
scripts/convert_shap_e_to_diffusers.py:898
↓ 1 callersFunctionsplit_dims
(xs, height, width)
examples/community/regional_prompting_stable_diffusion.py:469
↓ 1 callersFunctionsqueeze_tile
(tile, original_image, original_slice, slice_x)
examples/community/tiled_upscaling.py:75
↓ 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:1006
↓ 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
examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1074
↓ 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:1043
↓ 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
examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1111
↓ 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:754
↓ 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:869
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
examples/community/latent_consistency_txt2img.py:591
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
examples/community/latent_consistency_img2img.py:690
↓ 1 callersMethodstep_callback
(self, x_t)
examples/community/pipeline_prompt2prompt.py:927
↓ 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
← previousnext →3,601–3,700 of 9,976, ranked by callers