MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 1 callersFunction_map
(params, mask, label_fn)
examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:457
↓ 1 callersFunction_map
(params, mask, label_fn)
examples/textual_inversion/textual_inversion_flax.py:476
↓ 1 callersFunction_maybe_map_sgm_blocks_to_diffusers
(state_dict, unet_config, delimiter="_", block_slice_pos=5)
src/diffusers/loaders/lora_conversion_utils.py:23
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:20
↓ 1 callersFunction_p_generate
( pipe, prompt_ids, params, prng_seed, num_inference_steps, height, width, gui
src/diffusers/pipelines/stable_diffusion_xl/pipeline_flax_stable_diffusion_xl.py:284
↓ 1 callersFunction_p_generate
( pipe, prompt_ids, image, params, prng_seed, num_inference_steps, guidance_scale,
src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:488
↓ 1 callersFunction_p_generate
( pipe, prompt_ids, mask, masked_image, params, prng_seed, num_inference_steps,
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py:532
↓ 1 callersFunction_p_generate
( pipe, prompt_ids, image, params, prng_seed, start_timestep, num_inference_steps,
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py:485
↓ 1 callersFunction_p_generate
( pipe, prompt_ids, params, prng_seed, num_inference_steps, height, width, gui
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py:439
↓ 1 callersFunction_p_get_has_nsfw_concepts
(pipe, features, params)
src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:514
↓ 1 callersFunction_p_get_has_nsfw_concepts
(pipe, features, params)
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py:562
↓ 1 callersFunction_p_get_has_nsfw_concepts
(pipe, features, params)
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py:515
↓ 1 callersFunction_p_get_has_nsfw_concepts
(pipe, features, params)
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py:465
↓ 1 callersMethod_parse_response_with_negative
(cls, text)
examples/community/llm_grounded_diffusion.py:431
↓ 1 callersMethod_perform_iterative_refinement_step
Performs the iterative latent refinement introduced in the paper. Here, we continuously update the latent code according to our loss
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:651
↓ 1 callersFunction_preprocess_image
(image: Union[List, PIL.Image.Image, torch.Tensor])
src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py:33
↓ 1 callersFunction_preprocess_mask
(mask: Union[List, PIL.Image.Image, torch.Tensor])
src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py:56
↓ 1 callersMethod_process_embeds
(self, embeddings, attention_mask, cut_context)
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:109
↓ 1 callersMethod_process_tile
(self, original_image_slice, x, y, tile_size, tile_border, image, final_image, **kwargs)
examples/community/tiled_upscaling.py:145
↓ 1 callersFunction_query_chunk_attention
Multi-head dot product attention with a limited number of queries.
src/diffusers/models/attention_flax.py:23
↓ 1 callersMethod_register_shared_norm
r"""Helper method to register shared group/layer normalization layers.
examples/community/pipeline_sdxl_style_aligned.py:1207
↓ 1 callersMethod_remove_text_encoder_monkey_patch
(self)
src/diffusers/loaders/lora.py:692
↓ 1 callersMethod_resize_and_crop
Resize the image to fit within the specified width and height, maintaining the aspect ratio, and then center the image within the dimensions,
src/diffusers/image_processor.py:305
↓ 1 callersMethod_resize_and_fill
Resize the image to fit within the specified width and height, maintaining the aspect ratio, and then center the image within the dimensions,
src/diffusers/image_processor.py:261
↓ 1 callersFunction_resize_bilinear
( image: Union[torch.Tensor, List[torch.Tensor], PIL.Image.Image, List[PIL.Image.Image]], resolution: Tupl
src/diffusers/pipelines/i2vgen_xl/pipeline_i2vgen_xl.py:764
↓ 1 callersFunction_resize_with_antialiasing
(input, size, interpolation="bicubic", align_corners=True)
src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:569
↓ 1 callersMethod_retrieve_tokens_and_embeddings
(tokens, state_dicts, tokenizer)
src/diffusers/loaders/textual_inversion.py:198
↓ 1 callersMethod_revert_dual_attention
Revert the image_unet `DualTransformer2DModel` blocks back to `Transformer2DModel` with image_unet weights Call this function if you
src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:143
↓ 1 callersMethod_run_safety_checker
(self, images, safety_model_params, jit=False)
src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:209
↓ 1 callersMethod_run_safety_checker
(self, images, safety_model_params, jit=False)
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py:237
↓ 1 callersMethod_run_safety_checker
(self, images, safety_model_params, jit=False)
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py:195
↓ 1 callersMethod_run_safety_checker
(self, images, safety_model_params, jit=False)
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py:184
↓ 1 callersMethod_sample
( self, timestep, sample, guidance_scale, text_embeddings, ste
examples/community/sde_drag.py:486
↓ 1 callersMethod_save_pretrained
Save a model and its configuration file to a directory, so that it can be re-loaded using the [`~optimum.onnxruntime.modeling_ort.ORT
src/diffusers/pipelines/onnx_utils.py:80
↓ 1 callersMethod_second_order_timesteps
(self, sigmas, log_sigmas)
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:360
↓ 1 callersMethod_set_add_embedding
( self, addition_embed_type: str, addition_embed_type_num_heads: int, addition
src/diffusers/models/unets/unet_2d_condition.py:639
↓ 1 callersMethod_set_class_embedding
( self, class_embed_type: Optional[str], act_fn: str, num_class_embeds: Option
src/diffusers/models/unets/unet_2d_condition.py:602
↓ 1 callersMethod_set_encoder_hid_proj
( self, encoder_hid_dim_type: Optional[str], cross_attention_dim: Union[int, Tuple[int
src/diffusers/models/unets/unet_2d_condition.py:562
↓ 1 callersMethod_set_pos_net_if_use_gligen
(self, attention_type: str, cross_attention_dim: int)
src/diffusers/models/unets/unet_2d_condition.py:679
↓ 1 callersMethod_set_time_proj
( self, time_embedding_type: str, block_out_channels: int, flip_sin_to_cos: bo
src/diffusers/models/unets/unet_2d_condition.py:534
↓ 1 callersMethod_sigma_to_t
(self, sigma, log_sigmas)
src/diffusers/schedulers/scheduling_sasolver.py:343
↓ 1 callersMethod_sigma_to_t
(self, sigma, log_sigmas)
src/diffusers/schedulers/scheduling_lms_discrete.py:332
↓ 1 callersMethod_sigma_to_t
(self, sigma, log_sigmas)
src/diffusers/schedulers/scheduling_deis_multistep.py:315
↓ 1 callersMethod_sigma_to_t
(self, sigma, log_sigmas)
src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:334
↓ 1 callersMethod_sigma_to_t
(self, sigma, log_sigmas)
src/diffusers/schedulers/scheduling_euler_discrete.py:365
↓ 1 callersMethod_sigma_to_t
(self, sigma, log_sigmas)
src/diffusers/schedulers/scheduling_unipc_multistep.py:329
↓ 1 callersMethod_sigma_to_t
(self, sigma, log_sigmas)
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:375
↓ 1 callersMethod_sigma_to_t
(self, sigma, log_sigmas)
src/diffusers/schedulers/scheduling_heun_discrete.py:292
↓ 1 callersMethod_temp_convert_self_to_deprecated_attention_blocks
(self)
src/diffusers/models/modeling_utils.py:973
↓ 1 callersMethod_test_pt_np_pil_outputs_equivalent
(self, expected_max_diff=1e-4, input_image_type="pt")
tests/pipelines/test_pipelines_common.py:412
↓ 1 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_ddpm.py:368
↓ 1 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_lcm.py:318
↓ 1 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_deis_multistep.py:281
↓ 1 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:280
↓ 1 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_unipc_multistep.py:295
↓ 1 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_ddim.py:266
↓ 1 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:341
↓ 1 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
examples/community/scheduling_ufogen.py:345
↓ 1 callersFunction_tile2latent_exclusive_indices
Given a tile row and column numbers returns the range of latents affected only by that tile in the overall image Returns a tuple with: -
examples/community/mixture_tiling.py:87
↓ 1 callersFunction_tile2pixel_indices
Given a tile row and column numbers returns the range of pixels affected by that tiles in the overall image Returns a tuple with: - Start
examples/community/mixture_tiling.py:51
↓ 1 callersMethod_tokenize_prompt
(self, prompt, tokenizer_max_length=None)
examples/community/sde_drag.py:332
↓ 1 callersMethod_undo_temp_convert_self_to_deprecated_attention_blocks
(self)
src/diffusers/models/modeling_utils.py:1000
↓ 1 callersMethod_unfuse_lora
(self)
src/diffusers/models/lora.py:345
↓ 1 callersMethod_up_decode
(self, level_outputs, r_embed, effnet, clip=None)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py:186
↓ 1 callersMethod_up_decode
(self, level_outputs, r_embed, clip)
src/diffusers/models/unets/unet_stable_cascade.py:505
↓ 1 callersMethodactivate
(self)
examples/community/stable_diffusion_tensorrt_inpaint.py:162
↓ 1 callersMethodactivate
(self)
examples/community/stable_diffusion_tensorrt_txt2img.py:147
↓ 1 callersMethodactivate
(self)
examples/community/stable_diffusion_tensorrt_img2img.py:162
↓ 1 callersMethodadd_ca_loss_per_attn_map_to_loss
( self, loss, attn_map, object_number, bboxes, phrase_indices,
examples/community/llm_grounded_diffusion.py:648
↓ 1 callersMethodadd_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_ddim.py:473
↓ 1 callersMethodadd_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
examples/community/latent_consistency_img2img.py:782
↓ 1 callersMethodadd_noise_to_input
Explicit Langevin-like "churn" step of adding noise to the sample according to a factor gamma_i ≥ 0 to reach a higher noise level sig
src/diffusers/schedulers/scheduling_karras_ve_flax.py:138
↓ 1 callersFunctionadd_overlap_rect
(rect: [int], overlap: int, image_size: [int])
examples/community/tiled_upscaling.py:65
↓ 1 callersMethodadd_placeholder_tokens
(self, placeholder_token, *args, num_vec_per_token=1, **kwargs)
examples/research_projects/multi_token_textual_inversion/multi_token_clip.py:45
↓ 1 callersFunctionadjust_group_norms
(unet: UNet2DConditionModel, max_num_group: int = 32)
examples/research_projects/controlnetxs/controlnetxs.py:939
↓ 1 callersFunctionadjust_time_dims
(unet: UNet2DConditionModel, in_dim: int, out_dim: int)
examples/research_projects/controlnetxs/controlnetxs.py:801
↓ 1 callersMethodaggregate_attention
Aggregates the attention across the different layers and heads at the specified resolution.
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:105
↓ 1 callersMethodallocate_buffers
(self, shape_dict=None, device="cuda")
examples/community/stable_diffusion_tensorrt_inpaint.py:165
↓ 1 callersMethodallocate_buffers
(self, shape_dict=None, device="cuda")
examples/community/stable_diffusion_tensorrt_txt2img.py:150
↓ 1 callersMethodallocate_buffers
(self, shape_dict=None, device="cuda")
examples/community/stable_diffusion_tensorrt_img2img.py:165
↓ 1 callersFunctionalpha_schedules
Cumulative and non-cumulative alpha schedules. See section 4.1.
src/diffusers/schedulers/scheduling_vq_diffusion.py:72
↓ 1 callersFunctionalpha_sigma_to_t
Returns a timestep, given the scaling factors for the clean image and for the noise.
scripts/convert_dance_diffusion_to_diffusers.py:50
↓ 1 callersFunctionanalyze_results
Analyze the differences between _import_structure objects and TYPE_CHECKING objects found in an init.
utils/check_inits.py:190
↓ 1 callersFunctionaot_compile
( prompt=default_prompt, negative_prompt=default_neg_prompt, seed=default_seed, guidance_scale
examples/research_projects/sdxl_flax/sdxl_single_aot.py:74
↓ 1 callersMethodapply_cumulative_transitions
(self, q, t)
src/diffusers/schedulers/scheduling_vq_diffusion.py:455
↓ 1 callersMethodaudio_slice_to_image
Convert slice of audio to spectrogram. Args: slice (`int`): Slice number of audio to convert (out of `get_number_
src/diffusers/pipelines/deprecated/audio_diffusion/mel.py:143
↓ 1 callersFunctionaudio_to_frames
Convert audio samples to non-overlapping frames and frame times.
src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:279
↓ 1 callersFunctionauto_corr_loss
(hidden_states, generator=None)
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:141
↓ 1 callersMethodauto_corr_loss
(self, hidden_states, generator=None)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:790
↓ 1 callersFunctionbackend_supports_training
(device: str)
src/diffusers/utils/testing_utils.py:914
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_pndm.py:28
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_sasolver.py:31
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_lms_discrete.py:48
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_ddpm.py:48
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:79
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_repaint.py:47
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:27
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_ddim_parallel.py:51
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_unclip.py:48
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_lcm.py:53
← previousnext →1,801–1,900 of 9,976, ranked by callers