MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

Functionapply_forward_hook
Decorator that applies a registered CpuOffload hook to an arbitrary function rather than `forward`. This is useful for cases where a PyTorch
src/diffusers/utils/accelerate_utils.py:27
Methodapply_model
(self, *args, **kwargs)
src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py:41
Methodapply_model
(self, *args, **kwargs)
src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_xl_k_diffusion.py:83
Methodapply_model
(self, *args, **kwargs)
examples/community/sd_text2img_k_diffusion.py:35
Methodassert_run_mixture
( num_steps, split, scheduler_cls_orig, num_train_timesteps=pipe_1.scheduler.config.num_train_time
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_inpaint.py:393
Methodassert_run_mixture
( num_steps, split, scheduler_cls_orig, expected_tss,
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl.py:376
Methodassert_run_mixture
( num_steps, split, scheduler_cls_orig, expected_tss,
tests/pipelines/controlnet/test_controlnet_sdxl.py:381
Functionattention_fetcher
(x)
examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:724
Methodattn_heads_match_channel_sizes
(attn_heads, channel_sizes)
examples/research_projects/controlnetxs/controlnetxs.py:420
Methodattn_hook
(self, name, query, key, value, attention_probs)
examples/community/llm_grounded_diffusion.py:416
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:828
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:517
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:70
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/controlnet.py:519
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/brushnet.py:534
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/transformers/prior_transformer.py:171
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unets/unet_3d_condition.py:289
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unets/unet_i2vgen_xl.py:322
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unets/uvit_2d.py:217
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unets/unet_2d_condition.py:693
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unets/unet_motion_model.py:551
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unets/unet_spatio_temporal_condition.py:248
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unets/unet_kandinsky3.py:145
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/autoencoders/autoencoder_kl.py:163
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:245
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/autoencoders/consistency_decoder_vae.py:191
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
examples/research_projects/controlnetxs/controlnetxs.py:489
Functionbackend_device_count
(device: str)
src/diffusers/utils/testing_utils.py:908
Methodbatch_params
(self)
tests/pipelines/test_pipelines_common.py:615
Methodbatch_step_no_noise
Batched version of the `step` function, to be able to reverse the SDE for multiple samples/timesteps at once. Also, does not add any
src/diffusers/schedulers/scheduling_ddpm_parallel.py:509
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_ipndm.py:69
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_sasolver.py:226
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_lms_discrete.py:190
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:243
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:161
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_lcm.py:284
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_consistency_models.py:112
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:238
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_deis_multistep.py:201
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_edm_euler.py:119
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:151
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:161
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_euler_discrete.py:258
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:292
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_unipc_multistep.py:212
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:258
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_heun_discrete.py:184
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
src/diffusers/schedulers/scheduling_tcd.py:285
Methodbenchmark
(self, args)
benchmarks/base_classes.py:104
Methodbenchmark
(self, args)
benchmarks/base_classes.py:166
Functionbetas_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_wuerstchen.py:44
Methodbetween_steps
(self)
examples/community/pipeline_prompt2prompt.py:985
Methodblock_out_channels_0
(self)
tests/pipelines/unclip/test_unclip_image_variation.py:79
Methodblock_out_channels_0
(self)
tests/pipelines/unclip/test_unclip.py:71
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:58
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky.py:49
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet_img2img.py:75
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_img2img.py:57
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet.py:74
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:50
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_prior_emb2emb.py:66
Methodblock_out_channels_0
(self)
tests/pipelines/stable_cascade/test_stable_cascade_decoder.py:68
Methodblock_out_channels_0
(self)
tests/pipelines/stable_cascade/test_stable_cascade_prior.py:90
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky/test_kandinsky_inpaint.py:53
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky/test_kandinsky.py:51
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky/test_kandinsky_img2img.py:61
Methodblock_out_channels_0
(self)
tests/pipelines/kandinsky/test_kandinsky_prior.py:49
Methodblock_out_channels_0
(self)
tests/pipelines/wuerstchen/test_wuerstchen_prior.py:84
Methodblock_out_channels_0
(self)
tests/pipelines/wuerstchen/test_wuerstchen_decoder.py:57
Methodblur
Applies Gaussian blur to an image.
src/diffusers/image_processor.py:165
Methodbox
(x)
examples/community/dps_pipeline.py:194
Methodcallback_cfg_params
(self)
tests/pipelines/test_pipelines_common.py:629
Methodcallback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:459
Methodcallback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:419
Methodcallback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion_panorama/test_stable_diffusion_panorama.py:336
Methodcallback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:464
Methodcallback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1000
Methodcallback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion_instruction_pix2pix.py:351
Methodcallback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion_image_variation/test_stable_diffusion_image_variation.py:211
Methodcallback_increase_guidance
(pipe, i, t, callback_kwargs)
tests/pipelines/test_pipelines_common.py:1296
Methodcallback_inputs_all
(pipe, i, t, callback_kwargs)
tests/pipelines/test_pipelines_common.py:1239
Methodcallback_inputs_change_tensor
(pipe, i, t, callback_kwargs)
tests/pipelines/test_pipelines_common.py:1264
Methodcallback_inputs_subset
(pipe, i, t, callback_kwargs)
tests/pipelines/test_pipelines_common.py:1231
Methodcallback_inputs_test
(pipe, i, t, callback_kwargs)
tests/pipelines/latent_consistency_models/test_latent_consistency_models.py:189
Methodcallback_inputs_test
(pipe, i, t, callback_kwargs)
tests/pipelines/latent_consistency_models/test_latent_consistency_models_img2img.py:196
Methodcallback_inputs_test
(pipe, i, t, callback_kwargs)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:270
Methodcallback_inputs_test
(pipe, i, t, callback_kwargs)
tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:258
Methodcallback_inputs_test
(pipe, i, t, callback_kwargs)
tests/pipelines/wuerstchen/test_wuerstchen_prior.py:228
Methodcallback_no_cfg
(pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion/test_stable_diffusion_instruction_pix2pix.py:249
Methodcallback_on_step_end
(pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py:488
Methodcallback_on_step_end
(pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_inpaint.py:787
Methodcallback_on_step_end
(pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl.py:983
Methodcallback_on_step_end
(pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:365
Methodcallback_on_step_end
(pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:738
Methodcallback_on_step_end
(pipe, i, t, callback_kwargs)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:366
Methodcamera_rays
(self)
src/diffusers/pipelines/shap_e/camera.py:64
Functioncanny_image_transform
(example, resolution=1024)
examples/research_projects/controlnet/train_controlnet_webdataset.py:134
Methodcheck_image
(self, image, prompt, prompt_embeds)
examples/community/pipeline_animatediff_controlnet.py:614
Functioncheck_imports_all_exist
Isn't used per se by the test fetcher but might be used later as a quality check. Putting this here for now so the code is not lost. This che
utils/tests_fetcher.py:812
Methodcheck_over_configs
(self, time_step=0, **config)
tests/schedulers/test_scheduler_flax.py:72
← previousnext →5,301–5,400 of 9,976, ranked by callers