MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
examples/community/run_tensorrt_controlnet.py:520
↓ 2 callersFunctionprepare_controlnet_conditioning_image
( controlnet_conditioning_image, width, height, batch_size, num_images_per_prompt, dev
examples/community/stable_diffusion_controlnet_inpaint.py:186
↓ 2 callersFunctionprepare_controlnet_conditioning_image
( controlnet_conditioning_image, width, height, batch_size, num_images_per_prompt, dev
examples/community/stable_diffusion_controlnet_img2img.py:88
↓ 2 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/brushnet/pipeline_brushnet_sd_xl.py:791
↓ 2 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/brushnet/pipeline_brushnet.py:730
↓ 2 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:784
↓ 2 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet.py:778
↓ 2 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
examples/community/pipeline_animatediff_controlnet.py:678
↓ 2 callersMethodprepare_image_latents
(self, image, batch_size, dtype, device, generator=None)
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:762
↓ 2 callersMethodprepare_init_args_and_inputs_for_common
(self)
tests/models/unets/test_unet_blocks_common.py:79
↓ 2 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py:111
↓ 2 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:576
↓ 2 callersMethodprepare_latents
(self, image, timestep, batch_size, dtype, device, generator=None)
examples/community/clip_guided_images_mixing_stable_diffusion.py:137
↓ 2 callersMethodprepare_latents
(self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None)
examples/community/rerender_a_video.py:531
↓ 2 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
examples/community/unclip_image_interpolation.py:117
↓ 2 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/stable_diffusion_ipex.py:535
↓ 2 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/latent_consistency_interpolate.py:474
↓ 2 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/pipeline_stable_diffusion_xl_ipex.py:616
↓ 2 callersFunctionprepare_mask_and_masked_image
(image, mask)
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:36
↓ 2 callersFunctionprepare_mask_and_masked_image
(image, mask)
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:40
↓ 2 callersFunctionprepare_unet
Modifies the UNet (`unet`) to perform Pix2Pix Zero optimizations.
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:203
↓ 2 callersFunctionpreprocess
(image, w, h)
examples/community/clip_guided_images_mixing_stable_diffusion.py:26
↓ 2 callersMethodpreprocess_feedback_images
(self, images, vae, dim, device, dtype, generator)
examples/community/pipeline_fabric.py:454
↓ 2 callersFunctionpreprocess_images
Preprocesses a list of images into a batch of tensors. Args: images (:obj:`List[Image.Image]`): A list of images to prep
examples/research_projects/rdm/retriever.py:23
↓ 2 callersMethodprev_step
(self, model_output, timestep, sample)
examples/community/pipeline_null_text_inversion.py:89
↓ 2 callersMethodprevious_timestep
(self, timestep)
src/diffusers/schedulers/scheduling_ddpm.py:551
↓ 2 callersMethodprevious_timestep
(self, timestep)
src/diffusers/schedulers/scheduling_ddpm_parallel.py:642
↓ 2 callersFunctionprior
(*, args, checkpoint_map_location)
scripts/convert_kakao_brain_unclip_to_diffusers.py:942
↓ 2 callersFunctionprior_attention_to_diffusers
( checkpoint, *, diffusers_attention_prefix, original_attention_prefix, attention_head_dim )
scripts/convert_shap_e_to_diffusers.py:169
↓ 2 callersFunctionprior_ff_to_diffusers
(checkpoint, *, diffusers_ff_prefix, original_ff_prefix)
scripts/convert_shap_e_to_diffusers.py:204
↓ 2 callersMethodprogress_bar
(self, iterable=None, total=None)
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py:135
↓ 2 callersFunctionpromptsmaker
(prompts, batch)
examples/community/regional_prompting_stable_diffusion.py:406
↓ 2 callersFunctionpytest_addoption_shared
This function is to be called from `conftest.py` via `pytest_addoption` wrapper that has to be defined there. It allows loading both `confte
src/diffusers/utils/testing_utils.py:536
↓ 2 callersFunctionpytest_terminal_summary_main
Generate multiple reports at the end of test suite run - each report goes into a dedicated file in the current directory. The report files ar
src/diffusers/utils/testing_utils.py:555
↓ 2 callersFunctionread_config_file
(filename)
scripts/convert_vq_diffusion_to_diffusers.py:683
↓ 2 callersFunctionread_init
Read the init and extracts PyTorch, TensorFlow, SentencePiece and Tokenizers objects.
utils/check_dummies.py:67
↓ 2 callersFunctionrecalculate_num_discretization_step_values
Recalculates all quantities depending on the number of discretization steps N.
examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1112
↓ 2 callersMethodregister_subcommand
(parser: ArgumentParser)
src/diffusers/commands/env.py:31
↓ 2 callersMethodrender_rays
Perform volumetric rendering over a partition of possible t's in the union of rendering volumes (written below with some abuse of not
src/diffusers/pipelines/shap_e/renderer.py:826
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_original_audioldm2_to_diffusers.py:126
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_svd_to_diffusers.py:593
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_versatile_diffusion_to_diffusers.py:165
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_original_audioldm_to_diffusers.py:118
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_zero123_to_diffusers.py:639
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_original_musicldm_to_diffusers.py:118
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
scripts/convert_unidiffuser_to_diffusers.py:65
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:140
↓ 2 callersFunctionrepeat_div
(x, y)
examples/community/regional_prompting_stable_diffusion.py:472
↓ 2 callersMethodreplace_placeholder_tokens_in_text
Here, we replace the placeholder tokens in text recorded in token_map so that the text_encoder can encode them vector_shuffle
examples/research_projects/multi_token_textual_inversion/multi_token_clip.py:65
↓ 2 callersFunctionreplace_prompt_with_wildcards
( prompt: str, wildcard_option_dict: Dict[str, List[str]] = {}, wildcard_files: List[str] = [] )
examples/community/wildcard_stable_diffusion.py:45
↓ 2 callersFunctionreplicate_all
(prompt_ids, neg_prompt_ids, seed)
examples/research_projects/sdxl_flax/sdxl_single_aot.py:60
↓ 2 callersFunctionrequire_version
Perform a runtime check of the dependency versions, using the exact same syntax used by pip. The installed module version comes from the *si
src/diffusers/utils/versions.py:49
↓ 2 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_stable_diffusion_xl_ipex.py:104
↓ 2 callersFunctionreshape_weight_for_sd
(w)
scripts/convert_diffusers_to_original_stable_diffusion.py:171
↓ 2 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:43
↓ 2 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:41
↓ 2 callersMethodretrieve_imgs
(self, vec, k: int = 20)
examples/research_projects/rdm/retriever.py:115
↓ 2 callersMethodretrieve_imgs_batch
(self, vec, k: int = 20)
examples/research_projects/rdm/retriever.py:119
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:108
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:253
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:84
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:47
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:69
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:107
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:95
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:146
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:40
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:163
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:109
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py:38
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:65
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:79
↓ 2 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
examples/community/pipeline_animatediff_img2video.py:184
↓ 2 callersFunctionretrieve_mask
(x)
src/diffusers/pipelines/pia/pipeline_pia.py:151
↓ 2 callersMethodrgblike_to_depthmap
Args: image: RGB-like depth image Returns: depth map
src/diffusers/image_processor.py:704
↓ 2 callersMethodrun
(self)
src/diffusers/commands/env.py:35
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:467
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:505
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:327
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:463
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:353
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:507
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:357
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/stable_diffusion_controlnet_inpaint.py:421
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/stable_diffusion_ipex.py:453
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/stable_diffusion_controlnet_inpaint_img2img.py:406
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/stable_diffusion_controlnet_img2img.py:322
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/lpw_stable_diffusion.py:676
↓ 2 callersMethodsag_masking
(self, original_latents, attn_map, map_size, t, eps)
src/diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:798
↓ 2 callersFunctionsave_checkpoint
(args, accelerator, global_step)
examples/amused/train_amused.py:943
↓ 2 callersMethodsave_embeddings
(self, file_path: str)
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:770
↓ 2 callersMethodsave_embeddings
(self, file_path: str)
examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:762
↓ 2 callersFunctionsave_progress
(tokenizer, text_encoder, accelerator, save_path)
examples/research_projects/multi_token_textual_inversion/textual_inversion.py:100
↓ 2 callersFunctionsave_progress
(text_encoder, placeholder_token_ids, accelerator, args, save_path)
examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:163
↓ 2 callersFunctionsave_progress
(text_encoder, placeholder_token_id, accelerator, args, save_path)
examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:49
↓ 2 callersFunctionsave_progress
(text_encoder, placeholder_token_id, accelerator, args, save_path)
examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:59
↓ 2 callersFunctionsave_progress
(text_encoder, placeholder_token_ids, accelerator, args, save_path, safe_serialization=True)
examples/textual_inversion/textual_inversion.py:168
↓ 2 callersFunctionsave_progress
(text_encoder, placeholder_token_ids, accelerator, args, save_path, safe_serialization=True)
examples/textual_inversion/textual_inversion_sdxl.py:178
↓ 2 callersMethodscale
(self, embeds)
src/diffusers/pipelines/stable_diffusion/stable_unclip_image_normalizer.py:51
↓ 2 callersFunctionscalings_for_boundary_conditions
(timestep, sigma_data=0.5, timestep_scaling=10.0)
examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:201
← previousnext →1,401–1,500 of 9,976, ranked by callers