MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 4 callersMethodfull_loop
(self, **config)
tests/schedulers/test_scheduler_ddim_parallel.py:38
↓ 4 callersMethodfull_loop
(self, **config)
tests/schedulers/test_scheduler_ddim_inverse.py:24
↓ 4 callersMethodgenerate_language_model
Generates a sequence of hidden-states from the language model, conditioned on the embedding inputs. Parameters: inputs_
src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:229
↓ 4 callersFunctiongetOnnxPath
(model_name, onnx_dir, opt=True)
examples/community/stable_diffusion_tensorrt_inpaint.py:309
↓ 4 callersFunctiongetOnnxPath
(model_name, onnx_dir, opt=True)
examples/community/stable_diffusion_tensorrt_txt2img.py:294
↓ 4 callersFunctiongetOnnxPath
(model_name, onnx_dir, opt=True)
examples/community/stable_diffusion_tensorrt_img2img.py:309
↓ 4 callersMethodget_crop_region
Finds a rectangular region that contains all masked ares in an image, and expands region to match the aspect ratio of the original image;
src/diffusers/image_processor.py:174
↓ 4 callersMethodget_dummy_components
(self, adapter_type="full_adapter_xl", time_cond_proj_dim=None)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:64
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/unclip/test_unclip_image_variation.py:190
↓ 4 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py:387
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:61
↓ 4 callersMethodget_dummy_components
(self, class_cond=False)
tests/pipelines/consistency_models/test_consistency_models.py:63
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models.py:38
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models_img2img.py:46
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:184
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:305
↓ 4 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:398
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/stable_cascade/test_stable_cascade_combined.py:135
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky/test_kandinsky_inpaint.py:223
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky/test_kandinsky.py:207
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky/test_kandinsky_img2img.py:229
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky/test_kandinsky_combined.py:163
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky/test_kandinsky_combined.py:272
↓ 4 callersMethodget_dummy_components
(self)
tests/pipelines/wuerstchen/test_wuerstchen_combined.py:129
↓ 4 callersMethodget_dummy_components_with_full_downscaling
Get dummy components with x8 VAE downscaling and 4 UNet down blocks. These dummy components are intended to fully-exercise the T2I-Adapter
tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py:144
↓ 4 callersMethodget_dummy_inputs
(self, device, height=64, width=64, seed=0)
tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py:393
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/unidiffuser/test_unidiffuser.py:147
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/consistency_models/test_consistency_models.py:83
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/latent_consistency_models/test_latent_consistency_models.py:97
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/latent_consistency_models/test_latent_consistency_models_img2img.py:105
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_img2img.py:287
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_sdxl.py:598
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_inpaint.py:347
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet.py:584
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if.py:43
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_cascade/test_stable_cascade_prior.py:157
↓ 4 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_ldm3d/test_stable_diffusion_ldm3d.py:100
↓ 4 callersFunctionget_indent
Returns the indent in given line (as string).
utils/custom_init_isort.py:58
↓ 4 callersMethodget_inputs
(self, device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:525
↓ 4 callersMethodget_inputs
(self, device, seed=0, generate_latents=False)
tests/pipelines/unidiffuser/test_unidiffuser.py:582
↓ 4 callersMethodget_inputs
(self, seed=0, get_fixed_latents=False, device="cpu", dtype=torch.float32, shape=(1, 3, 64, 64))
tests/pipelines/consistency_models/test_consistency_models.py:178
↓ 4 callersMethodget_inputs
(self, seed=0)
tests/pipelines/stable_diffusion_panorama/test_stable_diffusion_panorama.py:259
↓ 4 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:656
↓ 4 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:1058
↓ 4 callersMethodget_list_adapters
Gets the current list of all available adapters in the pipeline.
src/diffusers/loaders/lora.py:1132
↓ 4 callersMethodget_minmax_dims
(self, batch_size, image_height, image_width, static_batch, static_shape)
examples/community/stable_diffusion_tensorrt_inpaint.py:282
↓ 4 callersMethodget_minmax_dims
(self, batch_size, image_height, image_width, static_batch, static_shape)
examples/community/stable_diffusion_tensorrt_img2img.py:282
↓ 4 callersFunctionget_module_dependencies
Refines the result of `extract_imports` to remove subfolders and get a proper list of module filenames: if a file as an import `from utils im
utils/tests_fetcher.py:560
↓ 4 callersFunctionget_params_to_save
(params)
examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:348
↓ 4 callersFunctionget_predicted_original_sample
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:209
↓ 4 callersFunctionget_predicted_original_sample
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:367
↓ 4 callersFunctionget_predicted_original_sample
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:332
↓ 4 callersFunctionget_predicted_original_sample
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:354
↓ 4 callersFunctionget_predicted_original_sample
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_sd_wds.py:344
↓ 4 callersFunctionget_prompts_tokens_with_weights
Get prompt token ids and weights, this function works for both prompt and negative prompt Args: pipe (CLIPTokenizer) A C
examples/community/lpw_stable_diffusion_xl.py:153
↓ 4 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_dpm_sde.py:14
↓ 4 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_kdpm2_discrete.py:13
↓ 4 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_unclip.py:12
↓ 4 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_kdpm2_ancestral.py:13
↓ 4 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_ddim.py:12
↓ 4 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_score_sde_ve.py:47
↓ 4 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_ipndm.py:14
↓ 4 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_euler_ancestral.py:13
↓ 4 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
examples/community/rerender_a_video.py:521
↓ 4 callersFunctiongroup_tokens_and_weights
Produce tokens and weights in groups and pad the missing tokens Args: token_ids (list) The token ids from tokenizer
examples/community/lpw_stable_diffusion_xl.py:203
↓ 4 callersMethodinvert
( self, image_path: str, prompt: str, num_inner_steps=10, early_stop_epsilon=1e-6, num_inference_steps
examples/community/pipeline_null_text_inversion.py:178
↓ 4 callersFunctionis_scipy_available
()
src/diffusers/utils/import_utils.py:335
↓ 4 callersFunctionload_checkpoint_to_model
(checkpoint, model, strict=False)
scripts/convert_kandinsky_to_diffusers.py:1320
↓ 4 callersMethodload_module
(name, value)
src/diffusers/pipelines/pipeline_utils.py:770
↓ 4 callersMethodmode
(self)
src/diffusers/models/autoencoders/vae.py:821
↓ 4 callersFunctionparse_list
(value)
scripts/convert_if.py:703
↓ 4 callersMethodprevious_timestep
(self, timestep)
src/diffusers/schedulers/scheduling_lcm.py:649
↓ 4 callersFunctionrearrange_3
(tensor, f)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:64
↓ 4 callersFunctionrearrange_3
(tensor, f)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:38
↓ 4 callersFunctionrearrange_4
(tensor)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:70
↓ 4 callersFunctionrearrange_4
(tensor)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:43
↓ 4 callersFunctionrenew_temp_conv_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_i2vgen_to_diffusers.py:101
↓ 4 callersFunctionrenew_temp_conv_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_ms_text_to_video_to_diffusers.py:106
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_original_audioldm2_to_diffusers.py:88
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_svd_to_diffusers.py:556
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_versatile_diffusion_to_diffusers.py:128
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_original_audioldm_to_diffusers.py:79
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_zero123_to_diffusers.py:623
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_original_musicldm_to_diffusers.py:80
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
scripts/convert_unidiffuser_to_diffusers.py:48
↓ 4 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:103
↓ 4 callersFunctionresnet_to_diffusers_checkpoint
(checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_kandinsky_to_diffusers.py:750
↓ 4 callersFunctionresnet_to_diffusers_checkpoint
(checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_kakao_brain_unclip_to_diffusers.py:799
↓ 4 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
examples/community/pipeline_sdxl_style_aligned.py:377
↓ 4 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
examples/community/lpw_stable_diffusion_xl.py:489
↓ 4 callersFunctionrunEngine
(engine, feed_dict, stream)
examples/community/stable_diffusion_tensorrt_txt2img.py:396
↓ 4 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/instaflow_one_step.py:374
↓ 4 callersMethodsample
(self, generator: Optional[torch.Generator] = None)
src/diffusers/models/autoencoders/vae.py:782
↓ 4 callersMethodsave_lora_weights
r""" Save the LoRA parameters corresponding to the UNet and text encoder. Arguments: save_directory (`str` or `os.PathLik
src/diffusers/loaders/lora.py:708
↓ 4 callersFunctionset_adapter_layers
(model, enabled=True)
src/diffusers/utils/peft_utils.py:193
↓ 4 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/unets/unet_2d_condition.py:716
↓ 4 callersMethodset_joint_mode
r"""Manually set the generation mode to unconditional joint image-text generation.
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:264
↓ 4 callersMethodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:197
↓ 4 callersMethodset_progress_bar_config
(self, **kwargs)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:210
↓ 4 callersFunctionset_verbosity
Set the verbosity level for the 🤗 Diffusers' root logger. Args: verbosity (`int`): Logging level which can be one of:
src/diffusers/utils/logging.py:145
← previousnext →601–700 of 9,976, ranked by callers