MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 2 callersMethodget_codebook_entry
(self, indices: torch.LongTensor, shape: Tuple[int, ...])
src/diffusers/models/autoencoders/vae.py:751
↓ 2 callersMethodget_coefficients_fn
(self, order, interval_start, interval_end, lambda_list, tau)
src/diffusers/schedulers/scheduling_sasolver.py:668
↓ 2 callersFunctionget_consistency_vae_config
(block_out_channels=None, norm_num_groups=None)
tests/models/autoencoders/test_models_vae.py:104
↓ 2 callersMethodget_constructor_arguments
(self, only_cross_attention: bool = False)
tests/models/test_attention_processor.py:12
↓ 2 callersMethodget_context
(self, prompt)
examples/community/pipeline_null_text_inversion.py:162
↓ 2 callersFunctionget_diff
Get the diff between a base commit and one or several commits. Args: repo (`git.Repo`): A git repository (for instance t
utils/tests_fetcher.py:235
↓ 2 callersFunctionget_diff_for_doctesting
Get the diff in doc examples between a base commit and one or several commits. Args: repo (`git.Repo`): A git repository
utils/tests_fetcher.py:310
↓ 2 callersFunctionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
src/diffusers/models/unet_1d_blocks.py:122
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_instruction_pix2pix.py:63
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/unclip/test_unclip.py:182
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/i2vgen_xl/test_i2vgenxl.py:63
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_latent_upscale.py:82
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_img2img.py:196
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_sdxl.py:688
↓ 2 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/controlnet/test_controlnet_sdxl.py:1085
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_inpaint.py:260
↓ 2 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/controlnet/test_controlnet.py:126
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet.py:505
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:200
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky.py:110
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:189
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_gligen/test_stable_diffusion_gligen.py:51
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_image_variation/test_stable_diffusion_image_variation.py:61
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if.py:40
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_cascade/test_stable_cascade_prior.py:139
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky/test_kandinsky.py:135
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_gligen_text_image/test_stable_diffusion_gligen_text_image.py:60
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/paint_by_example/test_paint_by_example.py:49
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/shap_e/test_shap_e.py:129
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/shap_e/test_shap_e_img2img.py:148
↓ 2 callersMethodget_dummy_components_with_full_downscaling
Get dummy components with x8 VAE downscaling and 3 UNet down blocks. These dummy components are intended to fully-exercise the T2I-Adapter
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:168
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/unclip/test_unclip.py:225
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/i2vgen_xl/test_i2vgenxl.py:142
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:131
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_latent_upscale.py:148
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet.py:196
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky.py:178
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet_img2img.py:164
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_img2img.py:201
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet.py:160
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_prior_emb2emb.py:173
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_gligen/test_stable_diffusion_gligen.py:108
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_image_variation/test_stable_diffusion_image_variation.py:107
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_cascade/test_stable_cascade_decoder.py:153
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_prior.py:191
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_gligen_text_image/test_stable_diffusion_gligen_text_image.py:133
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/shap_e/test_shap_e.py:153
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/shap_e/test_shap_e_img2img.py:172
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/wuerstchen/test_wuerstchen_decoder.py:133
↓ 2 callersMethodget_dummy_inversion_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:173
↓ 2 callersMethodget_embeddings
(self, prompt_ids: jnp.array, params)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_flax_stable_diffusion_xl.py:147
↓ 2 callersMethodget_encoder_hidden_states
(self, seed=0, shape=(4, 77, 768), fp16=False)
tests/models/unets/test_models_unet_2d_flax.py:41
↓ 2 callersMethodget_epsilon
(self, model_output: torch.Tensor, sample: torch.Tensor, timestep: int)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:773
↓ 2 callersMethodget_epsilon
(self, model_output: torch.Tensor, sample: torch.Tensor, timestep: int)
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:811
↓ 2 callersMethodget_file_format
(self, seed, shape)
tests/models/unets/test_models_unet_2d_condition.py:917
↓ 2 callersMethodget_file_format
(self, seed, shape)
tests/models/unets/test_models_unet_2d_flax.py:19
↓ 2 callersMethodget_forward_arguments
(self, query_dim, added_kv_proj_dim)
tests/models/test_attention_processor.py:32
↓ 2 callersMethodget_generator
(self, seed=0)
tests/models/autoencoders/test_models_vae.py:880
↓ 2 callersMethodget_guidance_scale_embedding
See https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298 Args: timeste
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:743
↓ 2 callersMethodget_guidance_scale_embedding
See https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298 Args: timeste
examples/community/gluegen.py:520
↓ 2 callersMethodget_image_description
(self, image)
examples/community/clip_guided_images_mixing_stable_diffusion.py:163
↓ 2 callersFunctionget_indent
(code)
utils/check_copies.py:86
↓ 2 callersFunctionget_input_preconditioning
Calculates the input preconditioning factor c_in, which is used to scale the U-Net image input.
examples/research_projects/consistency_training/train_cm_ct_unconditional.py:176
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/musicldm/test_musicldm.py:416
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/latent_consistency_models/test_latent_consistency_models.py:218
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/latent_consistency_models/test_latent_consistency_models_img2img.py:225
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion_image_variation/test_stable_diffusion_image_variation.py:282
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion_ldm3d/test_stable_diffusion_ldm3d.py:261
↓ 2 callersMethodget_label_ids
r""" Map label strings from ImageNet to corresponding class ids. Parameters: label (`str` or `dict` of `str`):
src/diffusers/pipelines/dit/pipeline_dit.py:67
↓ 2 callersMethodget_latents
(self, seed=0, shape=(4, 4, 64, 64), fp16=False)
tests/models/unets/test_models_unet_2d_flax.py:27
↓ 2 callersFunctionget_mid_block
( mid_block_type: str, num_layers: int, in_channels: int, mid_channels: int, out_channels:
src/diffusers/models/unets/unet_1d_blocks.py:671
↓ 2 callersMethodget_model_optimizer
(self, resolution=32)
tests/others/test_training.py:29
↓ 2 callersMethodget_noise
Takes in random seed and returns corresponding noise vector
examples/community/interpolate_stable_diffusion.py:390
↓ 2 callersFunctionget_noise_preconditioning
Calculates the noise preconditioning function c_noise, which is used to transform the raw Karras sigmas into the timestep input for the U-Net
examples/research_projects/consistency_training/train_cm_ct_unconditional.py:158
↓ 2 callersMethodget_noise_pred_single
(self, latents, t, context)
examples/community/pipeline_null_text_inversion.py:68
↓ 2 callersMethodget_order_list
Computes the solver order at each time step. Args: num_inference_steps (`int`): The number of diffusion
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:216
↓ 2 callersFunctionget_params_to_save
(params)
examples/controlnet/train_controlnet_flax.py:658
↓ 2 callersMethodget_phrase_indices
( self, prompt, phrases, token_map=None, add_suffix_if_not_found=False
examples/community/llm_grounded_diffusion.py:599
↓ 2 callersFunctionget_predicted_noise
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:228
↓ 2 callersFunctionget_predicted_noise
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:386
↓ 2 callersFunctionget_predicted_noise
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:351
↓ 2 callersFunctionget_predicted_noise
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:373
↓ 2 callersFunctionget_predicted_noise
(model_output, timesteps, sample, prediction_type, alphas, sigmas)
examples/consistency_distillation/train_lcm_distill_sd_wds.py:363
↓ 2 callersFunctionget_prompts_with_weights
r""" Tokenize a list of prompts and return its tokens with weights of each token. No padding, starting or ending token is included.
examples/community/lpw_stable_diffusion_onnx.py:164
↓ 2 callersFunctionget_prompts_with_weights
r""" Tokenize a list of prompts and return its tokens with weights of each token. No padding, starting or ending token is included.
examples/community/lpw_stable_diffusion.py:137
↓ 2 callersMethodget_region_generator
Creates a torch.Generator based on the random seed of this region
examples/community/mixture_canvas.py:81
↓ 2 callersFunctionget_relative_imports
Get the list of modules that are relatively imported in a module file. Args: module_file (`str` or `os.PathLike`): The module file t
src/diffusers/utils/dynamic_modules_utils.py:80
↓ 2 callersMethodget_sample_rate
Get sample rate. Returns: `int`: Sample rate of audio.
src/diffusers/pipelines/deprecated/audio_diffusion/mel.py:134
↓ 2 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_flax.py:258
↓ 2 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_ddim_inverse.py:12
↓ 2 callersFunctionget_skip_steps
(global_step, initial_skip: int = 1)
examples/research_projects/consistency_training/train_cm_ct_unconditional.py:104
↓ 2 callersFunctionget_sqrt_alpha_prod
( state: CommonSchedulerState, original_samples: jnp.ndarray, noise: jnp.ndarray, timesteps: jnp.ndarray )
src/diffusers/schedulers/scheduling_utils_flax.py:266
↓ 2 callersFunctionget_tests_dir
Args: append_path: optional path to append to the tests dir path Return: The full path to the `tests` dir, so that the tests
src/diffusers/utils/testing_utils.py:124
↓ 2 callersMethodget_timestep_ratio_embedding
(self, timestep_ratio, max_positions=10000)
src/diffusers/models/unets/unet_stable_cascade.py:422
↓ 2 callersMethodget_timesteps
(self, num_inference_steps, timesteps, strength, device)
src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:604
↓ 2 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:720
↓ 2 callersMethodget_token_map
Get a list of mapping: prompt index to str (prompt in a list of token str)
examples/community/llm_grounded_diffusion.py:583
↓ 2 callersMethodget_unet_model
(self, fp16=False, model_id="CompVis/stable-diffusion-v1-4")
tests/models/unets/test_models_unet_2d_flax.py:32
↓ 2 callersFunctionget_unweighted_text_embeddings
When the length of tokens is a multiple of the capacity of the text encoder, it should be split into chunks and sent to the text encoder indi
examples/community/lpw_stable_diffusion_onnx.py:224
↓ 2 callersFunctionget_unweighted_text_embeddings
When the length of tokens is a multiple of the capacity of the text encoder, it should be split into chunks and sent to the text encoder indi
examples/community/lpw_stable_diffusion.py:197
← previousnext →1,201–1,300 of 9,976, ranked by callers