MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 1 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:43
↓ 1 callersMethodresize_and_crop_tensor
(samples: torch.Tensor, new_width: int, new_height: int)
src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:681
↓ 1 callersFunctionresize_image
(input_image, resolution)
examples/brushnet/app_brushnet.py:49
↓ 1 callersMethodresize_max_res
Resize image to limit maximum edge length while keeping aspect ratio. Args: img (`Image.Image`): Image t
examples/community/marigold_depth_estimation.py:368
↓ 1 callersFunctionresize_token_embeddings
(model, new_num_tokens, initializer_token_id, placeholder_token_id, rng)
examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:328
↓ 1 callersFunctionresize_token_embeddings
(model, new_num_tokens, initializer_token_id, placeholder_token_id, rng)
examples/textual_inversion/textual_inversion_flax.py:341
↓ 1 callersFunctionresnet_to_diffusers_checkpoint
(resnet, checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_k_upscaler_to_diffusers.py:13
↓ 1 callersMethodresolution
(self)
src/diffusers/pipelines/shap_e/camera.py:43
↓ 1 callersMethodretract_embeddings
(self)
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:798
↓ 1 callersMethodretract_embeddings
(self)
examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:790
↓ 1 callersFunctionretrieve
(class_prompt, class_data_dir, num_class_images)
examples/custom_diffusion/retrieve.py:25
↓ 1 callersMethodretrieve_images
(self, retrieved_images, prompt_embeds, knn=10)
examples/research_projects/rdm/pipeline_rdm.py:142
↓ 1 callersMethodretrieve_indices
(self, vec, k: int = 20)
examples/research_projects/rdm/retriever.py:123
↓ 1 callersMethodretrieve_indices_batch
(self, vec, k: int = 20)
examples/research_projects/rdm/retriever.py:127
↓ 1 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_instruct_pix2pix.py:93
↓ 1 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:62
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:105
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:122
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:267
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/brushnet/pipeline_brushnet.py:84
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:138
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:122
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:61
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:65
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/controlnet/pipeline_controlnet.py:95
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:73
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:113
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:177
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:174
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:123
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:78
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:117
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:77
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:101
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
examples/community/pipeline_sdxl_style_aligned.py:332
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
examples/community/pipeline_null_text_inversion.py:15
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
examples/community/ip_adapter_face_id.py:372
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
examples/community/lpw_stable_diffusion_xl.py:503
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
examples/community/pipeline_stable_diffusion_xl_ipex.py:119
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
examples/community/pipeline_animatediff_img2video.py:198
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
examples/community/gluegen.py:153
↓ 1 callersMethodrle2mask
(self, mask_rle, shape)
examples/brushnet/train_brushnet_sdxl.py:869
↓ 1 callersMethodrle2mask
(self, mask_rle, shape)
examples/brushnet/train_brushnet.py:683
↓ 1 callersMethodround_timesteps
(timesteps, total_timesteps, n_distilled_steps, truncate_start=True)
scripts/convert_consistency_decoder.py:103
↓ 1 callersMethodrun_diffusion
(self, x, conditions, n_guide_steps, scale)
src/diffusers/experimental/rl/value_guided_sampling.py:89
↓ 1 callersFunctionrun_length_encode_shifts
Combine leading/interior shifts, trim trailing shifts. Args: features: Dict of features to process. Returns: A d
src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:554
↓ 1 callersFunctionrun_length_encode_shifts_fn
Return a function that run-length encodes shifts for a given codec. Args: codec: The Codec to use for shift events. feature_key: The
src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:534
↓ 1 callersFunctionrun_ruff
(code)
utils/check_copies.py:96
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype, enable_safety_guidance)
src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:311
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/brushnet/pipeline_brushnet.py:515
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:405
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:749
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py:365
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:477
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:461
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:652
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:527
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/controlnet/pipeline_controlnet.py:534
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:438
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:95
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:391
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:416
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:543
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:154
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:159
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:588
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:660
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:659
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:465
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:526
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py:217
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:588
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:374
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:535
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:365
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:436
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:536
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:496
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:592
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/research_projects/controlnetxs/pipeline_controlnet_xs.py:358
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:515
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/composable_stable_diffusion.py:273
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/sd_text2img_k_diffusion.py:228
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/latent_consistency_txt2img.py:151
↓ 1 callersMethodrun_safety_checker
(self, image)
examples/community/lpw_stable_diffusion_onnx.py:575
↓ 1 callersMethodrun_safety_checker
r""" Runs the safety checker on the given image. Args: image (Union[torch.Tensor, PIL.Image.Image]): The input image to b
examples/community/stable_diffusion_reference.py:779
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/llm_grounded_diffusion.py:1421
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/ip_adapter_face_id.py:947
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/latent_consistency_img2img.py:153
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/stable_diffusion_repaint.py:427
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/pipeline_prompt2prompt.py:430
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:374
↓ 1 callersMethodrun_safety_checker
(self, image, device, dtype)
examples/community/gluegen.py:433
↓ 1 callersMethodsample
(self, key)
src/diffusers/models/vae_flax.py:700
↓ 1 callersFunctionsample_pmf
r""" Sample from the given discrete probability distribution with replacement. The i-th bin is assumed to have mass pmf[i]. Args:
src/diffusers/pipelines/shap_e/renderer.py:30
↓ 1 callersFunctionsave_blip_diffusion_model
(model, args)
scripts/convert_blipdiffusion_to_diffusers.py:302
↓ 1 callersFunctionsave_model_card
(repo_id: str, image_logs=None, base_model=str, repo_folder=None)
examples/brushnet/train_brushnet_sdxl.py:203
↓ 1 callersFunctionsave_model_card
(repo_id: str, image_logs=None, base_model=str, repo_folder=None)
examples/brushnet/train_brushnet.py:199
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, prompt=str, repo_folder=None)
examples/custom_diffusion/train_custom_diffusion.py:76
↓ 1 callersFunctionsave_model_card
( repo_id: str, images: list = None, base_model: str = None, train_text_encoder=False, pro
examples/dreambooth/train_dreambooth.py:71
← previousnext →3,501–3,600 of 9,976, ranked by callers