MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

Methodimg2img
( self, prompt: Union[str, List[str]], image: Union[torch.FloatTensor, PIL.Image.Image
examples/community/stable_diffusion_mega.py:134
Functionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:451
Functionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/consistency_distillation/train_lcm_distill_sd_wds.py:428
Methodind_fn
(t, b, c)
src/diffusers/schedulers/scheduling_deis_multistep.py:543
Methodinfer_shapes
(self, return_onnx=False)
scripts/convert_stable_diffusion_controlnet_to_onnx.py:54
Functioninfo_command_factory
(_)
src/diffusers/commands/env.py:25
Methodinit_dict
(self)
tests/models/autoencoders/test_models_vae.py:380
Functioninit_fn
(_)
examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:474
Functioninit_fn
(_)
examples/textual_inversion/textual_inversion_flax.py:493
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_lms_discrete.py:175
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:228
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:146
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:223
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_edm_euler.py:107
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:139
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:146
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_consistency_decoder.py:113
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_euler_discrete.py:242
Methodinit_noise_sigma
(self)
src/diffusers/schedulers/scheduling_heun_discrete.py:169
Methodinit_original
Create a ControlNetXS model with the same parameters as in the original paper (https://github.com/vislearn/ControlNet-XS). Parameter
examples/research_projects/controlnetxs/controlnetxs.py:138
Methodinit_retrieval
(self)
examples/research_projects/rdm/retriever.py:175
Methodinit_weights
(self, rng: jax.Array, input_shape: Tuple, params: FrozenDict = None)
src/diffusers/pipelines/stable_diffusion/safety_checker_flax.py:90
Methodinit_weights
(self, rng: jax.Array)
src/diffusers/models/modeling_flax_utils.py:200
Methodinit_weights
(self, rng: jax.Array)
src/diffusers/models/unets/unet_2d_condition_flax.py:132
Methodinit_weights
(m)
tests/pipelines/controlnet/test_controlnet_img2img.py:211
Methodinit_weights
(m)
tests/pipelines/controlnet/test_controlnet_sdxl.py:504
Methodinit_weights
(m)
tests/pipelines/controlnet/test_controlnet_sdxl.py:709
Methodinit_weights
(m)
tests/pipelines/controlnet/test_controlnet_inpaint.py:274
Methodinit_weights
(m)
tests/pipelines/controlnet/test_controlnet.py:303
Methodinit_weights
(m)
tests/pipelines/controlnet/test_controlnet.py:520
Methodinitialize_options
(self)
setup.py:180
Functioninner_init
(self, *args, **kwargs)
src/diffusers/configuration_utils.py:618
Methodinpaint
r""" Function for inpaint. Args: image (`np.ndarray` or `PIL.Image.Image`): `Image`, or tensor representin
examples/community/lpw_stable_diffusion_onnx.py:1053
Methodinpaint
r""" Function invoked when calling pipeline for inpainting. Refer to the documentation of the `__call__` method for parameter descrip
examples/community/lpw_stable_diffusion_xl.py:2053
Methodinpaint
r""" Function for inpaint. Args: image (`torch.FloatTensor` or `PIL.Image.Image`): `Image`, or tensor repr
examples/community/lpw_stable_diffusion.py:1243
Methodinpaint
( self, prompt: Union[str, List[str]], image: Union[torch.FloatTensor, PIL.Image.Image
examples/community/stable_diffusion_mega.py:99
Methodinput_shape
(self)
tests/models/transformers/test_models_prior.py:80
Methodinput_shape
(self)
tests/models/unets/test_models_unet_2d.py:57
Methodinput_shape
(self)
tests/models/unets/test_models_unet_2d.py:125
Methodinput_shape
(self)
tests/models/unets/test_models_unet_2d.py:239
Methodinput_shape
(self)
tests/models/unets/test_models_unet_1d.py:47
Methodinput_shape
(self)
tests/models/unets/test_models_unet_1d.py:169
Methodinput_shape
(self)
tests/models/unets/test_models_unet_motion.py:59
Methodinput_shape
(self)
tests/models/unets/test_models_unet_2d_condition.py:259
Methodinput_shape
(self)
tests/models/unets/test_models_unet_spatiotemporal.py:62
Methodinput_shape
(self)
tests/models/unets/test_models_unet_3d_condition.py:53
Methodinput_shape
(self)
tests/models/autoencoders/test_models_vae.py:147
Methodinput_shape
(self)
tests/models/autoencoders/test_models_vae.py:306
Methodinput_shape
(self)
tests/models/autoencoders/test_models_vae.py:341
Methodinput_shape
(self)
tests/models/autoencoders/test_models_vae.py:372
Methodinput_shape
(self)
tests/models/autoencoders/test_models_vae.py:412
Methodinput_shape
(self)
tests/models/autoencoders/test_models_vq.py:48
Methodinter_distances
To calculate the distance between each two depth maps.
examples/community/marigold_depth_estimation.py:510
Methodinterpolate
Function invoked when using the prior pipeline for interpolation. Args: images_and_prompts (`List[Union[str, PIL.Image.I
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:157
Methodinterrupt
(self)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:803
Methodinterrupt
(self)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:941
Methodinterrupt
(self)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1177
Methodinterrupt
(self)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:728
Methodinterrupt
(self)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:822
Methodinterrupt
(self)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:964
Methodinterrupt
(self)
src/diffusers/pipelines/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:703
Methodinterrupt
(self)
examples/community/pipeline_sdxl_style_aligned.py:1369
Methodinterrupt
(self)
examples/community/ip_adapter_face_id.py:1115
Methodinterrupt
(self)
examples/community/gluegen.py:576
Methodinv_sigmoid
(theta0, theta1, theta2, alpha)
examples/community/checkpoint_merger.py:280
Methodinvert
r""" Function used to generate inverted latents given a prompt and image. Args: prompt (`str` or `List[str]`, *optional*)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1103
Functionis_flaky
To decorate flaky tests. They will be retried on failures. Args: max_attempts (`int`, *optional*, defaults to 5): The ma
src/diffusers/utils/testing_utils.py:685
Methodis_gradient_checkpointing
Whether gradient checkpointing is activated for this model or not.
src/diffusers/models/modeling_utils.py:221
Functionis_inflect_available
()
src/diffusers/utils/import_utils.py:319
Functionis_progress_bar_enabled
Return a boolean indicating whether tqdm progress bars are enabled.
src/diffusers/utils/logging.py:324
Methodis_saveable_module
(name, value)
src/diffusers/pipelines/pipeline_utils.py:221
Functionis_staging_test
Decorator marking a test as a staging test. Those tests will run using the staging environment of huggingface.co instead of the real model h
tests/others/test_utils.py:204
Functionis_tensor
Tests if `x` is a `torch.Tensor` or `np.ndarray`.
src/diffusers/utils/outputs.py:27
Functionis_unidecode_available
()
src/diffusers/utils/import_utils.py:323
Methodkl
(self, other=None)
src/diffusers/models/vae_flax.py:703
Methodkl
(self, other: "DiagonalGaussianDistribution" = None)
src/diffusers/models/autoencoders/vae.py:793
Methodlanczos2
(x)
examples/community/dps_pipeline.py:188
Methodlanczos3
(x)
examples/community/dps_pipeline.py:197
Methodlatent2image
(self, latents)
examples/community/pipeline_null_text_inversion.py:83
Methodlatent_cls
(v0, v1, index)
examples/community/pipeline_animatediff_img2video.py:714
Methodlayer_
(*args)
src/diffusers/models/unets/uvit_2d.py:186
Methodlms_derivative
(tau)
src/diffusers/schedulers/scheduling_lms_discrete.py:243
Methodlms_derivative
(tau)
src/diffusers/schedulers/scheduling_lms_discrete_flax.py:155
Methodload_ip_adapter_face_id
(self, pretrained_model_name_or_path_or_dict, weight_name, **kwargs)
examples/community/ip_adapter_face_id.py:554
Methodload_ip_adapter_instantid
(self, model_ckpt, image_emb_dim=512, num_tokens=16, scale=0.5)
examples/community/pipeline_stable_diffusion_xl_instantid.py:462
Methodload_language_adapter
( self, model_path: str, num_token: int, dim: int, dim_out: int,
examples/community/gluegen.py:228
Methodload_lora_weights
Load LoRA weights specified in `pretrained_model_name_or_path_or_dict` into `self.unet` and `self.text_encoder`. All kwargs
src/diffusers/loaders/lora.py:1200
Methodload_lora_weights
(self, pretrained_model_name_or_path_or_dict: Union[str, Dict[str, torch.Tensor]], **kwargs)
examples/community/lpw_stable_diffusion_xl.py:2135
Functionload_model_hook
(models, input_dir)
examples/brushnet/train_brushnet_sdxl.py:1110
Functionload_model_hook
(models, input_dir)
examples/brushnet/train_brushnet.py:1028
Functionload_model_hook
(models, input_dir)
examples/dreambooth/train_dreambooth.py:958
Functionload_model_hook
(models, input_dir)
examples/dreambooth/train_dreambooth_lora_sdxl.py:1219
Functionload_model_hook
(models, input_dir)
examples/dreambooth/train_dreambooth_lora.py:961
Functionload_model_hook
(models, input_dir)
examples/text_to_image/train_text_to_image_lora_sdxl.py:688
Functionload_model_hook
(models, input_dir)
examples/text_to_image/train_text_to_image.py:632
Functionload_model_hook
(models, input_dir)
examples/text_to_image/train_text_to_image_sdxl.py:736
Functionload_model_hook
(models, input_dir)
examples/t2i_adapter/train_t2i_adapter_sdxl.py:906
Functionload_model_hook
(models, input_dir)
examples/amused/train_amused.py:541
Functionload_model_hook
(models, input_dir)
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1421
Functionload_model_hook
(models, input_dir)
examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1306
← previousnext →7,101–7,200 of 9,976, ranked by callers