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
↓ 2 callers
Function
create_dummy_files
Create the content of the dummy files.
utils/check_dummies.py:115
↓ 2 callers
Function
create_dynamic_module
Creates a dynamic module in the cache directory for modules.
src/diffusers/utils/dynamic_modules_utils.py:65
↓ 2 callers
Function
create_json_map
Creates a map from a list of tests to run to easily split them by category, when running parallelism of slow tests. Args: test_files
utils/tests_fetcher.py:867
↓ 2 callers
Function
create_reverse_dependency_map
Create the dependency map from module/test filename to the list of modules/tests that depend on it recursively. Returns: `Dict[str,
utils/tests_fetcher.py:729
↓ 2 callers
Function
create_text_encoder_from_ldm_clip_checkpoint
(config_name, checkpoint, local_files_only=False, torch_dtype=None)
src/diffusers/loaders/single_file_utils.py:1031
↓ 2 callers
Function
create_unet_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:235
↓ 2 callers
Function
create_unet_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
src/diffusers/loaders/single_file_utils.py:388
↓ 2 callers
Function
create_vae_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:344
↓ 2 callers
Method
decode_latents
(self, latents)
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:482
↓ 2 callers
Method
decode_latents
(self, latents)
examples/community/stable_diffusion_controlnet_inpaint.py:431
↓ 2 callers
Method
decode_latents
(self, latents)
examples/community/stable_diffusion_ipex.py:463
↓ 2 callers
Method
decode_latents
Decodes a given array of latents into pixel space
examples/community/mixture_canvas.py:291
↓ 2 callers
Method
decode_latents
(self, latents)
examples/community/stable_diffusion_controlnet_inpaint_img2img.py:416
↓ 2 callers
Method
decode_latents
(self, latents)
examples/community/stable_diffusion_controlnet_img2img.py:332
↓ 2 callers
Method
decode_latents
(self, latents)
examples/community/lpw_stable_diffusion.py:686
↓ 2 callers
Method
decode_latents
(self, latents)
examples/community/pipeline_zero1to3.py:452
↓ 2 callers
Method
decode_text_latents
(self, text_latents, device)
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:762
↓ 2 callers
Method
decode_to_image
( self, latents, device, size: int = 64, ray_batch_size: int = 4096,
src/diffusers/pipelines/shap_e/renderer.py:905
↓ 2 callers
Method
decode_to_mesh
( self, latents, device, grid_size: int = 128, query_batch_size: int =
src/diffusers/pipelines/shap_e/renderer.py:950
↓ 2 callers
Function
decoder
(*, args, checkpoint_map_location)
scripts/convert_kakao_brain_unclip_to_diffusers.py:966
↓ 2 callers
Method
denormalize
Denormalize an image array to [0,1].
src/diffusers/image_processor.py:140
↓ 2 callers
Method
disable_freeu
Disables the FreeU mechanism.
src/diffusers/models/unets/unet_i2vgen_xl.py:469
↓ 2 callers
Method
disable_gradient_checkpointing
Deactivates gradient checkpointing for the current model (may be referred to as *activation checkpointing* or *checkpoint activations
src/diffusers/models/modeling_utils.py:236
↓ 2 callers
Method
disable_lora_for_text_encoder
Disables the LoRA layers for the text encoder. Args: text_encoder (`torch.nn.Module`, *optional*): The t
src/diffusers/loaders/lora.py:1000
↓ 2 callers
Method
embed_text
takes in text and turns it into text embeddings
examples/community/interpolate_stable_diffusion.py:377
↓ 2 callers
Method
enable_attn_hook
(self, enabled=True)
examples/community/llm_grounded_diffusion.py:578
↓ 2 callers
Method
enable_forward_chunking
Sets the attention processor to use [feed forward chunking](https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers).
src/diffusers/models/unets/unet_i2vgen_xl.py:381
↓ 2 callers
Method
enable_fuser
(self, enabled=True)
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:495
↓ 2 callers
Method
enable_fuser
(self, enabled=True)
examples/community/llm_grounded_diffusion.py:573
↓ 2 callers
Method
enable_lora_for_text_encoder
Enables the LoRA layers for the text encoder. Args: text_encoder (`torch.nn.Module`, *optional*): The te
src/diffusers/loaders/lora.py:1017
↓ 2 callers
Method
enable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:178
↓ 2 callers
Method
enable_xformers_memory_efficient_attention
(self, attention_op: Optional[Callable] = None)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:192
↓ 2 callers
Function
encode_direction
(position, direction=None)
src/diffusers/pipelines/shap_e/renderer.py:74
↓ 2 callers
Method
encode_image
(self, image, device, num_images_per_prompt)
examples/community/llm_grounded_diffusion.py:1407
↓ 2 callers
Method
encode_image
(self, image, device, num_images_per_prompt)
examples/community/pipeline_stable_diffusion_xl_ipex.py:505
↓ 2 callers
Function
encode_position
(position)
src/diffusers/pipelines/shap_e/renderer.py:70
↓ 2 callers
Function
encode_prompt
(text_encoder, input_ids, attention_mask, text_encoder_use_attention_mask=None)
examples/dreambooth/train_dreambooth.py:788
↓ 2 callers
Function
encode_prompt
(text_encoders, tokenizers, prompt, text_input_ids_list=None)
examples/dreambooth/train_dreambooth_lora_sdxl.py:925
↓ 2 callers
Function
encode_prompt
(text_encoder, input_ids, attention_mask, text_encoder_use_attention_mask=None)
examples/dreambooth/train_dreambooth_lora.py:716
↓ 2 callers
Function
encode_prompt
(text_encoders, tokenizers, prompt, text_input_ids_list=None)
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1086
↓ 2 callers
Function
encode_prompt
(text_encoders, tokenizers, prompt, text_input_ids_list=None)
examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1014
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:510
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/brushnet/pipeline_brushnet.py:256
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:198
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:382
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:166
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:242
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py:183
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:285
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:393
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:268
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/controlnet/pipeline_controlnet.py:275
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:179
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:209
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:185
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:329
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:401
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:286
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:250
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:283
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:268
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:192
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:183
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:254
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:331
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:291
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
examples/research_projects/controlnetxs/pipeline_controlnet_xs.py:176
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:308
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
examples/community/latent_consistency_interpolate.py:277
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
examples/community/instaflow_one_step.py:215
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
examples/community/llm_grounded_diffusion.py:1223
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
examples/community/ip_adapter_face_id.py:766
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
examples/community/pipeline_stable_diffusion_xl_ipex.py:270
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:193
↓ 2 callers
Function
extract_imports
Get the imports a given module makes. Args: module_fname (`str`): The name of the file of the module where we want to lo
utils/tests_fetcher.py:476
↓ 2 callers
Function
fill_event_start_indices_to_cur_step
()
src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:438
↓ 2 callers
Function
find_duplicates
(seq)
utils/check_inits.py:195
↓ 2 callers
Method
fold_constants
(self, return_onnx=False)
examples/community/stable_diffusion_tensorrt_inpaint.py:209
↓ 2 callers
Method
fold_constants
(self, return_onnx=False)
examples/community/stable_diffusion_tensorrt_txt2img.py:194
↓ 2 callers
Method
fold_constants
(self, return_onnx=False)
examples/community/stable_diffusion_tensorrt_img2img.py:209
↓ 2 callers
Method
forward
(self, hidden_states: torch.Tensor)
src/diffusers/models/lora.py:219
↓ 2 callers
Function
fourier_filter
Fourier filter as introduced in FreeU (https://arxiv.org/abs/2309.11497). This version of the method comes from here: https://github.com/hugg
src/diffusers/utils/torch_utils.py:92
↓ 2 callers
Method
from_pretrained
r""" Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight. The from_pretrained() method takes care
src/diffusers/pipelines/auto_pipeline.py:193
↓ 2 callers
Method
full_loop
(self, num_inference_steps=10, seed=0, **config)
tests/schedulers/test_scheduler_tcd.py:90
↓ 2 callers
Method
full_loop
(self, num_inference_steps=10, seed=0, **config)
tests/schedulers/test_scheduler_lcm.py:209
↓ 2 callers
Method
fuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
src/diffusers/models/unets/unet_i2vgen_xl.py:478
↓ 2 callers
Function
generate
( prompt, negative_prompt, seed=default_seed, guidance_scale=default_guidance_scale, num_i
examples/research_projects/sdxl_flax/sdxl_single.py:67
↓ 2 callers
Function
generate
(prompt, negative_prompt, seed=default_seed, guidance_scale=default_guidance_scale)
examples/research_projects/sdxl_flax/sdxl_single_aot.py:111
↓ 2 callers
Function
generate_csv_dict
Packs benchmarking data into a dictionary for latter serialization.
benchmarks/utils.py:61
↓ 2 callers
Function
getEnginePath
(model_name, engine_dir)
examples/community/stable_diffusion_tensorrt_inpaint.py:313
↓ 2 callers
Function
getEnginePath
(model_name, engine_dir)
examples/community/stable_diffusion_tensorrt_txt2img.py:298
↓ 2 callers
Function
getEnginePath
(model_name, engine_dir)
examples/community/stable_diffusion_tensorrt_img2img.py:313
↓ 2 callers
Function
get_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
src/diffusers/models/embeddings.py:104
↓ 2 callers
Function
get_all_tests
Walks the `tests` folder to return a list of files/subfolders. This is used to split the tests to run when using paralellism. The split is:
utils/tests_fetcher.py:165
↓ 2 callers
Function
get_asym_autoencoder_kl_config
(block_out_channels=None, norm_num_groups=None)
tests/models/autoencoders/test_models_vae.py:70
↓ 2 callers
Function
get_autoencoder_kl_config
(block_out_channels=None, norm_num_groups=None)
tests/models/autoencoders/test_models_vae.py:55
↓ 2 callers
Function
get_autoencoder_tiny_config
(block_out_channels=None)
tests/models/autoencoders/test_models_vae.py:91
↓ 2 callers
Function
get_class_from_dynamic_module
Extracts a class from a module file, present in the local folder or repository of a model. <Tip warning={true}> Calling this function w
src/diffusers/utils/dynamic_modules_utils.py:365
↓ 2 callers
Method
get_clip_feature
Get image and phrases embedding by using CLIP pretrain model. The image embedding is transformed into the phrases embedding space thr
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:572
↓ 2 callers
Method
get_clip_image_embeddings
(self, image, batch_size)
examples/community/clip_guided_images_mixing_stable_diffusion.py:170
← previous
next →
1,101–1,200 of 9,976, ranked by callers