Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LetterLiGo/SafeGen_CCS2024
/ functions
Functions
7,383 in github.com/LetterLiGo/SafeGen_CCS2024
⨍
Functions
7,383
◇
Types & classes
1,211
↳
Endpoints
4
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.py:159
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
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/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
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:225
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:218
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:240
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:233
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:254
Function
require_python39_or_higher
(test_case)
src/diffusers/utils/testing_utils.py:269
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:190
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:197
Function
require_torch_gpu
Decorator marking a test that requires CUDA and PyTorch.
src/diffusers/utils/testing_utils.py:206
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:247
Method
reset
(self)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:117
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
Function
rule_func
(steps: int)
src/diffusers/optimization.py:109
Method
run
(self)
setup.py:186
Method
run
(self)
src/diffusers/commands/fp16_safetensors.py:80
Method
run
(self)
src/diffusers/commands/__init__.py:26
Function
run_command
Runs `command` with `subprocess.check_output` and will potentially return the `stdout`. Will also properly capture if an error occurred while
examples/test_examples_utils.py:31
Method
run_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:367
Method
safety_concept
r""" Getter method for the safety concept used with SLD Returns: `str`: The text describing the safety concept
src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:149
Method
sample
Args: t0: start time has shape [batch_size, *shape, 1] t1: finish time has shape [batch_size, *shape, 1]
src/diffusers/pipelines/shap_e/renderer.py:433
Method
save_function
(weights, filename)
src/diffusers/loaders/unet.py:459
Method
save_function
(weights, filename)
src/diffusers/loaders/lora.py:850
Method
save_load_local
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:275
Method
save_lora_weights
r""" Save the LoRA parameters corresponding to the UNet and text encoder. Arguments: save_directory (`str` or `os.PathLik
src/diffusers/loaders/lora.py:1333
Function
save_model_hook
(models, weights, output_dir)
examples/text_to_image/train_text_to_image_adjust_sal.py:659
Function
save_model_hook
(models, weights, output_dir)
examples/text_to_image/train_text_to_image.py:615
Method
save_pretrained
Save a model to a directory, so that it can be re-loaded using the [`~OnnxModel.from_pretrained`] class method.: Arguments:
src/diffusers/pipelines/onnx_utils.py:110
Method
save_pretrained
Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its class implements both
src/diffusers/pipelines/pipeline_flax_utils.py:151
Method
save_pretrained
Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its class implements both
src/diffusers/pipelines/pipeline_utils.py:609
Method
save_pretrained
Save a model and its configuration file to a directory, so that it can be re-loaded using the `[`~pipelines.controlnet.MultiControlNe
src/diffusers/pipelines/controlnet/multicontrolnet.py:75
Method
save_pretrained
Save a scheduler configuration object to a directory so that it can be reloaded using the [`~SchedulerMixin.from_pretrained`] class m
src/diffusers/schedulers/scheduling_utils.py:149
Method
save_pretrained
Save a scheduler configuration object to the directory `save_directory`, so that it can be re-loaded using the [`~FlaxSchedulerMixin.
src/diffusers/schedulers/scheduling_utils_flax.py:152
Method
save_pretrained
Save a model and its configuration file to a directory so that it can be reloaded using the [`~models.ModelMixin.from_pretrained`] cl
src/diffusers/models/modeling_utils.py:454
Method
save_pretrained
Save a model and its configuration file to a directory so that it can be reloaded using the [`~FlaxModelMixin.from_pretrained`] class
src/diffusers/models/modeling_flax_utils.py:497
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_pndm.py:392
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ipndm.py:170
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_lms_discrete.py:187
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddpm.py:188
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:254
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_repaint.py:163
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:178
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddim_parallel.py:246
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_unclip.py:149
Method
scale_model_input
Scales the consistency model input by `(sigma**2 + sigma_data**2) ** 0.5`. Args: sample (`torch.FloatTensor`):
src/diffusers/schedulers/scheduling_consistency_models.py:116
Method
scale_model_input
Scales the denoising model input by `(sigma**2 + 1) ** 0.5` to match the Euler algorithm. Args: state (`EulerDiscreteSch
src/diffusers/schedulers/scheduling_euler_discrete_flax.py:126
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. Scales the
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:185
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_deis_multistep.py:705
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:128
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_pndm_flax.py:222
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_sde_ve.py:89
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:178
Method
scale_model_input
Args: state (`PNDMSchedulerState`): the `FlaxPNDMScheduler` state data class instance. sample (`jnp.ndarray`): input
src/diffusers/schedulers/scheduling_ddim_flax.py:151
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_consistency_decoder.py:116
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:862
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. Scales the
src/diffusers/schedulers/scheduling_euler_discrete.py:206
Method
scale_model_input
Args: state (`PNDMSchedulerState`): the `FlaxPNDMScheduler` state data class instance. sample (`jnp.ndarray`): input
src/diffusers/schedulers/scheduling_ddpm_flax.py:125
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py:615
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:868
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_unipc_multistep.py:799
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddim.py:238
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddpm_parallel.py:199
Method
scale_model_input
Scales the denoising model input by `(sigma**2 + 1) ** 0.5` to match the K-LMS algorithm. Args: state (`LMSDiscreteSched
src/diffusers/schedulers/scheduling_lms_discrete_flax.py:123
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddim_inverse.py:236
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:868
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_heun_discrete.py:185
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/deprecated/scheduling_karras_ve.py:99
Method
select_outputs
(self, keep, names=None)
scripts/convert_stable_diffusion_controlnet_to_onnx.py:42
Method
setUp
(self)
tests/others/test_check_copies.py:49
Method
setUp
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models.py:211
Method
setUp
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models_img2img.py:220
Method
setUp
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:668
Method
setUp
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:722
Method
setUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:196
Method
setUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:302
Method
setUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:374
Method
setUpClass
(cls)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:72
Method
setUpClass
(cls)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:370
Method
setUpClass
(cls)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:498
Method
setUpClass
(cls)
examples/test_examples_utils.py:50
Method
set_adapters
Set the currently active adapters for use in the UNet. Args: adapter_names (`List[str]` or `str`): The n
src/diffusers/loaders/unet.py:537
Method
set_attention_slice
r""" Set the slice size for attention computation. Args: slice_size (`int`): The slice size for attention
src/diffusers/models/attention_processor.py:345
Method
set_chunk_feed_forward
(self, chunk_size: Optional[int], **kwargs)
src/diffusers/models/attention.py:429
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:887
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:578
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unet_3d_condition.py:455
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/prior_transformer.py:232
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/autoencoder_kl.py:221
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unet_2d_condition.py:681
← previous
next →
5,101–5,200 of 7,383, ranked by callers