MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 1 callersMethodstochastic_adams_bashforth_update
One step for the SA-Predictor. Args: model_output (`torch.FloatTensor`): The direct output from the lear
src/diffusers/schedulers/scheduling_sasolver.py:688
↓ 1 callersMethodstochastic_adams_moulton_update
One step for the SA-Corrector. Args: this_model_output (`torch.FloatTensor`): The model outputs at `x_t`
src/diffusers/schedulers/scheduling_sasolver.py:815
↓ 1 callersFunctionstr2bool
https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse
scripts/convert_consistency_to_diffusers.py:109
↓ 1 callersFunctionstylify
Applies the ruff part of our `make style` command to some code. This formats the code using `ruff format`. As `ruff` does not provide a pytho
utils/check_copies.py:103
↓ 1 callersFunctionsummarize_chunk
(query, key, value)
src/diffusers/models/attention_flax.py:31
↓ 1 callersFunctionsummary_failures_short
(tr)
src/diffusers/utils/testing_utils.py:621
↓ 1 callersFunctionsuper_res_unet_first_steps_model_from_original_config
()
scripts/convert_kakao_brain_unclip_to_diffusers.py:399
↓ 1 callersFunctionsuper_res_unet_first_steps_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_kakao_brain_unclip_to_diffusers.py:405
↓ 1 callersFunctionsuper_res_unet_last_step_model_from_original_config
()
scripts/convert_kakao_brain_unclip_to_diffusers.py:494
↓ 1 callersFunctionsuper_res_unet_last_step_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_kakao_brain_unclip_to_diffusers.py:500
↓ 1 callersFunctionsuperres_convert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
scripts/convert_if.py:860
↓ 1 callersFunctionsuperres_create_unet_diffusers_config
(original_unet_config)
scripts/convert_if.py:778
↓ 1 callersMethodtarget_size_center_crop
(self, im, new_hw)
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:516
↓ 1 callersMethodtarget_size_center_crop
Crop and resize the image to the target size while keeping the center.
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:547
↓ 1 callersMethodtearDown
(self)
tests/pipelines/latent_diffusion/test_latent_diffusion.py:141
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_safe/test_safe_diffusion.py:31
↓ 1 callersMethodtearDown
(self)
tests/pipelines/unclip/test_unclip.py:456
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:381
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:368
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_upscale.py:43
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:319
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_v_pred.py:48
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_flax.py:72
↓ 1 callersMethodtearDown
(self)
tests/pipelines/audioldm/test_audioldm.py:374
↓ 1 callersMethodtearDown
(self)
tests/pipelines/unidiffuser/test_unidiffuser.py:577
↓ 1 callersMethodtearDown
(self)
tests/pipelines/controlnet/test_controlnet.py:677
↓ 1 callersMethodtearDown
(self)
tests/pipelines/semantic_stable_diffusion/test_semantic_diffusion.py:40
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:392
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1241
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_image_variation/test_stable_diffusion_image_variation.py:167
↓ 1 callersMethodtearDown
(self)
tests/pipelines/stable_diffusion_ldm3d/test_stable_diffusion_ldm3d.py:256
↓ 1 callersMethodtearDown
(self)
tests/pipelines/kandinsky/test_kandinsky_img2img.py:362
↓ 1 callersMethodtearDownClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:64
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor: "VaeImageProcessor", output_type: str = "np")
src/diffusers/pipelines/i2vgen_xl/pipeline_i2vgen_xl.py:70
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor: VaeImageProcessor, output_type: str = "np")
src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:61
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor: "VaeImageProcessor", output_type: str = "np")
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:63
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor: "VaeImageProcessor", output_type: str = "np")
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:98
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor, output_type="np")
src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:87
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor: "VaeImageProcessor", output_type: str = "np")
src/diffusers/pipelines/animatediff/pipeline_animatediff.py:68
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor: "VaeImageProcessor", output_type: str = "np")
src/diffusers/pipelines/pia/pipeline_pia.py:94
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor, output_type="np")
examples/community/pipeline_animatediff_controlnet.py:95
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor, output_type="np")
examples/community/pipeline_animatediff_img2video.py:162
↓ 1 callersMethodtest_attention_slicing_forward_pass
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py:262
↓ 1 callersMethodtest_determinism
(self)
tests/models/unets/test_models_unet_1d.py:60
↓ 1 callersMethodtest_from_save_pretrained
(self)
tests/models/unets/test_models_unet_1d.py:66
↓ 1 callersMethodtest_from_save_pretrained_variant
(self)
tests/models/unets/test_models_unet_1d.py:69
↓ 1 callersMethodtest_inference_batch_single_identical
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py:265
↓ 1 callersMethodtest_inference_batch_single_identical
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:242
↓ 1 callersMethodtest_model_from_pretrained
(self)
tests/models/unets/test_models_unet_1d.py:72
↓ 1 callersMethodtest_outputs_equivalence
(self)
tests/models/unets/test_models_unet_1d.py:63
↓ 1 callersMethodtest_save_load_optional_components
(self)
tests/pipelines/kandinsky/test_kandinsky_combined.py:248
↓ 1 callersMethodtext2img_sd1_1
( self, prompt: Union[str, List[str]], height: int = 512, width: int = 512,
examples/community/stable_diffusion_comparison.py:88
↓ 1 callersMethodtext2img_sd1_2
( self, prompt: Union[str, List[str]], height: int = 512, width: int = 512,
examples/community/stable_diffusion_comparison.py:125
↓ 1 callersMethodtext2img_sd1_3
( self, prompt: Union[str, List[str]], height: int = 512, width: int = 512,
examples/community/stable_diffusion_comparison.py:162
↓ 1 callersMethodtext2img_sd1_4
( self, prompt: Union[str, List[str]], height: int = 512, width: int = 512,
examples/community/stable_diffusion_comparison.py:199
↓ 1 callersFunctiontext_encoder_attn_modules
(text_encoder)
src/diffusers/models/lora.py:41
↓ 1 callersFunctiontext_proj_from_original_config
()
scripts/convert_kakao_brain_unclip_to_diffusers.py:330
↓ 1 callersFunctiontext_proj_original_checkpoint_to_diffusers_checkpoint
(checkpoint)
scripts/convert_kakao_brain_unclip_to_diffusers.py:343
↓ 1 callersMethodtiled_decode
r""" Decode a batch of images using a tiled decoder. Args: z (`torch.FloatTensor`): Input batch of latent vectors.
src/diffusers/models/autoencoders/autoencoder_kl.py:377
↓ 1 callersMethodtiled_decode
(self, latents, current_height, current_width)
examples/community/pipeline_demofusion_sdxl.py:562
↓ 1 callersMethodtiled_encode
r"""Encode a batch of images using a tiled encoder. When this option is enabled, the VAE will split the input tensor into tiles to compute en
src/diffusers/models/autoencoders/autoencoder_kl.py:323
↓ 1 callersMethodtiled_encode
r"""Encode a batch of images using a tiled encoder. When this option is enabled, the VAE will split the input tensor into tiles to compute en
src/diffusers/models/autoencoders/consistency_decoder_vae.py:348
↓ 1 callersMethodto_json_file
Save the configuration instance's parameters to a JSON file. Args: json_file_path (`str` or `os.PathLike`):
src/diffusers/configuration_utils.py:596
↓ 1 callersMethodto_load
(self)
examples/community/rerender_a_video.py:188
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
src/diffusers/models/embeddings.py:396
↓ 1 callersFunctiontokendealer
(self, all_prompts)
examples/community/regional_prompting_stable_diffusion.py:551
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/text_to_image/train_text_to_image_lora.py:593
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/text_to_image/train_text_to_image_flax.py:342
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/text_to_image/train_text_to_image_lora_sdxl.py:836
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/text_to_image/train_text_to_image.py:737
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/controlnet/train_controlnet_flax.py:571
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/controlnet/train_controlnet.py:663
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:642
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:499
↓ 1 callersFunctiontokenize_captions
(captions, tokenizer)
examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:732
↓ 1 callersFunctiontokenize_captions
(tokenizer, examples)
examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:445
↓ 1 callersFunctiontokenize_captions
(tokenizers, examples)
examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:472
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/research_projects/lora/train_text_to_image_lora.py:646
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:653
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/wuerstchen/text_to_image/train_text_to_image_prior.py:644
↓ 1 callersFunctiontokenize_captions
(examples, is_train=True)
examples/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:661
↓ 1 callersMethodtokenize_captions
(self, caption, original_size, crops_coords_top_left, target_size, is_train=True)
examples/brushnet/train_brushnet_sdxl.py:880
↓ 1 callersMethodtokenize_captions
(self, caption, is_train=True)
examples/brushnet/train_brushnet.py:694
↓ 1 callersFunctiontokenize_prompt
(prompt, neg_prompt)
examples/research_projects/sdxl_flax/sdxl_single.py:44
↓ 1 callersMethodtokenize_prompt
Tokenizes the prompt for this diffusion region using a given tokenizer
examples/community/mixture_canvas.py:135
↓ 1 callersFunctiontorch_dfs
(model: torch.nn.Module)
examples/community/stable_diffusion_xl_reference.py:51
↓ 1 callersFunctiontorch_dfs
r""" Performs a depth-first search on the given PyTorch model and returns a list of all its child modules. Args: model (torch.nn.Modu
examples/community/stable_diffusion_reference.py:62
↓ 1 callersFunctiontorch_dfs
(model: torch.nn.Module)
examples/community/stable_diffusion_controlnet_reference.py:60
↓ 1 callersFunctiontrain_transforms
(img)
examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:497
↓ 1 callersFunctiontransform_conv_attns
(new_state_dict, new_k, v)
scripts/convert_dance_diffusion_to_diffusers.py:238
↓ 1 callersFunctiontransformer_feedforward_to_diffusers_checkpoint
(checkpoint, *, diffusers_feedforward_prefix, feedforward_prefix)
scripts/convert_vq_diffusion_to_diffusers.py:671
↓ 1 callersFunctiontransformer_model_from_original_config
( original_diffusion_config, original_transformer_config, original_content_embedding_config )
scripts/convert_vq_diffusion_to_diffusers.py:464
↓ 1 callersFunctiontransformer_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_vq_diffusion_to_diffusers.py:530
↓ 1 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distribution :
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:57
↓ 1 callersMethodtruncate
Truncates `log_p_x_0` such that for each column vector, the total cumulative probability is `truncation_rate` The lowest probabilitie
src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py:304
↓ 1 callersMethodunet_forward_with_cached_hidden_states
( self, z_all, t, prompt_embd, cached_pos_hiddens: Optional[List[torch
examples/community/pipeline_fabric.py:370
↓ 1 callersFunctionunet_model_from_original_config
()
scripts/convert_kandinsky_to_diffusers.py:281
↓ 1 callersFunctionunet_model_from_original_config
(original_config)
scripts/convert_k_upscaler_to_diffusers.py:217
↓ 1 callersFunctionunet_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_kandinsky_to_diffusers.py:287
↓ 1 callersFunctionunet_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_k_upscaler_to_diffusers.py:175
← previousnext →3,701–3,800 of 9,976, ranked by callers