MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:471
↓ 1 callersMethodprepare_latents
(self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:573
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:450
↓ 1 callersMethodprepare_latents
(self, image, timestep, num_images_per_prompt, dtype, device, generator)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:543
↓ 1 callersMethodprepare_latents
(self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None)
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:638
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:590
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:350
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:302
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:216
↓ 1 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/shap_e/pipeline_shap_e.py:122
↓ 1 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:123
↓ 1 callersMethodprepare_latents
( self, batch_size, num_channels_latents, num_frames, height, width, dtype, device, generator, latents
src/diffusers/pipelines/pia/pipeline_pia.py:643
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, dtype, device, generator, latents=None)
src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:710
↓ 1 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py:121
↓ 1 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py:103
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/research_projects/rdm/pipeline_rdm.py:125
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/research_projects/controlnetxs/pipeline_controlnet_xs.py:549
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/research_projects/controlnetxs/pipeline_controlnet_xs_sd_xl.py:579
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:791
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/composable_stable_diffusion.py:323
↓ 1 callersMethodprepare_latents
( self, image, mask, width, height, num_channels_latents,
examples/community/pipeline_sdxl_style_aligned.py:900
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/stable_diffusion_controlnet_inpaint.py:637
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:753
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/pipeline_demofusion_sdxl.py:479
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/sd_text2img_k_diffusion.py:261
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, latents=None)
examples/community/latent_consistency_txt2img.py:165
↓ 1 callersMethodprepare_latents
(self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None)
examples/community/clip_guided_stable_diffusion_img2img.py:187
↓ 1 callersMethodprepare_latents
(self, image, timestep, batch_size, height, width, dtype, generator, latents=None)
examples/community/lpw_stable_diffusion_onnx.py:621
↓ 1 callersMethodprepare_latents
(self, image, timestep, batch_size, dtype, device, generator=None)
examples/community/ddim_noise_comparative_analysis.py:79
↓ 1 callersMethodprepare_latents
r""" Prepare the latent vectors for diffusion. Args: batch_size (int): The number of samples in the batch. nu
examples/community/stable_diffusion_reference.py:585
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/instaflow_one_step.py:470
↓ 1 callersMethodprepare_latents
( self, batch_size, num_channels_latents, height, width, dtype
examples/community/llm_grounded_diffusion.py:1466
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/ip_adapter_face_id.py:1041
↓ 1 callersMethodprepare_latents
(self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None)
examples/community/run_onnx_controlnet.py:456
↓ 1 callersMethodprepare_latents
( self, image, mask, width, height, num_channels_latents,
examples/community/lpw_stable_diffusion_xl.py:1041
↓ 1 callersMethodprepare_latents
( self, image, timestep, batch_size, num_channels_latents, hei
examples/community/latent_consistency_img2img.py:167
↓ 1 callersMethodprepare_latents
( self, batch_size, num_channels_latents, height, width, dtype
examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:900
↓ 1 callersMethodprepare_latents
(self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None)
examples/community/stable_diffusion_controlnet_inpaint_img2img.py:606
↓ 1 callersMethodprepare_latents
( self, batch_size, num_channels_latents, height, width, dtype
examples/community/stable_diffusion_repaint.py:513
↓ 1 callersMethodprepare_latents
( self, batch_size, num_channels_latents, height, width, dtype
examples/community/pipeline_prompt2prompt.py:523
↓ 1 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
examples/community/stable_unclip.py:170
↓ 1 callersMethodprepare_latents
(self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None)
examples/community/stable_diffusion_controlnet_img2img.py:533
↓ 1 callersMethodprepare_latents
( self, batch_size, num_channels_latents, num_frames, height, width, dtype, device, generator, latents
examples/community/pipeline_animatediff_controlnet.py:652
↓ 1 callersMethodprepare_latents
( self, image, timestep, num_images_per_prompt, batch_size, nu
examples/community/lpw_stable_diffusion.py:711
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:493
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/pipeline_zero1to3.py:499
↓ 1 callersMethodprepare_latents
( self, image, strength, batch_size, num_channels_latents, num
examples/community/pipeline_animatediff_img2video.py:655
↓ 1 callersMethodprepare_latents
(self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None)
examples/community/run_tensorrt_controlnet.py:560
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
examples/community/gluegen.py:502
↓ 1 callersFunctionprepare_mask
(masks)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:92
↓ 1 callersFunctionprepare_mask
(masks)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:98
↓ 1 callersFunctionprepare_mask_and_masked_image
r""" Prepares a pair (mask, image) to be consumed by the Kandinsky inpaint pipeline. This means that those inputs will be converted to ``torch
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:117
↓ 1 callersFunctionprepare_mask_and_masked_image
(image, mask, latents_shape)
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint.py:38
↓ 1 callersFunctionprepare_mask_and_masked_image
r""" Prepares a pair (mask, image) to be consumed by the Kandinsky inpaint pipeline. This means that those inputs will be converted to ``torch
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:122
↓ 1 callersFunctionprepare_mask_and_masked_image
Prepares a pair (image, mask) to be consumed by the Paint by Example pipeline. This means that those inputs will be converted to ``torch.Tens
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py:51
↓ 1 callersFunctionprepare_mask_and_masked_image
(image, mask)
examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:205
↓ 1 callersFunctionprepare_mask_and_masked_image
Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be converted to ``torch.Tens
examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:180
↓ 1 callersFunctionprepare_mask_and_masked_image
(image, mask)
examples/community/img2img_inpainting.py:21
↓ 1 callersFunctionprepare_mask_and_masked_image
Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be converted to ``torch.Tens
examples/community/stable_diffusion_repaint.py:42
↓ 1 callersFunctionprepare_mask_coef_by_statistics
(num_frames: int, cond_frame: int, motion_scale: int)
src/diffusers/pipelines/pia/pipeline_pia.py:115
↓ 1 callersFunctionprepare_mask_image
(mask_image)
examples/community/stable_diffusion_controlnet_inpaint.py:151
↓ 1 callersFunctionprepare_mask_image
(mask_image)
examples/community/stable_diffusion_controlnet_inpaint_img2img.py:150
↓ 1 callersMethodprepare_mask_latents
( self, mask, masked_image, batch_size, height, width, dtype, device, generator, do_classifier_free_gu
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:950
↓ 1 callersMethodprepare_mask_latents
( self, mask, masked_image, batch_size, height, width, dtype, device, generator, do_classifier_free_gu
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:951
↓ 1 callersMethodprepare_mask_latents
( self, mask, masked_image, batch_size, height, width, dtype, device, generator, do_classifier_free_gu
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1018
↓ 1 callersMethodprepare_mask_latents
( self, mask, masked_image, batch_size, height, width, dtype, device, generator, do_classifier_free_gu
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:854
↓ 1 callersMethodprepare_mask_latents
( self, mask, masked_image, batch_size, height, width, dtype, device, generator, do_classifier_free_gu
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py:303
↓ 1 callersMethodprepare_mask_latents
( self, mask, masked_image, batch_size, height, width, dtype, device, generator, do_classifier_free_gu
examples/community/pipeline_sdxl_style_aligned.py:1046
↓ 1 callersMethodprepare_mask_latents
(self, mask_image, batch_size, height, width, dtype, device, do_classifier_free_guidance)
examples/community/stable_diffusion_controlnet_inpaint.py:655
↓ 1 callersMethodprepare_mask_latents
( self, mask, masked_image, batch_size, height, width, dtype, device, generator, do_classifier_free_gu
examples/community/lpw_stable_diffusion_xl.py:1210
↓ 1 callersMethodprepare_mask_latents
( self, mask, masked_image, batch_size, height, width,
examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:989
↓ 1 callersMethodprepare_mask_latents
(self, mask_image, batch_size, height, width, dtype, device, do_classifier_free_guidance)
examples/community/stable_diffusion_controlnet_inpaint_img2img.py:647
↓ 1 callersMethodprepare_mask_latents
( self, mask, masked_image, batch_size, height, width,
examples/community/stable_diffusion_repaint.py:545
↓ 1 callersMethodprepare_masked_condition
( self, image, batch_size, num_channels_latents, num_frames, h
src/diffusers/pipelines/pia/pipeline_pia.py:668
↓ 1 callersMethodprepare_masked_image_latents
( self, masked_image, batch_size, height, width, dtype, device, generator, do_classifier_free_guidance
examples/community/stable_diffusion_controlnet_inpaint.py:678
↓ 1 callersMethodprepare_masked_image_latents
( self, masked_image, batch_size, height, width, dtype, device, generator, do_classifier_free_guidance
examples/community/stable_diffusion_controlnet_inpaint_img2img.py:670
↓ 1 callersMethodprepare_prior_extra_step_kwargs
(self, generator, eta)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:480
↓ 1 callersMethodprepare_ref_latents
(self, refimage, batch_size, dtype, device, generator, do_classifier_free_guidance)
examples/community/stable_diffusion_xl_reference.py:154
↓ 1 callersMethodprepare_ref_latents
r""" Prepares reference latents for generating images. Args: refimage (torch.Tensor): The reference image. ba
examples/community/stable_diffusion_reference.py:728
↓ 1 callersMethodprepare_ref_latents
(self, refimage, batch_size, dtype, device, generator, do_classifier_free_guidance)
examples/community/stable_diffusion_controlnet_reference.py:68
↓ 1 callersMethodprepare_text_latents
( self, batch_size, num_images_per_prompt, seq_len, hidden_size, dtype, device, generator, latents=Non
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:681
↓ 1 callersFunctionprepare_train_dataset
(dataset, accelerator)
examples/t2i_adapter/train_t2i_adapter_sdxl.py:728
↓ 1 callersFunctionprepare_train_dataset
(dataset, accelerator)
examples/controlnet/train_controlnet_sdxl.py:730
↓ 1 callersFunctionpreprocess
(image)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py:23
↓ 1 callersFunctionpreprocess
(image, dtype)
src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:525
↓ 1 callersFunctionpreprocess
(image)
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py:35
↓ 1 callersFunctionpreprocess
(image, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py:526
↓ 1 callersFunctionpreprocess
(image)
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_upscale.py:34
↓ 1 callersFunctionpreprocess
(image)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_onnx_stable_diffusion_inpaint_legacy.py:20
↓ 1 callersFunctionpreprocess
(image)
examples/community/imagic_stable_diffusion.py:50
↓ 1 callersFunctionpreprocess
(image, w, h)
examples/community/clip_guided_stable_diffusion_img2img.py:78
↓ 1 callersFunctionpreprocess
(image)
examples/community/ddim_noise_comparative_analysis.py:35
↓ 1 callersFunctionpreprocess_image
(image, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py:573
↓ 1 callersFunctionpreprocess_image
(image, batch_size)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:40
↓ 1 callersFunctionpreprocess_image
(image)
examples/community/lpw_stable_diffusion_onnx.py:407
↓ 1 callersFunctionpreprocess_image
image: torch.Tensor
examples/community/stable_diffusion_tensorrt_img2img.py:95
↓ 1 callersFunctionpreprocess_image
(image, batch_size)
examples/community/lpw_stable_diffusion.py:370
↓ 1 callersMethodpreprocess_image
(self, image: PIL.Image.Image, num_images_per_prompt, device)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:686
↓ 1 callersMethodpreprocess_image
(self, image, num_images_per_prompt, device)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:591
↓ 1 callersMethodpreprocess_image
(self, image: PIL.Image.Image)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:600
← previousnext →3,301–3,400 of 9,976, ranked by callers