MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

Methodenable_vae_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and en
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:231
Methodenable_vae_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and en
examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:258
Methodenable_xformers_memory_efficient_attention
r""" Enable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/). When this option is enabled, you
src/diffusers/pipelines/pipeline_utils.py:1534
Methodenable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:405
Methodenable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:653
Methodenable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py:118
Methodenable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:409
Methodenable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:649
Methodenable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py:112
Methodencode_image
(self, image, device, num_images_per_prompt, output_hidden_states=None)
examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:490
Functionencode_prompt
(batch, text_encoders, tokenizers, proportion_empty_prompts, caption_column, is_train=True)
examples/text_to_image/train_text_to_image_sdxl.py:487
Methodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
examples/community/lpw_stable_diffusion_xl.py:688
Methodeval_dataloader
(self)
examples/research_projects/controlnet/train_controlnet_webdataset.py:304
Methodeval_dataset
(self)
examples/research_projects/controlnet/train_controlnet_webdataset.py:300
Functionexport_to_gif
(image: List[PIL.Image.Image], output_gif_path: str = None, fps: int = 10)
src/diffusers/utils/export_utils.py:31
Functionexport_to_gif
(image: List[PIL.Image.Image], output_gif_path: str = None)
src/diffusers/utils/testing_utils.py:410
Functionexport_to_obj
(mesh, output_obj_path: str = None)
src/diffusers/utils/export_utils.py:98
Functionexport_to_obj
(mesh, output_obj_path: str = None)
src/diffusers/utils/testing_utils.py:484
Functionexport_to_ply
Write a PLY file for a mesh.
src/diffusers/utils/export_utils.py:46
Functionexport_to_ply
Write a PLY file for a mesh.
src/diffusers/utils/testing_utils.py:432
Functionexport_to_video
( video_frames: Union[List[np.ndarray], List[PIL.Image.Image]], output_video_path: str = None, fps: int =
src/diffusers/utils/export_utils.py:118
Functionexport_to_video
(video_frames: List[np.ndarray], output_video_path: str = None)
src/diffusers/utils/testing_utils.py:504
Methodextract
(*args, **kwargs)
tests/pipelines/test_pipelines.py:1130
Methodextract
(*args, **kwargs)
tests/pipelines/stable_diffusion_safe/test_safe_diffusion.py:92
Methodextract
(*args, **kwargs)
tests/pipelines/semantic_stable_diffusion/test_semantic_diffusion.py:101
Functionextract_into_tensor
(a, t, x_shape)
examples/research_projects/consistency_training/train_cm_ct_unconditional.py:85
Methodfeed_forward_chunk
(self, attention_output)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:327
Methodfeed_forward_chunk_query
(self, attention_output)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:332
Methodfinalize_options
(self)
setup.py:183
Functionfind_tensor_attributes
(module: torch.nn.Module)
src/diffusers/models/modeling_utils.py:70
Functionflax_register_to_config
(cls)
src/diffusers/configuration_utils.py:658
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:837
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:526
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:79
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/controlnet.py:528
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/brushnet.py:543
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/transformers/prior_transformer.py:180
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/unets/unet_3d_condition.py:298
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/unets/unet_i2vgen_xl.py:331
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/unets/uvit_2d.py:226
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/unets/unet_2d_condition.py:702
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/unets/unet_motion_model.py:560
Methodfn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
src/diffusers/models/unets/unet_spatio_temporal_condition.py:257
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/unets/unet_kandinsky3.py:154
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/autoencoders/autoencoder_kl.py:172
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:254
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/diffusers/models/autoencoders/consistency_decoder_vae.py:200
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:872
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:562
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:115
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/controlnet.py:564
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/brushnet.py:579
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/transformers/prior_transformer.py:216
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/unets/unet_3d_condition.py:400
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/unets/unet_i2vgen_xl.py:367
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/unets/uvit_2d.py:262
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/unets/unet_2d_condition.py:737
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/unets/unet_motion_model.py:596
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/unets/unet_spatio_temporal_condition.py:296
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/unets/unet_kandinsky3.py:189
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/autoencoders/autoencoder_kl.py:208
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:290
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/diffusers/models/autoencoders/consistency_decoder_vae.py:236
Methodfn_recursive_feed_forward
(module: torch.nn.Module, chunk_size: int, dim: int)
src/diffusers/models/unets/unet_3d_condition.py:432
Methodfn_recursive_feed_forward
(module: torch.nn.Module, chunk_size: int, dim: int)
src/diffusers/models/unets/unet_i2vgen_xl.py:400
Methodfn_recursive_feed_forward
(module: torch.nn.Module, chunk_size: int, dim: int)
src/diffusers/models/unets/unet_motion_model.py:629
Methodfn_recursive_feed_forward
(module: torch.nn.Module, chunk_size: int, dim: int)
src/diffusers/models/unets/unet_spatio_temporal_condition.py:346
Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:916
Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:608
Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
src/diffusers/models/controlnet.py:610
Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
src/diffusers/models/brushnet.py:625
Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
src/diffusers/models/unets/unet_3d_condition.py:329
Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
src/diffusers/models/unets/unet_2d_condition.py:781
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:954
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:646
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
src/diffusers/models/controlnet.py:648
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
src/diffusers/models/brushnet.py:663
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
src/diffusers/models/unets/unet_3d_condition.py:367
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
src/diffusers/models/unets/unet_2d_condition.py:819
Methodfn_recursive_set_mem_eff
(module: torch.nn.Module)
src/diffusers/pipelines/pipeline_utils.py:1581
Methodfn_recursive_set_mem_eff
(module: torch.nn.Module)
src/diffusers/models/modeling_utils.py:250
Methodformat_to_lora_compatible
(key)
src/diffusers/loaders/unet.py:394
Methodforward
( self, ctx_embeddings: torch.Tensor = None, ctx_begin_pos: list = None, input
src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py:53
Methodforward
r""" Returns:
src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py:85
Methodforward
( self, ctx_embeddings: torch.Tensor, ctx_begin_pos: list, input_ids: Optional
src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py:183
Methodforward
( self, input_ids=None, position_ids=None, query_embeds=None, past_key
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:66
Methodforward
(self, pixel_values: torch.FloatTensor)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:120
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:142
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:256
Methodforward
(self, x)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:351
Methodforward
r""" Returns:
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:377
Methodforward
r""" encoder_hidden_states (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, `optional`): Sequence of h
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:513
Methodforward
Input shape: Batch x Time x Channel
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:334
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(seq_len, batch, embed_dim)` attention_mask (
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:466
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:584
Methodforward
( self, input_ids=None, attention_mask=None, position_ids=None, head_m
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:725
Methodforward
(self, clip_input, images)
src/diffusers/pipelines/stable_diffusion_safe/safety_checker.py:49
Methodforward
(self, *, image_embeddings, prompt_embeds, text_encoder_hidden_states, do_classifier_free_guidance)
src/diffusers/pipelines/unclip/text_proj.py:55
Methodforward
(self, latent)
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:110
Methodforward
(self, x, skip)
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:131
← previousnext →6,001–6,100 of 9,976, ranked by callers