Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TencentARC/BrushNet
/ functions
Functions
9,976 in github.com/TencentARC/BrushNet
⨍
Functions
9,976
◇
Types & classes
1,590
↳
Endpoints
3
Function
preprocess_train
(examples)
examples/controlnet/train_controlnet.py:699
Function
preprocess_train
(examples)
examples/controlnet/train_controlnet_sdxl.py:748
Function
preprocess_train
(examples)
examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:654
Function
preprocess_train
(examples)
examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:661
Function
preprocess_train
(examples)
examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:518
Function
preprocess_train
(examples)
examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:504
Function
preprocess_train
(examples)
examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:893
Function
preprocess_train
(examples)
examples/instruct_pix2pix/train_instruct_pix2pix.py:657
Function
preprocess_train
(examples)
examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1020
Function
preprocess_train
(examples)
examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:676
Function
preprocess_train
(examples)
examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:769
Function
preprocess_train
(examples)
examples/research_projects/lora/train_text_to_image_lora.py:674
Function
preprocess_train
(examples)
examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:681
Function
preprocess_train
(examples)
examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:681
Function
preprocess_train
(examples)
examples/wuerstchen/text_to_image/train_text_to_image_prior.py:672
Function
preprocess_train
(examples)
examples/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:689
Method
previous_timestep
(self, timestep)
src/diffusers/schedulers/scheduling_tcd.py:675
Method
process
(text: str)
src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:529
Method
process
(text: str)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:224
Method
process
(text: str)
src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:431
Method
process
(text: str)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:182
Method
process
(text: str)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:475
Method
process
(text: str)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:226
Method
process
(text: str)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:515
Function
process_example
(input_image, prompt, input_mask, original_image, selected_points,result_gallery)
examples/brushnet/app_brushnet.py:227
Method
process_weights
(adapter_names, weights)
src/diffusers/loaders/lora.py:979
Function
programs_to_midi_classes
Modifies program events to be the first program in the MIDI class.
src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:234
Method
progress_bar
(self, iterable)
src/diffusers/pipelines/pipeline_flax_utils.py:605
Method
progress_bar
(self, iterable=None, total=None)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:429
Method
progress_bar
(self, iterable=None, total=None)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:667
Method
progress_bar
(self, iterable=None, total=None)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:423
Method
progress_bar
(self, iterable=None, total=None)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:663
Function
pt_to_pil
Convert a torch image to a PIL image.
src/diffusers/utils/pil_utils.py:27
Function
pytest_addoption
(parser)
tests/conftest.py:33
Function
pytest_addoption
(parser)
examples/conftest.py:34
Function
pytest_terminal_summary
(terminalreporter)
tests/conftest.py:39
Function
pytest_terminal_summary
(terminalreporter)
examples/conftest.py:40
Method
random_variance
()
src/diffusers/schedulers/scheduling_ddpm_flax.py:266
Function
rearrange_0
(tensor, f)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:51
Function
rearrange_0
(tensor, f)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:27
Function
rearrange_1
(tensor)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:58
Function
rearrange_1
(tensor)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:33
Method
recursive_check
(tuple_object, dict_object)
tests/schedulers/test_scheduler_edm_euler.py:149
Method
recursive_check
(tuple_object, dict_object)
tests/schedulers/test_schedulers.py:601
Method
recursive_check
(tuple_object, dict_object)
tests/schedulers/test_scheduler_flax.py:185
Method
recursive_check
(tuple_object, dict_object)
tests/schedulers/test_scheduler_flax.py:473
Method
recursive_check
(tuple_object, dict_object)
tests/schedulers/test_scheduler_flax.py:685
Method
recursive_check
(tuple_object, dict_object)
tests/schedulers/test_scheduler_lcm.py:165
Method
recursive_check
(tuple_object, dict_object)
tests/models/test_modeling_common.py:588
Method
recursive_find_attn_block
(name, module)
src/diffusers/models/modeling_utils.py:932
Method
register_modules
(self, **kwargs)
src/diffusers/pipelines/pipeline_flax_utils.py:118
Method
register_norm_forward
(norm_layer: Union[nn.GroupNorm, nn.LayerNorm])
examples/community/pipeline_sdxl_style_aligned.py:1210
Method
register_subcommand
(parser: ArgumentParser)
src/diffusers/commands/fp16_safetensors.py:46
Method
register_subcommand
(parser: ArgumentParser)
src/diffusers/commands/__init__.py:22
Function
register_to_config
r""" Decorator to apply on the init of classes inheriting from [`ConfigMixin`] so that all the arguments are automatically sent to `self.regis
src/diffusers/configuration_utils.py:608
Method
remap_key
(key, state_dict)
src/diffusers/loaders/utils.py:41
Method
remap_key
(key, sd)
tests/lora/test_lora_layers_peft.py:2160
Method
remove_all_hooks
(self)
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:73
Method
remove_all_hooks
(self)
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:95
Method
remove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:195
Method
remove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:153
Method
remove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:184
Method
remove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:197
Method
remove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:187
Function
remove_handler
removes given handler from the HuggingFace Diffusers' root logger.
src/diffusers/utils/logging.py:211
Method
remove_unused_weights
(self)
src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:106
Method
remove_unused_weights
(self)
src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:104
Method
renderer_dim
(self)
tests/pipelines/shap_e/test_shap_e.py:58
Method
renderer_dim
(self)
tests/pipelines/shap_e/test_shap_e_img2img.py:66
Method
replace_cross_attention
(self, attn_base, att_replace)
examples/community/pipeline_prompt2prompt.py:1110
Method
replace_cross_attention
(self, attn_base, att_replace)
examples/community/pipeline_prompt2prompt.py:1166
Function
replace_example_docstring
(example_docstring)
src/diffusers/utils/doc_utils.py:20
Function
require_compel
Decorator marking a test that requires compel: https://github.com/damian0815/compel. These tests are skipped when the library is not installe
src/diffusers/utils/testing_utils.py:266
Function
require_flax
Decorator marking a test that requires JAX & Flax. These tests are skipped when one / both are not installed
src/diffusers/utils/testing_utils.py:259
Function
require_note_seq
Decorator marking a test that requires note_seq. These tests are skipped when note_seq isn't installed.
src/diffusers/utils/testing_utils.py:281
Function
require_onnxruntime
Decorator marking a test that requires onnxruntime. These tests are skipped when onnxruntime isn't installed.
src/diffusers/utils/testing_utils.py:274
Function
require_peft_backend
Decorator marking a test that requires PEFT backend, this would require some specific versions of PEFT and transformers.
src/diffusers/utils/testing_utils.py:295
Function
require_peft_version_greater
Decorator marking a test that requires PEFT backend with a specific version, this would require some specific versions of PEFT and transforme
src/diffusers/utils/testing_utils.py:303
Function
require_python39_or_higher
(test_case)
src/diffusers/utils/testing_utils.py:327
Function
require_torch
Decorator marking a test that requires PyTorch. These tests are skipped when PyTorch isn't installed.
src/diffusers/utils/testing_utils.py:201
Function
require_torch_2
Decorator marking a test that requires PyTorch 2. These tests are skipped when it isn't installed.
src/diffusers/utils/testing_utils.py:208
Function
require_torch_accelerator
Decorator marking a test that requires an accelerator backend and PyTorch.
src/diffusers/utils/testing_utils.py:225
Function
require_torch_accelerator_with_fp16
Decorator marking a test that requires an accelerator with support for the FP16 data type.
src/diffusers/utils/testing_utils.py:232
Function
require_torch_accelerator_with_fp64
Decorator marking a test that requires an accelerator with support for the FP64 data type.
src/diffusers/utils/testing_utils.py:239
Function
require_torch_accelerator_with_training
Decorator marking a test that requires an accelerator with support for training.
src/diffusers/utils/testing_utils.py:246
Function
require_torch_gpu
Decorator marking a test that requires CUDA and PyTorch.
src/diffusers/utils/testing_utils.py:217
Function
require_torchsde
Decorator marking a test that requires torchsde. These tests are skipped when torchsde isn't installed.
src/diffusers/utils/testing_utils.py:288
Function
rescale_noise_cfg
Rescale `noise_cfg` according to `guidance_rescale`. Based on findings of [Common Diffusion Noise Schedules and Sample Steps are Flawed](ht
examples/community/instaflow_one_step.py:41
Method
reset
(self)
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:117
Method
reset
(self)
examples/community/pipeline_prompt2prompt.py:952
Method
reset
(self)
examples/community/pipeline_prompt2prompt.py:1000
Function
reset_format
Resets the formatting for 🤗 Diffusers' loggers. All handlers currently bound to the root logger are affected by this method.
src/diffusers/utils/logging.py:254
Method
reset_mode
r"""Removes a manually set mode; after calling this, the pipeline will infer the mode from inputs.
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:268
Method
resize_image
Creates a new camera for the resized view assuming the aspect ratio does not change.
src/diffusers/pipelines/shap_e/camera.py:105
Method
retrieve_imgs
(self, embeddings: np.ndarray, k: int)
examples/research_projects/rdm/retriever.py:179
Method
retrieve_imgs_batch
(self, embeddings: np.ndarray, k: int)
examples/research_projects/rdm/retriever.py:182
Method
retrieve_indices
(self, embeddings: np.ndarray, k: int)
examples/research_projects/rdm/retriever.py:185
Method
retrieve_indices_batch
(self, embeddings: np.ndarray, k: int)
examples/research_projects/rdm/retriever.py:188
Method
retrieve_mask
(x)
src/diffusers/pipelines/free_init_utils.py:93
Function
rule_func
(steps: int)
src/diffusers/optimization.py:109
← previous
next →
7,401–7,500 of 9,976, ranked by callers