MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:61
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:76
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:91
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:106
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:121
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:136
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:151
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:166
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:181
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:196
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:211
Methodfrom_pretrained
( cls, model_id: Union[str, Path], force_download: bool = True, token: Optiona
src/diffusers/pipelines/onnx_utils.py:196
Methodfrom_pretrained
r""" Instantiates a image-to-image Pytorch diffusion pipeline from pretrained pipeline weight. The from_pretrained() method takes car
src/diffusers/pipelines/auto_pipeline.py:465
Methodfrom_pretrained
r""" Instantiates a inpainting Pytorch diffusion pipeline from pretrained pipeline weight. The from_pretrained() method takes care of
src/diffusers/pipelines/auto_pipeline.py:742
Methodfrom_pretrained
r""" Instantiate a Flax-based diffusion pipeline from pretrained pipeline weights. The pipeline is set in evaluation mode (`model.eva
src/diffusers/pipelines/pipeline_flax_utils.py:231
Methodfrom_pretrained
r""" Instantiate a PyTorch diffusion pipeline from pretrained pipeline weights. The pipeline is set in evaluation mode (`model.eval()
src/diffusers/pipelines/pipeline_utils.py:465
Methodfrom_pretrained
r""" Instantiate a scheduler from a pre-defined JSON configuration file in a local directory or Hub repository. Parameters:
src/diffusers/schedulers/scheduling_utils.py:87
Methodfrom_pretrained
r""" Instantiate a Scheduler class from a pre-defined JSON-file. Parameters: pretrained_model_name_or_path (`str` or `os.
src/diffusers/schedulers/scheduling_utils_flax.py:75
Methodfrom_pretrained
r""" Instantiate a pretrained PyTorch model from a pretrained model configuration. The model is set in evaluation mode - `model.eval(
src/diffusers/models/modeling_utils.py:393
Methodfrom_pretrained
r""" Instantiate a pretrained Flax model from a pretrained model configuration. Parameters: pretrained_model_name_or_path
src/diffusers/models/modeling_flax_utils.py:205
Methodfrom_single_file
r""" Instantiate a [`ControlNetModel`] from pretrained ControlNet weights saved in the original `.ckpt` or `.safetensors` format. The
src/diffusers/loaders/controlnet.py:30
Methodfrom_single_file
r""" Instantiate a [`AutoencoderKL`] from pretrained ControlNet weights saved in the original `.ckpt` or `.safetensors` format. The pi
src/diffusers/loaders/autoencoder.py:30
Methodfrom_unet
r""" Instantiate a [`ControlNetModel`] from [`UNet2DConditionModel`]. Parameters: unet (`UNet2DConditionModel`):
src/diffusers/models/controlnet.py:445
Methodfuse_lora
(self, lora_scale=1.0, safe_fusing=False, adapter_names=None)
src/diffusers/loaders/unet.py:508
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
src/diffusers/pipelines/pipeline_utils.py:1712
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1001
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
src/diffusers/models/unets/unet_3d_condition.py:508
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
src/diffusers/models/unets/unet_2d_condition.py:866
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
src/diffusers/models/unets/unet_motion_model.py:706
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
src/diffusers/models/autoencoders/autoencoder_kl.py:454
Methodfuse_text_encoder_lora
(text_encoder, lora_scale=1.0, safe_fusing=False, adapter_names=None)
src/diffusers/loaders/lora.py:893
Methodgenerate_caption
Generates caption for a given image.
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:681
Methodget_average_attention
(self)
examples/community/pipeline_prompt2prompt.py:994
Methodget_block
(block_type, c_hidden, nhead, c_skip=0, dropout=0)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py:68
Methodget_block
(block_type, in_channels, nhead, c_skip=0, dropout=0, self_attn=True)
src/diffusers/models/unets/unet_stable_cascade.py:288
Methodget_config_dict
(cls, *args, **kwargs)
src/diffusers/configuration_utils.py:277
Methodget_connected_passed_kwargs
(prefix)
src/diffusers/pipelines/pipeline_utils.py:869
Functionget_constant_schedule
Create a schedule with a constant learning rate, using the learning rate set in optimizer. Args: optimizer ([`~torch.optim.Optimizer
src/diffusers/optimization.py:40
Functionget_constant_schedule
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:350
Functionget_constant_schedule_with_warmup
Create a schedule with a constant learning rate preceded by a warmup period during which the learning rate increases linearly between 0 and t
src/diffusers/optimization.py:56
Functionget_constant_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:354
Functionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
src/diffusers/optimization.py:154
Functionget_cosine_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:358
Functionget_cosine_with_hard_restarts_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
src/diffusers/optimization.py:188
Functionget_cosine_with_hard_restarts_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:362
Functionget_dataset_with_emb_from_model
(dataset, model, feature_extractor, image_column="image", index_name="embeddings")
examples/research_projects/rdm/retriever.py:233
Methodget_dim_attn_heads
Currently, diffusers can only set the dimension of attention heads (see https://github.com/huggingface/diffusers/issues/2011#issuecomment
examples/research_projects/controlnetxs/controlnetxs.py:149
Functionget_doctest_files
Return a list of python and Markdown files where doc example have been modified between: - the current head and the main branch if `diff_wit
utils/tests_fetcher.py:406
Functionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
src/diffusers/models/unet_2d_blocks.py:48
Functionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
src/diffusers/models/unets/unet_2d_blocks.py:43
Functionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
src/diffusers/models/unets/unet_3d_blocks.py:38
Methodget_dummy_components
(self)
tests/pipelines/amused/test_amused.py:38
Methodget_dummy_components
(self)
tests/pipelines/amused/test_amused_img2img.py:42
Methodget_dummy_components
(self)
tests/pipelines/amused/test_amused_inpaint.py:42
Methodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_img2img.py:78
Methodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_inpaint.py:69
Methodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_inpaint.py:186
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_img2img_superresolution.py:42
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_superresolution.py:39
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_inpainting_superresolution.py:42
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_inpainting.py:42
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_img2img.py:42
Methodget_dummy_components
(self)
tests/pipelines/stable_unclip/test_stable_unclip.py:42
Methodget_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:424
Methodget_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py:344
Methodget_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py:367
Methodget_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py:390
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_instruction_pix2pix.py:132
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/amused/test_amused.py:109
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/amused/test_amused_img2img.py:113
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/amused/test_amused_inpaint.py:113
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_img2img.py:147
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_inpaint.py:135
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_img2img_superresolution.py:45
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_superresolution.py:42
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_inpainting_superresolution.py:45
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_inpainting.py:45
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_img2img.py:45
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_unclip/test_stable_unclip.py:161
Methodget_dummy_tokens
(self)
tests/lora/test_lora_layers_peft.py:171
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_inpaint.py:253
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_inpaint.py:428
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_inpaint.py:487
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_inpaint.py:632
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_txt2img.py:238
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_txt2img.py:413
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_txt2img.py:472
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_img2img.py:253
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_img2img.py:428
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_img2img.py:487
Methodget_dynamic_axes
(self)
examples/community/stable_diffusion_tensorrt_img2img.py:632
Methodget_embeds
(self, prompt: List[str], batch_size: int = 16)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:705
Methodget_guidance_scale_embedding
See https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298 Args: timeste
examples/community/llm_grounded_diffusion.py:1499
Methodget_indices
Utility function to list the indices of the tokens you wish to alte
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:724
Methodget_input_embeddings
(self)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:454
Methodget_input_embeddings
(self)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:578
Methodget_input_names
(self)
examples/community/stable_diffusion_tensorrt_inpaint.py:247
Methodget_input_names
(self)
examples/community/stable_diffusion_tensorrt_inpaint.py:422
Methodget_input_names
(self)
examples/community/stable_diffusion_tensorrt_inpaint.py:481
Methodget_input_names
(self)
examples/community/stable_diffusion_tensorrt_inpaint.py:626
← previousnext →6,801–6,900 of 9,976, ranked by callers