MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:204
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:192
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:313
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:193
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_cascade/test_stable_cascade_combined.py:160
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_inpaint.py:227
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky.py:211
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_img2img.py:233
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_combined.py:171
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_combined.py:280
↓ 3 callersMethodget_dummy_inputs
(self, device="cpu", seed=0)
tests/pipelines/paint_by_example/test_paint_by_example.py:101
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/wuerstchen/test_wuerstchen_combined.py:154
↓ 3 callersMethodget_empty_store
()
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:84
↓ 3 callersMethodget_empty_store
()
examples/community/pipeline_prompt2prompt.py:969
↓ 3 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:468
↓ 3 callersMethodget_generator
(self, seed=0)
tests/models/autoencoders/test_models_vae.py:589
↓ 3 callersMethodget_inputs
(self, device, seed=0, generate_latents=False)
tests/pipelines/unidiffuser/test_unidiffuser.py:698
↓ 3 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion_image_variation/test_stable_diffusion_image_variation.py:172
↓ 3 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/audioldm2/test_audioldm2.py:501
↓ 3 callersMethodget_minmax_dims
(self, batch_size, image_height, image_width, static_batch, static_shape)
examples/community/stable_diffusion_tensorrt_txt2img.py:267
↓ 3 callersFunctionget_model_modules
Get the model modules inside the transformers library.
utils/check_repo.py:231
↓ 3 callersFunctionget_models
Get the objects in module that are models.
utils/check_repo.py:270
↓ 3 callersFunctionget_params_to_save
(params)
examples/dreambooth/train_dreambooth_flax.py:320
↓ 3 callersFunctionget_params_to_save
(params)
examples/text_to_image/train_text_to_image_flax.py:257
↓ 3 callersFunctionget_peft_kwargs
(rank_dict, network_alpha_dict, peft_state_dict, is_unet=True)
src/diffusers/utils/peft_utils.py:141
↓ 3 callersMethodget_pipeline_components
(self)
tests/pipelines/test_pipelines_common.py:1334
↓ 3 callersMethodget_sd_vae_model
(self, model_id="hf-internal-testing/taesd-diffusers", fp16=False)
tests/models/autoencoders/test_models_vae.py:498
↓ 3 callersMethodinit_index
(self)
examples/research_projects/rdm/retriever.py:80
↓ 3 callersFunctionis_tensorboard_available
()
src/diffusers/utils/import_utils.py:363
↓ 3 callersFunctionis_torch_npu_available
()
src/diffusers/utils/import_utils.py:307
↓ 3 callersFunctionload
(module: torch.nn.Module, prefix: str = "")
src/diffusers/models/modeling_utils.py:171
↓ 3 callersMethodload_motion_modules
(self, motion_adapter: Optional[MotionAdapter])
src/diffusers/models/unets/unet_motion_model.py:504
↓ 3 callersFunctionload_pt
(url: str)
src/diffusers/utils/testing_utils.py:362
↓ 3 callersFunctionnumpy_to_pil
Convert a numpy image or a batch of images to a PIL image.
src/diffusers/utils/pil_utils.py:37
↓ 3 callersFunctionposenc_nerf
Concatenate x and its positional encodings, following NeRF. Reference: https://arxiv.org/pdf/2210.04628.pdf
src/diffusers/pipelines/shap_e/renderer.py:53
↓ 3 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:760
↓ 3 callersMethodprepare_image_inputs
(self, image: Union[Image.Image, List[Image.Image]])
src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:194
↓ 3 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/unclip/pipeline_unclip.py:109
↓ 3 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
examples/community/unclip_text_interpolation.py:112
↓ 3 callersMethodprepare_text_inputs
(self, prompt: Union[str, List[str]])
src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:180
↓ 3 callersFunctionprocess_image
(image, size)
examples/amused/train_amused.py:379
↓ 3 callersFunctionrandom_mask
(im_shape, ratio=1, mask_full_image=False)
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:54
↓ 3 callersFunctionrandom_mask
(im_shape, ratio=1, mask_full_image=False)
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:58
↓ 3 callersFunctionrecurse_remove_peft_layers
r""" Recursively replace all instances of `LoraLayer` with corresponding new layers in `model`.
src/diffusers/utils/peft_utils.py:30
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_original_audioldm2_to_diffusers.py:105
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_svd_to_diffusers.py:186
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_versatile_diffusion_to_diffusers.py:144
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_ldm_original_checkpoint_to_diffusers.py:57
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_original_audioldm_to_diffusers.py:96
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_zero123_to_diffusers.py:229
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_original_musicldm_to_diffusers.py:97
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:119
↓ 3 callersFunctionrescale_noise_cfg
Rescale `noise_cfg` according to `guidance_rescale`. Based on findings of [Common Diffusion Noise Schedules and Sample Steps are Flawed](http
examples/community/pipeline_demofusion_sdxl.py:82
↓ 3 callersMethodreset
(self)
examples/community/rerender_a_video.py:184
↓ 3 callersMethodreset_x0
(self, x_in, cond, act_dim)
src/diffusers/experimental/rl/value_guided_sampling.py:84
↓ 3 callersMethodreshape_heads_to_batch_dim
(self, tensor)
src/diffusers/models/attention_flax.py:165
↓ 3 callersFunctionreshape_tensor
(x, heads)
examples/community/pipeline_stable_diffusion_xl_instantid.py:60
↓ 3 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:40
↓ 3 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:76
↓ 3 callersFunctionrle2mask
(mask_rle, shape)
examples/brushnet/evaluate_brushnet.py:28
↓ 3 callersMethodsave_pretrained
Save a model and its configuration file to a directory, so that it can be re-loaded using the `[`~models.adapter.MultiAdapter.from_pr
src/diffusers/models/adapter.py:103
↓ 3 callersMethodset_adapter
Sets a specific adapter by forcing the model to only use that adapter and disables the other adapters. If you are not familiar with
src/diffusers/loaders/peft.py:73
↓ 3 callersFunctionset_attention_weights
(new_layer, old_checkpoint, index)
scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:48
↓ 3 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:851
↓ 3 callersMethodset_image
(self, img, switch)
examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:241
↓ 3 callersFunctionset_image_size
(pipeline_class_name, original_config, checkpoint, image_size=None, model_type=None)
src/diffusers/loaders/single_file_utils.py:346
↓ 3 callersMethodset_lora_device
Moves the LoRAs listed in `adapter_names` to a target device. Useful for offloading the LoRA to the CPU in case you want to load mult
src/diffusers/loaders/lora.py:1155
↓ 3 callersMethodset_sigmas
Sets the noise scales used for the diffusion chain (to be run before inference). The sigmas control the weight of the `drift` and `di
src/diffusers/schedulers/scheduling_sde_ve.py:125
↓ 3 callersMethodset_use_memory_efficient_attention_xformers
( self, valid: bool, attention_op: Optional[Callable] = None )
src/diffusers/pipelines/pipeline_utils.py:1575
↓ 3 callersMethodset_use_memory_efficient_attention_xformers
( self, valid: bool, attention_op: Optional[Callable] = None )
src/diffusers/models/modeling_utils.py:244
↓ 3 callersFunctionshave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
scripts/convert_i2vgen_to_diffusers.py:91
↓ 3 callersFunctionshave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
scripts/convert_ms_text_to_video_to_diffusers.py:96
↓ 3 callersFunctionslerp
(t, v0, v1, DOT_THRESHOLD=0.9995)
examples/community/clip_guided_images_mixing_stable_diffusion.py:44
↓ 3 callersFunctionsort_objects
Sort a list of objects following the rules of isort (all uppercased first, camel-cased second and lower-cased last). Args: objec
utils/custom_init_isort.py:142
↓ 3 callersFunctionsplit_attentions
(*, weight, bias, split, chunk_size)
scripts/convert_kandinsky_to_diffusers.py:838
↓ 3 callersFunctionsplit_attentions
(*, weight, bias, split, chunk_size)
scripts/convert_kakao_brain_unclip_to_diffusers.py:887
↓ 3 callersFunctionstate_dicts_almost_equal
(sd1, sd2)
tests/lora/test_lora_layers_peft.py:71
↓ 3 callersMethodtearDown
(self)
tests/lora/test_lora_layers_peft.py:1503
↓ 3 callersMethodtearDown
(self)
tests/models/autoencoders/test_models_vae.py:564
↓ 3 callersMethodto_torch
(self, x_in)
src/diffusers/experimental/rl/value_guided_sampling.py:77
↓ 3 callersFunctiontokenize_prompt
(tokenizer, prompt, tokenizer_max_length=None)
examples/dreambooth/train_dreambooth.py:771
↓ 3 callersFunctiontokenize_prompt
(tokenizer, prompt, tokenizer_max_length=None)
examples/dreambooth/train_dreambooth_lora.py:699
↓ 3 callersFunctiontokenize_prompt
(tokenizer, prompt)
examples/text_to_image/train_text_to_image_lora_sdxl.py:450
↓ 3 callersMethodtranspose_for_scores
(self, projection)
src/diffusers/models/vae_flax.py:232
↓ 3 callersMethodtranspose_for_scores
(self, projection: torch.Tensor)
src/diffusers/models/unets/unet_1d_blocks.py:332
↓ 3 callersFunctionunet_conv_in
(checkpoint, original_unet_prefix)
scripts/convert_kakao_brain_unclip_to_diffusers.py:584
↓ 3 callersFunctionunet_conv_norm_out
(checkpoint, original_unet_prefix)
scripts/convert_kakao_brain_unclip_to_diffusers.py:598
↓ 3 callersFunctionunet_conv_out
(checkpoint, original_unet_prefix)
scripts/convert_kakao_brain_unclip_to_diffusers.py:612
↓ 3 callersFunctionunet_downblock_to_diffusers_checkpoint
( model, checkpoint, *, diffusers_down_block_idx, original_down_block_idx, original_unet_prefix, num_head_
scripts/convert_kakao_brain_unclip_to_diffusers.py:626
↓ 3 callersFunctionunet_midblock_to_diffusers_checkpoint
(model, checkpoint, *, original_unet_prefix, num_head_channels)
scripts/convert_kakao_brain_unclip_to_diffusers.py:685
↓ 3 callersFunctionunet_time_embeddings
(checkpoint, original_unet_prefix)
scripts/convert_kakao_brain_unclip_to_diffusers.py:568
↓ 3 callersFunctionunet_upblock_to_diffusers_checkpoint
( model, checkpoint, *, diffusers_up_block_idx, original_up_block_idx, original_unet_prefix, num_head_chan
scripts/convert_kakao_brain_unclip_to_diffusers.py:729
↓ 3 callersFunctionunwrap_model
(model)
examples/brushnet/train_brushnet_sdxl.py:1089
↓ 3 callersFunctionunwrap_model
(model)
examples/brushnet/train_brushnet.py:1007
↓ 3 callersFunctionunwrap_model
(model)
examples/text_to_image/train_text_to_image_lora.py:621
↓ 3 callersFunctionunwrap_model
(model)
examples/t2i_adapter/train_t2i_adapter_sdxl.py:942
↓ 3 callersFunctionunwrap_model
(model)
examples/controlnet/train_controlnet.py:817
↓ 3 callersFunctionunwrap_model
(model)
examples/controlnet/train_controlnet_sdxl.py:884
↓ 3 callersFunctionvalue_function
()
scripts/convert_models_diffuser_to_diffusers.py:59
↓ 2 callersMethod__init__
( self, do_resize: bool = True, vae_scale_factor: int = 8, resample: str = "la
src/diffusers/image_processor.py:66
← previousnext →801–900 of 9,976, ranked by callers